2016-02-25 12:07:07 +00:00
|
|
|
#
|
|
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
wrap: yes
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
for (var p of [0, 1, 2]) {}
|
|
|
|
"
|
2016-08-18 16:51:11 +00:00
|
|
|
frame size: 15
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
[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:19:52 +00:00
|
|
|
bytecode array length: 272
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
B(LdaZero),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Star), R(4),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Mov), R(context), R(11),
|
|
|
|
B(Mov), R(context), R(12),
|
2017-01-30 12:31:35 +00:00
|
|
|
/* 48 S> */ B(CreateArrayLiteral), U8(0), U8(2), U8(9),
|
2016-11-09 13:16:01 +00:00
|
|
|
B(Star), R(13),
|
2017-01-30 12:31:35 +00:00
|
|
|
B(LdaNamedProperty), R(13), U8(1), U8(3),
|
[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:19:52 +00:00
|
|
|
B(Star), R(14),
|
2017-01-30 12:31:35 +00:00
|
|
|
B(CallProperty), R(14), R(13), U8(1), U8(5),
|
[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:19:52 +00:00
|
|
|
B(JumpIfJSReceiver), U8(7),
|
|
|
|
B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(2),
|
2017-01-30 12:31:35 +00:00
|
|
|
/* 45 S> */ B(LdaNamedProperty), R(2), U8(2), U8(9),
|
2016-12-15 10:59:57 +00:00
|
|
|
B(Star), R(13),
|
2017-01-30 12:31:35 +00:00
|
|
|
/* 45 E> */ B(CallProperty), R(13), R(2), U8(1), U8(7),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Star), R(3),
|
|
|
|
/* 45 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(3), U8(1),
|
2016-05-17 20:39:45 +00:00
|
|
|
B(ToBooleanLogicalNot),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(JumpIfFalse), U8(7),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(3), U8(1),
|
2017-01-30 12:31:35 +00:00
|
|
|
B(LdaNamedProperty), R(3), U8(3), U8(11),
|
2016-11-09 13:16:01 +00:00
|
|
|
B(JumpIfToBooleanTrue), U8(25),
|
2017-01-30 12:31:35 +00:00
|
|
|
B(LdaNamedProperty), R(3), U8(4), U8(13),
|
2016-11-09 13:16:01 +00:00
|
|
|
B(Star), R(5),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(2),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Star), R(4),
|
|
|
|
B(Mov), R(5), R(0),
|
2016-05-27 15:57:35 +00:00
|
|
|
/* 34 E> */ B(StackCheck),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Mov), R(0), R(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaZero),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Star), R(4),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(JumpLoop), U8(51), I8(0),
|
2016-11-10 10:41:48 +00:00
|
|
|
B(Jump), U8(36),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(13),
|
2016-08-18 16:51:11 +00:00
|
|
|
B(Ldar), R(closure),
|
2016-09-05 12:10:16 +00:00
|
|
|
B(CreateCatchContext), R(13), U8(5), U8(6),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(12),
|
|
|
|
B(PushContext), R(8),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(2),
|
2017-01-30 12:31:35 +00:00
|
|
|
B(TestEqualStrict), R(4), U8(15),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(6),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(1),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Star), R(4),
|
2017-02-07 20:42:03 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
2016-11-10 10:41:48 +00:00
|
|
|
B(Star), R(13),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kReThrow), R(13), U8(1),
|
|
|
|
B(PopContext), R(8),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(-1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(9),
|
|
|
|
B(Jump), U8(7),
|
|
|
|
B(Star), R(10),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(9),
|
2016-11-16 10:46:23 +00:00
|
|
|
B(LdaTheHole),
|
|
|
|
B(SetPendingMessage),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(11),
|
|
|
|
B(LdaZero),
|
2017-01-30 12:31:35 +00:00
|
|
|
B(TestEqualStrict), R(4), U8(16),
|
2016-12-06 11:32:09 +00:00
|
|
|
B(JumpIfTrue), U8(111),
|
2017-01-30 12:31:35 +00:00
|
|
|
B(LdaNamedProperty), R(2), U8(7), U8(17),
|
2016-11-09 13:16:01 +00:00
|
|
|
B(Star), R(6),
|
2016-12-06 11:32:09 +00:00
|
|
|
B(TestUndetectable), R(6),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
2016-11-16 10:46:23 +00:00
|
|
|
B(Jump), U8(99),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(1),
|
2017-01-30 12:31:35 +00:00
|
|
|
B(TestEqualStrict), R(4), U8(20),
|
2016-11-16 10:46:23 +00:00
|
|
|
B(JumpIfFalse), U8(67),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Ldar), R(6),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(TypeOf),
|
|
|
|
B(Star), R(12),
|
2016-09-05 12:10:16 +00:00
|
|
|
B(LdaConstant), U8(8),
|
2017-01-30 12:31:35 +00:00
|
|
|
B(TestEqualStrict), R(12), U8(21),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
|
|
|
B(Jump), U8(18),
|
Revert of Remove SIMD.js from V8. (patchset #7 id:120001 of https://codereview.chromium.org/2684313003/ )
Reason for revert:
Breaks Node integration build.
Original issue's description:
> Remove SIMD.js from V8.
>
> LOG=Y
> BUG=v8:4124,v8:5948
> R=bradnelson@chromium.org,bmeurer@chromium.org,jochen@chromium.org,hpayer@chromium.org,danno@chromium.org
>
> Review-Url: https://codereview.chromium.org/2684313003
> Cr-Original-Commit-Position: refs/heads/master@{#43162}
> Committed: https://chromium.googlesource.com/v8/v8/+/d170c57ab996d00c4665a9d865bd5754a1806c6c
> Review-Url: https://codereview.chromium.org/2684313003
> Cr-Commit-Position: refs/heads/master@{#43169}
> Committed: https://chromium.googlesource.com/v8/v8/+/a9b59a11f1bfe069afabe5567f919727456f1f12
TBR=bradnelson@chromium.org,bmeurer@chromium.org,jochen@chromium.org,hpayer@chromium.org,danno@chromium.org,bradnelson@google.com,machenbach@chromium.org,bbudge@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=v8:4124,v8:5948
Review-Url: https://codereview.chromium.org/2695653005
Cr-Commit-Position: refs/heads/master@{#43170}
2017-02-13 21:33:46 +00:00
|
|
|
B(Wide), B(LdaSmi), I16(131),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(12),
|
2016-09-05 12:10:16 +00:00
|
|
|
B(LdaConstant), U8(9),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(13),
|
|
|
|
B(CallRuntime), U16(Runtime::kNewTypeError), R(12), U8(2),
|
|
|
|
B(Throw),
|
|
|
|
B(Mov), R(context), R(12),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Mov), R(6), R(13),
|
|
|
|
B(Mov), R(2), R(14),
|
2016-06-21 14:37:16 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_Call), R(13), U8(2),
|
2016-11-16 10:46:23 +00:00
|
|
|
B(Jump), U8(20),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(13),
|
2016-08-18 16:51:11 +00:00
|
|
|
B(Ldar), R(closure),
|
2016-09-05 12:10:16 +00:00
|
|
|
B(CreateCatchContext), R(13), U8(5), U8(10),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(12),
|
2016-11-16 10:46:23 +00:00
|
|
|
B(LdaTheHole),
|
|
|
|
B(SetPendingMessage),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Ldar), R(12),
|
|
|
|
B(PushContext), R(8),
|
|
|
|
B(PopContext), R(8),
|
2016-06-21 14:37:16 +00:00
|
|
|
B(Jump), U8(27),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Mov), R(6), R(12),
|
|
|
|
B(Mov), R(2), R(13),
|
2016-06-21 14:37:16 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_Call), R(12), U8(2),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Star), R(7),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(7), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfToBooleanFalse), U8(4),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Jump), U8(7),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(7), U8(1),
|
2016-11-16 10:46:23 +00:00
|
|
|
B(Ldar), R(11),
|
|
|
|
B(SetPendingMessage),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaZero),
|
2016-08-30 10:21:02 +00:00
|
|
|
B(TestEqualStrict), R(9), U8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfTrue), U8(4),
|
|
|
|
B(Jump), U8(5),
|
|
|
|
B(Ldar), R(10),
|
|
|
|
B(ReThrow),
|
|
|
|
B(LdaUndefined),
|
|
|
|
/* 62 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-12-16 10:57:06 +00:00
|
|
|
CONSTANT_ELEMENTS_PAIR_TYPE,
|
2016-09-06 16:10:19 +00:00
|
|
|
SYMBOL_TYPE,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
|
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
|
|
|
|
FIXED_ARRAY_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
[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:19:52 +00:00
|
|
|
[7, 126, 132],
|
|
|
|
[10, 90, 92],
|
|
|
|
[199, 209, 211],
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 'potatoes';
|
|
|
|
for (var p of x) { return p; }
|
|
|
|
"
|
2016-08-18 16:51:11 +00:00
|
|
|
frame size: 16
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
[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:19:52 +00:00
|
|
|
bytecode array length: 286
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 42 S> */ B(LdaConstant), U8(0),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Star), R(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaZero),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Star), R(5),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Mov), R(context), R(12),
|
|
|
|
B(Mov), R(context), R(13),
|
[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:19:52 +00:00
|
|
|
/* 68 S> */ B(LdaNamedProperty), R(0), U8(1), U8(2),
|
|
|
|
B(Star), R(15),
|
|
|
|
B(CallProperty), R(15), R(0), U8(1), U8(4),
|
|
|
|
B(Mov), R(0), R(14),
|
|
|
|
B(JumpIfJSReceiver), U8(7),
|
|
|
|
B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Star), R(3),
|
2016-11-09 13:16:01 +00:00
|
|
|
/* 65 S> */ B(LdaNamedProperty), R(3), U8(2), U8(8),
|
2016-12-15 10:59:57 +00:00
|
|
|
B(Star), R(14),
|
|
|
|
/* 65 E> */ B(CallProperty), R(14), R(3), U8(1), U8(6),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Star), R(4),
|
|
|
|
/* 65 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(4), U8(1),
|
2016-05-17 20:39:45 +00:00
|
|
|
B(ToBooleanLogicalNot),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(JumpIfFalse), U8(7),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(4), U8(1),
|
2016-09-14 10:20:08 +00:00
|
|
|
B(LdaNamedProperty), R(4), U8(3), U8(10),
|
2016-11-09 13:16:01 +00:00
|
|
|
B(JumpIfToBooleanTrue), U8(27),
|
|
|
|
B(LdaNamedProperty), R(4), U8(4), U8(12),
|
|
|
|
B(Star), R(6),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(2),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Star), R(5),
|
|
|
|
B(Mov), R(6), R(1),
|
2016-05-27 15:57:35 +00:00
|
|
|
/* 54 E> */ B(StackCheck),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Mov), R(1), R(2),
|
2016-05-27 15:57:35 +00:00
|
|
|
/* 73 S> */ B(LdaZero),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(10),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Mov), R(1), R(11),
|
2016-11-10 10:41:48 +00:00
|
|
|
B(Jump), U8(50),
|
|
|
|
B(Jump), U8(36),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(14),
|
2016-08-18 16:51:11 +00:00
|
|
|
B(Ldar), R(closure),
|
2016-09-05 12:10:16 +00:00
|
|
|
B(CreateCatchContext), R(14), U8(5), U8(6),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(13),
|
|
|
|
B(PushContext), R(9),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(2),
|
2016-09-14 10:20:08 +00:00
|
|
|
B(TestEqualStrict), R(5), U8(14),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(6),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(1),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Star), R(5),
|
2017-02-07 20:42:03 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
2016-11-10 10:41:48 +00:00
|
|
|
B(Star), R(14),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kReThrow), R(14), U8(1),
|
|
|
|
B(PopContext), R(9),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(-1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(10),
|
|
|
|
B(Jump), U8(8),
|
|
|
|
B(Star), R(11),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(10),
|
2016-11-16 10:46:23 +00:00
|
|
|
B(LdaTheHole),
|
|
|
|
B(SetPendingMessage),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(12),
|
|
|
|
B(LdaZero),
|
2016-09-14 10:20:08 +00:00
|
|
|
B(TestEqualStrict), R(5), U8(15),
|
2016-12-06 11:32:09 +00:00
|
|
|
B(JumpIfTrue), U8(111),
|
2016-11-28 15:29:59 +00:00
|
|
|
B(LdaNamedProperty), R(3), U8(7), U8(16),
|
2016-11-09 13:16:01 +00:00
|
|
|
B(Star), R(7),
|
2016-12-06 11:32:09 +00:00
|
|
|
B(TestUndetectable), R(7),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
2016-11-16 10:46:23 +00:00
|
|
|
B(Jump), U8(99),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(1),
|
2016-11-28 15:29:59 +00:00
|
|
|
B(TestEqualStrict), R(5), U8(19),
|
2016-11-16 10:46:23 +00:00
|
|
|
B(JumpIfFalse), U8(67),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Ldar), R(7),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(TypeOf),
|
|
|
|
B(Star), R(13),
|
2016-09-05 12:10:16 +00:00
|
|
|
B(LdaConstant), U8(8),
|
2016-11-28 15:29:59 +00:00
|
|
|
B(TestEqualStrict), R(13), U8(20),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
|
|
|
B(Jump), U8(18),
|
Revert of Remove SIMD.js from V8. (patchset #7 id:120001 of https://codereview.chromium.org/2684313003/ )
Reason for revert:
Breaks Node integration build.
Original issue's description:
> Remove SIMD.js from V8.
>
> LOG=Y
> BUG=v8:4124,v8:5948
> R=bradnelson@chromium.org,bmeurer@chromium.org,jochen@chromium.org,hpayer@chromium.org,danno@chromium.org
>
> Review-Url: https://codereview.chromium.org/2684313003
> Cr-Original-Commit-Position: refs/heads/master@{#43162}
> Committed: https://chromium.googlesource.com/v8/v8/+/d170c57ab996d00c4665a9d865bd5754a1806c6c
> Review-Url: https://codereview.chromium.org/2684313003
> Cr-Commit-Position: refs/heads/master@{#43169}
> Committed: https://chromium.googlesource.com/v8/v8/+/a9b59a11f1bfe069afabe5567f919727456f1f12
TBR=bradnelson@chromium.org,bmeurer@chromium.org,jochen@chromium.org,hpayer@chromium.org,danno@chromium.org,bradnelson@google.com,machenbach@chromium.org,bbudge@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=v8:4124,v8:5948
Review-Url: https://codereview.chromium.org/2695653005
Cr-Commit-Position: refs/heads/master@{#43170}
2017-02-13 21:33:46 +00:00
|
|
|
B(Wide), B(LdaSmi), I16(131),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(13),
|
2016-09-05 12:10:16 +00:00
|
|
|
B(LdaConstant), U8(9),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(14),
|
|
|
|
B(CallRuntime), U16(Runtime::kNewTypeError), R(13), U8(2),
|
|
|
|
B(Throw),
|
|
|
|
B(Mov), R(context), R(13),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Mov), R(7), R(14),
|
|
|
|
B(Mov), R(3), R(15),
|
2016-06-21 14:37:16 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_Call), R(14), U8(2),
|
2016-11-16 10:46:23 +00:00
|
|
|
B(Jump), U8(20),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(14),
|
2016-08-18 16:51:11 +00:00
|
|
|
B(Ldar), R(closure),
|
2016-09-05 12:10:16 +00:00
|
|
|
B(CreateCatchContext), R(14), U8(5), U8(10),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(13),
|
2016-11-16 10:46:23 +00:00
|
|
|
B(LdaTheHole),
|
|
|
|
B(SetPendingMessage),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Ldar), R(13),
|
|
|
|
B(PushContext), R(9),
|
|
|
|
B(PopContext), R(9),
|
2016-06-21 14:37:16 +00:00
|
|
|
B(Jump), U8(27),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Mov), R(7), R(13),
|
|
|
|
B(Mov), R(3), R(14),
|
2016-06-21 14:37:16 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_Call), R(13), U8(2),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Star), R(8),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(8), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfToBooleanFalse), U8(4),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Jump), U8(7),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(8), U8(1),
|
2016-11-16 10:46:23 +00:00
|
|
|
B(Ldar), R(12),
|
|
|
|
B(SetPendingMessage),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaZero),
|
2016-08-30 10:21:02 +00:00
|
|
|
B(TestEqualStrict), R(10), U8(0),
|
|
|
|
B(JumpIfTrue), U8(11),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(1),
|
2016-08-30 10:21:02 +00:00
|
|
|
B(TestEqualStrict), R(10), U8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfTrue), U8(7),
|
|
|
|
B(Jump), U8(8),
|
|
|
|
B(Ldar), R(11),
|
|
|
|
/* 85 S> */ B(Return),
|
|
|
|
B(Ldar), R(11),
|
|
|
|
B(ReThrow),
|
|
|
|
B(LdaUndefined),
|
|
|
|
/* 85 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["potatoes"],
|
|
|
|
SYMBOL_TYPE,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
|
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
|
|
|
|
FIXED_ARRAY_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
[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:19:52 +00:00
|
|
|
[11, 129, 135],
|
|
|
|
[14, 93, 95],
|
|
|
|
[203, 213, 215],
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
for (var x of [10, 20, 30]) {
|
|
|
|
if (x == 10) continue;
|
|
|
|
if (x == 20) break;
|
|
|
|
}
|
|
|
|
"
|
2016-08-18 16:51:11 +00:00
|
|
|
frame size: 15
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
[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:19:52 +00:00
|
|
|
bytecode array length: 290
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
B(LdaZero),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Star), R(4),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Mov), R(context), R(11),
|
|
|
|
B(Mov), R(context), R(12),
|
2017-01-30 12:31:35 +00:00
|
|
|
/* 48 S> */ B(CreateArrayLiteral), U8(0), U8(2), U8(9),
|
2016-11-09 13:16:01 +00:00
|
|
|
B(Star), R(13),
|
2017-01-30 12:31:35 +00:00
|
|
|
B(LdaNamedProperty), R(13), U8(1), U8(3),
|
[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:19:52 +00:00
|
|
|
B(Star), R(14),
|
2017-01-30 12:31:35 +00:00
|
|
|
B(CallProperty), R(14), R(13), U8(1), U8(5),
|
[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:19:52 +00:00
|
|
|
B(JumpIfJSReceiver), U8(7),
|
|
|
|
B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(2),
|
2017-01-30 12:31:35 +00:00
|
|
|
/* 45 S> */ B(LdaNamedProperty), R(2), U8(2), U8(9),
|
2016-12-15 10:59:57 +00:00
|
|
|
B(Star), R(13),
|
2017-01-30 12:31:35 +00:00
|
|
|
/* 45 E> */ B(CallProperty), R(13), R(2), U8(1), U8(7),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Star), R(3),
|
|
|
|
/* 45 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(3), U8(1),
|
2016-05-17 20:39:45 +00:00
|
|
|
B(ToBooleanLogicalNot),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(JumpIfFalse), U8(7),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(3), U8(1),
|
2017-01-30 12:31:35 +00:00
|
|
|
B(LdaNamedProperty), R(3), U8(3), U8(11),
|
2016-11-09 13:16:01 +00:00
|
|
|
B(JumpIfToBooleanTrue), U8(43),
|
2017-01-30 12:31:35 +00:00
|
|
|
B(LdaNamedProperty), R(3), U8(4), U8(13),
|
2016-11-09 13:16:01 +00:00
|
|
|
B(Star), R(5),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(2),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Star), R(4),
|
|
|
|
B(Mov), R(5), R(0),
|
2016-05-27 15:57:35 +00:00
|
|
|
/* 34 E> */ B(StackCheck),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Mov), R(0), R(1),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 66 S> */ B(LdaSmi), I8(10),
|
2017-01-30 12:31:35 +00:00
|
|
|
/* 72 E> */ B(TestEqual), R(1), U8(15),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
2016-08-30 10:21:02 +00:00
|
|
|
/* 79 S> */ B(Jump), U8(14),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 91 S> */ B(LdaSmi), I8(20),
|
2017-01-30 12:31:35 +00:00
|
|
|
/* 97 E> */ B(TestEqual), R(1), U8(16),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
2016-09-13 13:07:15 +00:00
|
|
|
/* 104 S> */ B(Jump), U8(8),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaZero),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Star), R(4),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(JumpLoop), U8(69), I8(0),
|
2016-11-10 10:41:48 +00:00
|
|
|
B(Jump), U8(36),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(13),
|
2016-08-18 16:51:11 +00:00
|
|
|
B(Ldar), R(closure),
|
2016-09-05 12:10:16 +00:00
|
|
|
B(CreateCatchContext), R(13), U8(5), U8(6),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(12),
|
|
|
|
B(PushContext), R(8),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(2),
|
2017-01-30 12:31:35 +00:00
|
|
|
B(TestEqualStrict), R(4), U8(17),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(6),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(1),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Star), R(4),
|
2017-02-07 20:42:03 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
2016-11-10 10:41:48 +00:00
|
|
|
B(Star), R(13),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kReThrow), R(13), U8(1),
|
|
|
|
B(PopContext), R(8),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(-1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(9),
|
|
|
|
B(Jump), U8(7),
|
|
|
|
B(Star), R(10),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(9),
|
2016-11-16 10:46:23 +00:00
|
|
|
B(LdaTheHole),
|
|
|
|
B(SetPendingMessage),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(11),
|
|
|
|
B(LdaZero),
|
2017-01-30 12:31:35 +00:00
|
|
|
B(TestEqualStrict), R(4), U8(18),
|
2016-12-06 11:32:09 +00:00
|
|
|
B(JumpIfTrue), U8(111),
|
2017-01-30 12:31:35 +00:00
|
|
|
B(LdaNamedProperty), R(2), U8(7), U8(19),
|
2016-11-09 13:16:01 +00:00
|
|
|
B(Star), R(6),
|
2016-12-06 11:32:09 +00:00
|
|
|
B(TestUndetectable), R(6),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
2016-11-16 10:46:23 +00:00
|
|
|
B(Jump), U8(99),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(1),
|
2017-01-30 12:31:35 +00:00
|
|
|
B(TestEqualStrict), R(4), U8(22),
|
2016-11-16 10:46:23 +00:00
|
|
|
B(JumpIfFalse), U8(67),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Ldar), R(6),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(TypeOf),
|
|
|
|
B(Star), R(12),
|
2016-09-05 12:10:16 +00:00
|
|
|
B(LdaConstant), U8(8),
|
2017-01-30 12:31:35 +00:00
|
|
|
B(TestEqualStrict), R(12), U8(23),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
|
|
|
B(Jump), U8(18),
|
Revert of Remove SIMD.js from V8. (patchset #7 id:120001 of https://codereview.chromium.org/2684313003/ )
Reason for revert:
Breaks Node integration build.
Original issue's description:
> Remove SIMD.js from V8.
>
> LOG=Y
> BUG=v8:4124,v8:5948
> R=bradnelson@chromium.org,bmeurer@chromium.org,jochen@chromium.org,hpayer@chromium.org,danno@chromium.org
>
> Review-Url: https://codereview.chromium.org/2684313003
> Cr-Original-Commit-Position: refs/heads/master@{#43162}
> Committed: https://chromium.googlesource.com/v8/v8/+/d170c57ab996d00c4665a9d865bd5754a1806c6c
> Review-Url: https://codereview.chromium.org/2684313003
> Cr-Commit-Position: refs/heads/master@{#43169}
> Committed: https://chromium.googlesource.com/v8/v8/+/a9b59a11f1bfe069afabe5567f919727456f1f12
TBR=bradnelson@chromium.org,bmeurer@chromium.org,jochen@chromium.org,hpayer@chromium.org,danno@chromium.org,bradnelson@google.com,machenbach@chromium.org,bbudge@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=v8:4124,v8:5948
Review-Url: https://codereview.chromium.org/2695653005
Cr-Commit-Position: refs/heads/master@{#43170}
2017-02-13 21:33:46 +00:00
|
|
|
B(Wide), B(LdaSmi), I16(131),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(12),
|
2016-09-05 12:10:16 +00:00
|
|
|
B(LdaConstant), U8(9),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(13),
|
|
|
|
B(CallRuntime), U16(Runtime::kNewTypeError), R(12), U8(2),
|
|
|
|
B(Throw),
|
|
|
|
B(Mov), R(context), R(12),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Mov), R(6), R(13),
|
|
|
|
B(Mov), R(2), R(14),
|
2016-06-21 14:37:16 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_Call), R(13), U8(2),
|
2016-11-16 10:46:23 +00:00
|
|
|
B(Jump), U8(20),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(13),
|
2016-08-18 16:51:11 +00:00
|
|
|
B(Ldar), R(closure),
|
2016-09-05 12:10:16 +00:00
|
|
|
B(CreateCatchContext), R(13), U8(5), U8(10),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(12),
|
2016-11-16 10:46:23 +00:00
|
|
|
B(LdaTheHole),
|
|
|
|
B(SetPendingMessage),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Ldar), R(12),
|
|
|
|
B(PushContext), R(8),
|
|
|
|
B(PopContext), R(8),
|
2016-06-21 14:37:16 +00:00
|
|
|
B(Jump), U8(27),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Mov), R(6), R(12),
|
|
|
|
B(Mov), R(2), R(13),
|
2016-06-21 14:37:16 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_Call), R(12), U8(2),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Star), R(7),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(7), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfToBooleanFalse), U8(4),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Jump), U8(7),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(7), U8(1),
|
2016-11-16 10:46:23 +00:00
|
|
|
B(Ldar), R(11),
|
|
|
|
B(SetPendingMessage),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaZero),
|
2016-08-30 10:21:02 +00:00
|
|
|
B(TestEqualStrict), R(9), U8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfTrue), U8(4),
|
|
|
|
B(Jump), U8(5),
|
|
|
|
B(Ldar), R(10),
|
|
|
|
B(ReThrow),
|
|
|
|
B(LdaUndefined),
|
|
|
|
/* 113 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-12-16 10:57:06 +00:00
|
|
|
CONSTANT_ELEMENTS_PAIR_TYPE,
|
2016-09-06 16:10:19 +00:00
|
|
|
SYMBOL_TYPE,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
|
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
|
|
|
|
FIXED_ARRAY_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
[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:19:52 +00:00
|
|
|
[7, 144, 150],
|
|
|
|
[10, 108, 110],
|
|
|
|
[217, 227, 229],
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = { 'a': 1, 'b': 2 };
|
|
|
|
for (x['a'] of [1,2,3]) { return x['a']; }
|
|
|
|
"
|
2016-08-18 16:51:11 +00:00
|
|
|
frame size: 14
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
[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:19:52 +00:00
|
|
|
bytecode array length: 297
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2017-01-30 12:31:35 +00:00
|
|
|
/* 42 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(1), R(8),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Mov), R(8), R(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaZero),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Star), R(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Mov), R(context), R(10),
|
|
|
|
B(Mov), R(context), R(11),
|
2017-01-30 12:31:35 +00:00
|
|
|
/* 77 S> */ B(CreateArrayLiteral), U8(1), U8(3), U8(9),
|
2016-11-09 13:16:01 +00:00
|
|
|
B(Star), R(12),
|
2017-01-30 12:31:35 +00:00
|
|
|
B(LdaNamedProperty), R(12), U8(2), U8(4),
|
[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:19:52 +00:00
|
|
|
B(Star), R(13),
|
2017-01-30 12:31:35 +00:00
|
|
|
B(CallProperty), R(13), R(12), U8(1), U8(6),
|
[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:19:52 +00:00
|
|
|
B(JumpIfJSReceiver), U8(7),
|
|
|
|
B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(1),
|
2017-01-30 12:31:35 +00:00
|
|
|
/* 74 S> */ B(LdaNamedProperty), R(1), U8(3), U8(10),
|
2016-12-15 10:59:57 +00:00
|
|
|
B(Star), R(12),
|
2017-01-30 12:31:35 +00:00
|
|
|
/* 74 E> */ B(CallProperty), R(12), R(1), U8(1), U8(8),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Star), R(2),
|
|
|
|
/* 74 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(2), U8(1),
|
2016-05-17 20:39:45 +00:00
|
|
|
B(ToBooleanLogicalNot),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(JumpIfFalse), U8(7),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(2), U8(1),
|
2017-01-30 12:31:35 +00:00
|
|
|
B(LdaNamedProperty), R(2), U8(4), U8(12),
|
2016-11-09 13:16:01 +00:00
|
|
|
B(JumpIfToBooleanTrue), U8(31),
|
2017-01-30 12:31:35 +00:00
|
|
|
/* 67 E> */ B(LdaNamedProperty), R(2), U8(5), U8(14),
|
2016-11-09 13:16:01 +00:00
|
|
|
B(Star), R(4),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(2),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Star), R(3),
|
|
|
|
B(Ldar), R(4),
|
2017-01-30 12:31:35 +00:00
|
|
|
B(StaNamedPropertySloppy), R(0), U8(6), U8(16),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 62 E> */ B(StackCheck),
|
2016-05-27 15:57:35 +00:00
|
|
|
/* 88 S> */ B(Nop),
|
2017-01-30 12:31:35 +00:00
|
|
|
/* 96 E> */ B(LdaNamedProperty), R(0), U8(6), U8(18),
|
2016-11-09 13:16:01 +00:00
|
|
|
B(Star), R(9),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(8),
|
2016-11-10 10:41:48 +00:00
|
|
|
B(Jump), U8(50),
|
|
|
|
B(Jump), U8(36),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(12),
|
2016-08-18 16:51:11 +00:00
|
|
|
B(Ldar), R(closure),
|
2016-09-05 12:10:16 +00:00
|
|
|
B(CreateCatchContext), R(12), U8(7), U8(8),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(11),
|
|
|
|
B(PushContext), R(7),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(2),
|
2017-01-30 12:31:35 +00:00
|
|
|
B(TestEqualStrict), R(3), U8(20),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(6),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(1),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Star), R(3),
|
2017-02-07 20:42:03 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
2016-11-10 10:41:48 +00:00
|
|
|
B(Star), R(12),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kReThrow), R(12), U8(1),
|
|
|
|
B(PopContext), R(7),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(-1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(8),
|
|
|
|
B(Jump), U8(8),
|
|
|
|
B(Star), R(9),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(8),
|
2016-11-16 10:46:23 +00:00
|
|
|
B(LdaTheHole),
|
|
|
|
B(SetPendingMessage),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(10),
|
|
|
|
B(LdaZero),
|
2017-01-30 12:31:35 +00:00
|
|
|
B(TestEqualStrict), R(3), U8(21),
|
2016-12-06 11:32:09 +00:00
|
|
|
B(JumpIfTrue), U8(111),
|
2017-01-30 12:31:35 +00:00
|
|
|
B(LdaNamedProperty), R(1), U8(9), U8(22),
|
2016-11-09 13:16:01 +00:00
|
|
|
B(Star), R(5),
|
2016-12-06 11:32:09 +00:00
|
|
|
B(TestUndetectable), R(5),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
2016-11-16 10:46:23 +00:00
|
|
|
B(Jump), U8(99),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(1),
|
2017-01-30 12:31:35 +00:00
|
|
|
B(TestEqualStrict), R(3), U8(25),
|
2016-11-16 10:46:23 +00:00
|
|
|
B(JumpIfFalse), U8(67),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Ldar), R(5),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(TypeOf),
|
|
|
|
B(Star), R(11),
|
2016-09-05 12:10:16 +00:00
|
|
|
B(LdaConstant), U8(10),
|
2017-01-30 12:31:35 +00:00
|
|
|
B(TestEqualStrict), R(11), U8(26),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
|
|
|
B(Jump), U8(18),
|
Revert of Remove SIMD.js from V8. (patchset #7 id:120001 of https://codereview.chromium.org/2684313003/ )
Reason for revert:
Breaks Node integration build.
Original issue's description:
> Remove SIMD.js from V8.
>
> LOG=Y
> BUG=v8:4124,v8:5948
> R=bradnelson@chromium.org,bmeurer@chromium.org,jochen@chromium.org,hpayer@chromium.org,danno@chromium.org
>
> Review-Url: https://codereview.chromium.org/2684313003
> Cr-Original-Commit-Position: refs/heads/master@{#43162}
> Committed: https://chromium.googlesource.com/v8/v8/+/d170c57ab996d00c4665a9d865bd5754a1806c6c
> Review-Url: https://codereview.chromium.org/2684313003
> Cr-Commit-Position: refs/heads/master@{#43169}
> Committed: https://chromium.googlesource.com/v8/v8/+/a9b59a11f1bfe069afabe5567f919727456f1f12
TBR=bradnelson@chromium.org,bmeurer@chromium.org,jochen@chromium.org,hpayer@chromium.org,danno@chromium.org,bradnelson@google.com,machenbach@chromium.org,bbudge@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=v8:4124,v8:5948
Review-Url: https://codereview.chromium.org/2695653005
Cr-Commit-Position: refs/heads/master@{#43170}
2017-02-13 21:33:46 +00:00
|
|
|
B(Wide), B(LdaSmi), I16(131),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(11),
|
2016-09-05 12:10:16 +00:00
|
|
|
B(LdaConstant), U8(11),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(12),
|
|
|
|
B(CallRuntime), U16(Runtime::kNewTypeError), R(11), U8(2),
|
|
|
|
B(Throw),
|
|
|
|
B(Mov), R(context), R(11),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Mov), R(5), R(12),
|
|
|
|
B(Mov), R(1), R(13),
|
2016-06-21 14:37:16 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_Call), R(12), U8(2),
|
2016-11-16 10:46:23 +00:00
|
|
|
B(Jump), U8(20),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(12),
|
2016-08-18 16:51:11 +00:00
|
|
|
B(Ldar), R(closure),
|
2016-09-05 12:10:16 +00:00
|
|
|
B(CreateCatchContext), R(12), U8(7), U8(12),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(11),
|
2016-11-16 10:46:23 +00:00
|
|
|
B(LdaTheHole),
|
|
|
|
B(SetPendingMessage),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Ldar), R(11),
|
|
|
|
B(PushContext), R(7),
|
|
|
|
B(PopContext), R(7),
|
2016-06-21 14:37:16 +00:00
|
|
|
B(Jump), U8(27),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Mov), R(5), R(11),
|
|
|
|
B(Mov), R(1), R(12),
|
2016-06-21 14:37:16 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_Call), R(11), U8(2),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(Star), R(6),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(6), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfToBooleanFalse), U8(4),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Jump), U8(7),
|
2016-08-25 19:11:19 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(6), U8(1),
|
2016-11-16 10:46:23 +00:00
|
|
|
B(Ldar), R(10),
|
|
|
|
B(SetPendingMessage),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaZero),
|
2016-08-30 10:21:02 +00:00
|
|
|
B(TestEqualStrict), R(8), U8(0),
|
|
|
|
B(JumpIfTrue), U8(11),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(1),
|
2016-08-30 10:21:02 +00:00
|
|
|
B(TestEqualStrict), R(8), U8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfTrue), U8(7),
|
|
|
|
B(Jump), U8(8),
|
|
|
|
B(Ldar), R(9),
|
|
|
|
/* 105 S> */ B(Return),
|
|
|
|
B(Ldar), R(9),
|
|
|
|
B(ReThrow),
|
|
|
|
B(LdaUndefined),
|
|
|
|
/* 105 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
2016-12-16 10:57:06 +00:00
|
|
|
CONSTANT_ELEMENTS_PAIR_TYPE,
|
2016-09-06 16:10:19 +00:00
|
|
|
SYMBOL_TYPE,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
|
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
|
|
|
|
FIXED_ARRAY_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
[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:19:52 +00:00
|
|
|
[15, 140, 146],
|
|
|
|
[18, 104, 106],
|
|
|
|
[214, 224, 226],
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
|