v8/test/cctest/compiler
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
..
c-signature.h [wasm] Replace the BufferedRawMachineAssemblerTester in the WasmRunner. 2016-02-18 09:55:49 +00:00
call-tester.h PPC64: [simulator] Do not sign-extend uint32_t call parameters. 2016-04-25 14:03:58 +00:00
code-assembler-tester.h Reland of [refactoring] Split CodeAssemblerState out of CodeAssembler 2016-11-16 11:48:38 +00:00
codegen-tester.cc x87: fix the use of CheckFloatEq and CheckDoubleEq in test. 2016-03-07 12:30:23 +00:00
codegen-tester.h Separate CompilationInfo into its own file. 2016-08-31 08:49:59 +00:00
function-tester.cc Split parsing of functions and top-level code into two separate methods 2016-11-30 13:21:37 +00:00
function-tester.h Reland of [refactoring] Split CodeAssemblerState out of CodeAssembler 2016-11-16 11:48:38 +00:00
graph-builder-tester.h [turbofan] Support variable size argument removal in TF-generated functions 2016-11-02 13:15:57 +00:00
test-basic-block-profiler.cc [turbofan] Make MachineType a pair of enums. 2015-12-10 09:03:53 +00:00
test-branch-combine.cc [arm64] Generate adds/ands. 2016-06-29 14:57:49 +00:00
test-code-assembler.cc [turbofan] Move CodeAssembler::Label and CodeAssembler::Variable to compiler namespace. 2016-12-06 10:29:49 +00:00
test-gap-resolver.cc [Turbofan] Add concept of FP register aliasing on ARM 32. 2016-10-26 16:04:33 +00:00
test-graph-visualizer.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-instruction.cc Named all zones in the project 2016-10-17 12:12:42 +00:00
test-js-constant-cache.cc Include only stuff you need, part 6: Fix cctest.h. 2016-09-01 12:02:16 +00:00
test-js-context-specialization.cc [compiler] Remove context value input from JSLoadContext and JSStoreContext. 2016-11-30 15:46:08 +00:00
test-js-typed-lowering.cc [turbofan] Introduce an ExternalPointer type. 2016-11-11 13:04:47 +00:00
test-jump-threading.cc Named all zones in the project 2016-10-17 12:12:42 +00:00
test-linkage.cc Named all zones in the project 2016-10-17 12:12:42 +00:00
test-loop-analysis.cc [turbofan] Support variable size argument removal in TF-generated functions 2016-11-02 13:15:57 +00:00
test-loop-assignment-analysis.cc [ignition] desugar GetIterator() via bytecode rather than via AST 2016-12-07 15:20:33 +00:00
test-machine-operator-reducer.cc [turbofan] Remove invalid typing rules. 2016-08-29 09:20:09 +00:00
test-multiple-return.cc Named all zones in the project 2016-10-17 12:12:42 +00:00
test-node.cc Named all zones in the project 2016-10-17 12:12:42 +00:00
test-operator.cc Replace SmartArrayPointer<T> with unique_ptr<T[]> 2016-07-25 10:27:47 +00:00
test-representation-change.cc [turbofan] Properly check Tagged->Word32 changes. 2016-12-05 11:57:16 +00:00
test-run-bytecode-graph-builder.cc [Test] Remove now unecessary interpreter()->Initialize() from tests. 2016-11-17 16:40:52 +00:00
test-run-calls-to-external-references.cc [wasm] Use a C wrapper function to calculate F64Pow. 2016-07-20 14:27:06 +00:00
test-run-deopt.cc [turbofan] Enable tests for throwing into deopted code. 2016-02-12 10:50:17 +00:00
test-run-intrinsics.cc [intrinsics] Nuke the %_StringCharFromCode intrinsic. 2016-09-28 11:24:21 +00:00
test-run-jsbranches.cc Include only stuff you need, part 6: Fix cctest.h. 2016-09-01 12:02:16 +00:00
test-run-jscalls.cc [turbofan] Enforce native context specialization. 2016-10-10 05:53:51 +00:00
test-run-jsexceptions.cc Include only stuff you need, part 6: Fix cctest.h. 2016-09-01 12:02:16 +00:00
test-run-jsobjects.cc Include only stuff you need, part 6: Fix cctest.h. 2016-09-01 12:02:16 +00:00
test-run-jsops.cc Include only stuff you need, part 6: Fix cctest.h. 2016-09-01 12:02:16 +00:00
test-run-load-store.cc [turbofan] Fix more -Wsign-compare warnings. 2016-11-11 12:01:08 +00:00
test-run-machops.cc MIPS: Improve Float(32|64)(Max|Min). 2016-12-06 10:16:50 +00:00
test-run-native-calls.cc [turbofan] Support variable size argument removal in TF-generated functions 2016-11-02 13:15:57 +00:00
test-run-stackcheck.cc Include only stuff you need, part 6: Fix cctest.h. 2016-09-01 12:02:16 +00:00
test-run-stubs.cc [turbofan] Support variable size argument removal in TF-generated functions 2016-11-02 13:15:57 +00:00
test-run-unwinding-info.cc Include only stuff you need, part 6: Fix cctest.h. 2016-09-01 12:02:16 +00:00
test-run-variables.cc Include only stuff you need, part 6: Fix cctest.h. 2016-09-01 12:02:16 +00:00
test-run-wasm-machops.cc [turbofan] Fix more -Wsign-compare warnings. 2016-11-11 12:01:08 +00:00
value-helper.h [turbofan] Add Float32(Max|Min) machine operators. 2016-08-22 13:50:51 +00:00