v8/test/cctest/interpreter/bytecode_expectations
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
..
ArrayLiterals.golden [interpreter] Remove redundant flag from bytecode cctest suite. 2016-10-04 16:30:15 +00:00
ArrayLiteralsWide.golden [interpreter] Remove redundant flag from bytecode cctest suite. 2016-10-04 16:30:15 +00:00
AssignmentsInBinaryExpression.golden [Interpreter] Ensure ValueOf is only called once for post-increment operations. 2016-11-08 17:03:16 +00:00
BasicBlockToBoolean.golden [interpreter] Remove redundant flag from bytecode cctest suite. 2016-10-04 16:30:15 +00:00
BasicLoops.golden [ignition] Add bytecodes for loads/stores in the current context 2016-10-28 10:11:06 +00:00
BreakableBlocks.golden [ignition] Add bytecodes for loads/stores in the current context 2016-10-28 10:11:06 +00:00
CallGlobal.golden [ic] Pass name to LoadGlobalIC again. 2016-11-16 18:17:49 +00:00
CallLookupSlot.golden Only treat possible eval calls going through 'with' as special. 2016-11-14 13:35:04 +00:00
CallNew.golden [ic] Pass name to LoadGlobalIC again. 2016-11-16 18:17:49 +00:00
CallRuntime.golden Store OSR'd optimized code on the native context. 2016-12-07 15:11:04 +00:00
ClassAndSuperClass.golden [Interpreter] Remove Ldr[Named/Keyed]Property bytecodes and use Star Lookahead instead. 2016-11-09 13:16:37 +00:00
ClassDeclarations.golden Install the 'name' property in classes at runtime 2016-12-07 10:35:00 +00:00
CompoundExpressions.golden [Interpreter] Remove all Ldr style bytecodes and replace with Star lookahead. 2016-11-10 10:42:36 +00:00
Conditional.golden [interpreter] Remove redundant flag from bytecode cctest suite. 2016-10-04 16:30:15 +00:00
ConstVariable.golden [ignition] Eliminate hole checks where statically possible for loads and stores 2016-10-20 17:32:08 +00:00
ConstVariableContextSlot.golden [Interpreter] Remove all Ldr style bytecodes and replace with Star lookahead. 2016-11-10 10:42:36 +00:00
ContextParameters.golden [ignition] Add bytecodes for loads/stores in the current context 2016-10-28 10:11:06 +00:00
ContextVariables.golden [ic] Pass name to LoadGlobalIC again. 2016-11-16 18:17:49 +00:00
CountOperators.golden [Interpreter] Ensure ValueOf is only called once for post-increment operations. 2016-11-08 17:03:16 +00:00
CreateArguments.golden [ignition] Add bytecodes for loads/stores in the current context 2016-10-28 10:11:06 +00:00
CreateRestParameter.golden [Interpreter] Remove Ldr[Named/Keyed]Property bytecodes and use Star Lookahead instead. 2016-11-09 13:16:37 +00:00
DeadCodeRemoval.golden [interpreter] Remove redundant flag from bytecode cctest suite. 2016-10-04 16:30:15 +00:00
DeclareGlobals.golden [ic] Pass name to LoadGlobalIC again. 2016-11-16 18:17:49 +00:00
Delete.golden [Interpreter] Remove all Ldr style bytecodes and replace with Star lookahead. 2016-11-10 10:42:36 +00:00
DeleteLookupSlotInEval.golden [interpreter] Remove redundant flag from bytecode cctest suite. 2016-10-04 16:30:15 +00:00
DoDebugger.golden [interpreter] Remove redundant flag from bytecode cctest suite. 2016-10-04 16:30:15 +00:00
DoExpression.golden [Interpreter] Remove all Ldr style bytecodes and replace with Star lookahead. 2016-11-10 10:42:36 +00:00
Eval.golden Only treat possible eval calls going through 'with' as special. 2016-11-14 13:35:04 +00:00
ForIn.golden [Interpreter] Remove Ldr[Named/Keyed]Property bytecodes and use Star Lookahead instead. 2016-11-09 13:16:37 +00:00
ForOf.golden [ignition] desugar GetIterator() via bytecode rather than via AST 2016-12-07 15:20:33 +00:00
FunctionLiterals.golden [Interpreter] Remove all Ldr style bytecodes and replace with Star lookahead. 2016-11-10 10:42:36 +00:00
GenerateTestUndetectable.golden [Interpreter] Optimize equality check with null/undefined with a check on the map. 2016-12-06 11:32:39 +00:00
Generators.golden [ignition] desugar GetIterator() via bytecode rather than via AST 2016-12-07 15:20:33 +00:00
GlobalCompoundExpressions.golden [ic] Pass name to LoadGlobalIC again. 2016-11-16 18:17:49 +00:00
GlobalCountOperators.golden [ic] Pass name to LoadGlobalIC again. 2016-11-16 18:17:49 +00:00
GlobalDelete.golden [ic] Pass name to LoadGlobalIC again. 2016-11-16 18:17:49 +00:00
HeapNumberConstants.golden [interpreter] Remove redundant flag from bytecode cctest suite. 2016-10-04 16:30:15 +00:00
IfConditions.golden [interpreter] Remove redundant flag from bytecode cctest suite. 2016-10-04 16:30:15 +00:00
IntegerConstants.golden [interpreter] Remove redundant flag from bytecode cctest suite. 2016-10-04 16:30:15 +00:00
JumpsRequiringConstantWideOperands.golden [interpreter] Remove redundant flag from bytecode cctest suite. 2016-10-04 16:30:15 +00:00
LetVariable.golden [ignition] Eliminate hole checks where statically possible for loads and stores 2016-10-20 17:32:08 +00:00
LetVariableContextSlot.golden [Interpreter] Remove all Ldr style bytecodes and replace with Star lookahead. 2016-11-10 10:42:36 +00:00
LoadGlobal.golden [ic] Pass name to LoadGlobalIC again. 2016-11-16 18:17:49 +00:00
LogicalExpressions.golden [interpreter] Remove redundant flag from bytecode cctest suite. 2016-10-04 16:30:15 +00:00
LookupSlot.golden Only treat possible eval calls going through 'with' as special. 2016-11-14 13:35:04 +00:00
LookupSlotInEval.golden [interpreter] Remove redundant flag from bytecode cctest suite. 2016-10-04 16:30:15 +00:00
LookupSlotWideInEval.golden [interpreter] Remove redundant flag from bytecode cctest suite. 2016-10-04 16:30:15 +00:00
Modules.golden [ignition] desugar GetIterator() via bytecode rather than via AST 2016-12-07 15:20:33 +00:00
NewTarget.golden [interpreter] Remove redundant flag from bytecode cctest suite. 2016-10-04 16:30:15 +00:00
ObjectLiterals.golden [interpreter] Bytecode for StaDataPropertyInLiteral. 2016-11-18 12:13:47 +00:00
ObjectLiteralsWide.golden [interpreter] Remove redundant flag from bytecode cctest suite. 2016-10-04 16:30:15 +00:00
OuterContextVariables.golden [Interpreter] Remove all Ldr style bytecodes and replace with Star lookahead. 2016-11-10 10:42:36 +00:00
Parameters.golden [interpreter] Remove redundant flag from bytecode cctest suite. 2016-10-04 16:30:15 +00:00
PrimitiveExpressions.golden [interpreter] Remove redundant flag from bytecode cctest suite. 2016-10-04 16:30:15 +00:00
PrimitiveReturnStatements.golden [interpreter] Remove redundant flag from bytecode cctest suite. 2016-10-04 16:30:15 +00:00
PropertyCall.golden [Interpreter] Remove Ldr[Named/Keyed]Property bytecodes and use Star Lookahead instead. 2016-11-09 13:16:37 +00:00
PropertyLoads.golden [Interpreter] Remove Ldr[Named/Keyed]Property bytecodes and use Star Lookahead instead. 2016-11-09 13:16:37 +00:00
PropertyStores.golden [interpreter] Remove redundant flag from bytecode cctest suite. 2016-10-04 16:30:15 +00:00
RegExpLiterals.golden [Interpreter] Remove Ldr[Named/Keyed]Property bytecodes and use Star Lookahead instead. 2016-11-09 13:16:37 +00:00
RegExpLiteralsWide.golden [interpreter] Remove redundant flag from bytecode cctest suite. 2016-10-04 16:30:15 +00:00
RemoveRedundantLdar.golden [interpreter] Remove redundant flag from bytecode cctest suite. 2016-10-04 16:30:15 +00:00
StoreGlobal.golden [interpreter] Remove redundant flag from bytecode cctest suite. 2016-10-04 16:30:15 +00:00
StringConstants.golden [interpreter] Remove redundant flag from bytecode cctest suite. 2016-10-04 16:30:15 +00:00
SuperCallAndSpread.golden Store OSR'd optimized code on the native context. 2016-12-07 15:11:04 +00:00
Switch.golden [interpreter] Remove redundant flag from bytecode cctest suite. 2016-10-04 16:30:15 +00:00
ThisFunction.golden [interpreter] Remove redundant flag from bytecode cctest suite. 2016-10-04 16:30:15 +00:00
Throw.golden [interpreter] Remove redundant flag from bytecode cctest suite. 2016-10-04 16:30:15 +00:00
TopLevelObjectLiterals.golden [interpreter] Remove redundant flag from bytecode cctest suite. 2016-10-04 16:30:15 +00:00
TryCatch.golden [Interpreter] Add SetPendingMessage bytecode. 2016-11-16 10:46:48 +00:00
TryFinally.golden [Interpreter] Add SetPendingMessage bytecode. 2016-11-16 10:46:48 +00:00
Typeof.golden [ic] Pass name to LoadGlobalIC again. 2016-11-16 18:17:49 +00:00
UnaryOperators.golden [Interpreter] Remove all Ldr style bytecodes and replace with Star lookahead. 2016-11-10 10:42:36 +00:00
WideRegisters.golden [interpreter] Remove redundant flag from bytecode cctest suite. 2016-10-04 16:30:15 +00:00
WithStatement.golden [interpreter] Remove redundant flag from bytecode cctest suite. 2016-10-04 16:30:15 +00:00