v8/test/unittests
caitp b5f146a02a [ignition] desugar GetIterator() via bytecode rather than via AST
Introduces:
- a new AST node representing the GetIterator() algorithm in the specification, to be used by ForOfStatement, YieldExpression (in the case of delegating yield*), and the future `for-await-of` loop proposed in http://tc39.github.io/proposal-async-iteration/#sec-async-iterator-value-unwrap-functions.
- a new opcode (JumpIfJSReceiver), which is useful for `if Type(object) is not Object` checks which are common throughout the specification. This node is easily eliminated by TurboFan.

The AST node is desugared specially in bytecode, rather than manually when building the AST. The benefit of this is that desugaring in the BytecodeGenerator is much simpler and easier to understand than desugaring the AST.

This also reduces parse time very slightly, and allows us to use LoadIC rather than KeyedLoadIC, which seems to have  better baseline performance. This results in a ~20% improvement in test/js-perf-test/Iterators micro-benchmarks, which I believe owes to the use of the slightly faster LoadIC as opposed to the KeyedLoadIC in the baseline case. Both produce identical optimized code via TurboFan when the type check can be eliminated, and the load can be replaced with a constant value.

BUG=v8:4280
R=bmeurer@chromium.org, rmcilroy@chromium.org, adamk@chromium.org, neis@chromium.org, jarin@chromium.org
TBR=rossberg@chromium.org

Review-Url: https://codereview.chromium.org/2557593004
Cr-Commit-Position: refs/heads/master@{#41555}
2016-12-07 15:20:33 +00:00
..
base [base] Define CHECK comparison for signed vs. unsigned 2016-12-01 08:53:04 +00:00
compiler [turbofan] Re-add bytecode analysis unit test 2016-12-05 10:48:09 +00:00
compiler-dispatcher Assign unique IDs to FunctionLiterals 2016-11-28 11:40:53 +00:00
heap [heap] Reland "Add a guard for restarting the memory reducer after mark-compact." 2016-11-18 13:50:22 +00:00
interpreter [ignition] desugar GetIterator() via bytecode rather than via AST 2016-12-07 15:20:33 +00:00
libplatform Add test for posting a single task to the worker pool 2016-08-23 11:56:57 +00:00
wasm [wasm] Remove raw byte pointers from WasmModule 2016-11-30 15:03:06 +00:00
zone Fix more -Wsign-compare warnings in heap, mips, base, etc. 2016-11-11 14:56:10 +00:00
BUILD.gn [ignition] Rewrite reverse iterator as random iterator 2016-12-05 13:03:43 +00:00
cancelable-tasks-unittest.cc Fix gcc 4.9.2 signed-compare error. 2015-11-15 12:48:19 +00:00
char-predicates-unittest.cc Conform to the unittest naming convention. 2014-10-10 08:06:21 +00:00
counters-unittest.cc [counters] RuntimeStats: fix wrong bookkeeping when dynamically changing counters 2016-11-24 10:05:37 +00:00
DEPS Move unit tests to test/unittests. 2014-10-01 08:34:25 +00:00
eh-frame-iterator-unittest.cc [turbofan] Fix more -Wsign-compare warnings. 2016-11-11 12:01:08 +00:00
eh-frame-writer-unittest.cc [turbofan] Fix more -Wsign-compare warnings. 2016-11-11 12:01:08 +00:00
locked-queue-unittest.cc Add lock-based unbounded queue 2015-11-18 10:54:13 +00:00
register-configuration-unittest.cc [Turbofan] Add concept of FP register aliasing on ARM 32. 2016-10-26 16:04:33 +00:00
run-all-unittests.cc [presubmit] Enabling readability/inheritance linter checking. 2015-11-04 13:08:42 +00:00
source-position-table-unittest.cc This CL enables precise source positions for all V8 compilers. It merges compiler::SourcePosition and internal::SourcePosition to a single class used throughout the codebase. The new internal::SourcePosition instances store an id identifying an inlined function in addition to a script offset. 2016-11-14 17:22:32 +00:00
test-utils.cc [turbofan] Enforce native context specialization. 2016-10-10 05:53:51 +00:00
test-utils.h Named all zones in the project 2016-10-17 12:12:42 +00:00
unicode-unittest.cc Fix out-of-range access in unibrow::Utf8::CalculateValue. 2016-11-22 09:27:59 +00:00
unittests.gyp [ignition] Rewrite reverse iterator as random iterator 2016-12-05 13:03:43 +00:00
unittests.isolate Reland [swarming] Isolate v8 testing. 2015-10-05 09:48:42 +00:00
unittests.status [tests] Skip RuntimeCallStatsTest due to flaky timers 2016-11-28 10:51:20 +00:00
value-serializer-unittest.cc ValueSerializer: Replace use of std::vector with a delegate-allocated buffer. 2016-11-12 21:50:26 +00:00