v8/test/unittests/interpreter
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
..
bytecode-array-builder-unittest.cc [ignition] desugar GetIterator() via bytecode rather than via AST 2016-12-07 15:20:33 +00:00
bytecode-array-iterator-unittest.cc [ic] Pass name to LoadGlobalIC again. 2016-11-16 18:17:49 +00:00
bytecode-array-random-iterator-unittest.cc [ignition] Rewrite reverse iterator as random iterator 2016-12-05 13:03:43 +00:00
bytecode-array-writer-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
bytecode-dead-code-optimizer-unittest.cc [Interpreter] Optimize the Register Optimizer. 2016-10-24 20:47:53 +00:00
bytecode-decoder-unittest.cc [Interpreter]: Add kRegList operand type for register list operands. 2016-10-05 16:14:32 +00:00
bytecode-peephole-optimizer-unittest.cc [Interpreter] Optimize equality check with null/undefined with a check on the map. 2016-12-06 11:32:39 +00:00
bytecode-pipeline-unittest.cc [ic] Pass name to LoadGlobalIC again. 2016-11-16 18:17:49 +00:00
bytecode-register-allocator-unittest.cc [Interpreter] Replace BytecodeRegisterAllocator with a simple bump pointer. 2016-09-30 09:03:25 +00:00
bytecode-register-optimizer-unittest.cc [ignition] Fix more -Wsign-compare warnings. 2016-11-11 12:13:12 +00:00
bytecode-utils.h [interpreter] Introduce bytecode generation pipeline. 2016-05-12 19:20:04 +00:00
bytecodes-unittest.cc [ignition] Optimize jump checks to range checks 2016-12-05 18:26:26 +00:00
constant-array-builder-unittest.cc Enable -Wsign-compare compiler warnings. 2016-11-14 10:49:15 +00:00
interpreter-assembler-unittest.cc Reland of [refactoring] Split CodeAssemblerState out of CodeAssembler 2016-11-16 11:48:38 +00:00
interpreter-assembler-unittest.h Reland of [refactoring] Split CodeAssemblerState out of CodeAssembler 2016-11-16 11:48:38 +00:00