2016-02-25 12:07:07 +00:00
|
|
|
#
|
|
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
pool type: mixed
|
|
|
|
execute: yes
|
|
|
|
wrap: yes
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
for (var p of [0, 1, 2]) {}
|
|
|
|
"
|
2016-02-26 14:22:07 +00:00
|
|
|
frame size: 16
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-08-15 13:10:41 +00:00
|
|
|
bytecode array length: 282
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(3),
|
|
|
|
B(Mov), R(context), R(11),
|
|
|
|
B(Mov), R(context), R(12),
|
|
|
|
/* 48 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3),
|
|
|
|
B(Star), R(14),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(LdaConstant), U8(1),
|
|
|
|
/* 48 E> */ B(LdrKeyedProperty), R(14), U8(3), R(13),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 48 E> */ B(Call), R(13), R(14), U8(1), U8(1),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(1),
|
2016-05-27 15:57:35 +00:00
|
|
|
/* 45 S> */ B(LdrNamedProperty), R(1), U8(2), U8(7), R(14),
|
|
|
|
/* 45 E> */ B(Call), R(14), R(1), U8(1), U8(5),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(2),
|
2016-06-21 14:37:16 +00:00
|
|
|
/* 45 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),
|
|
|
|
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(2), U8(1),
|
|
|
|
B(LdaNamedProperty), R(2), U8(3), U8(9),
|
2016-07-07 08:15:11 +00:00
|
|
|
B(JumpIfToBooleanTrue), U8(23),
|
|
|
|
B(LdrNamedProperty), R(2), U8(4), U8(11), R(4),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaSmi), U8(2),
|
|
|
|
B(Star), R(3),
|
2016-07-07 08:15:11 +00:00
|
|
|
B(Mov), R(4), R(0),
|
2016-05-27 15:57:35 +00:00
|
|
|
/* 34 E> */ B(StackCheck),
|
|
|
|
B(Mov), R(0), R(7),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(3),
|
2016-07-07 08:15:11 +00:00
|
|
|
B(Jump), U8(-49),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Jump), U8(41),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(14),
|
|
|
|
B(LdaConstant), U8(5),
|
|
|
|
B(Star), R(13),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(closure), R(15),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kPushCatchContext), R(13), U8(3),
|
|
|
|
B(Star), R(12),
|
|
|
|
B(PushContext), R(8),
|
|
|
|
B(LdaSmi), U8(2),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(TestEqualStrict), R(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(6),
|
|
|
|
B(LdaSmi), U8(1),
|
|
|
|
B(Star), R(3),
|
2016-05-25 09:55:26 +00:00
|
|
|
B(LdrContextSlot), R(context), U8(4), R(13),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kReThrow), R(13), U8(1),
|
|
|
|
B(PopContext), R(8),
|
|
|
|
B(LdaSmi), U8(-1),
|
|
|
|
B(Star), R(9),
|
|
|
|
B(Jump), U8(7),
|
|
|
|
B(Star), R(10),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(9),
|
|
|
|
B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0),
|
|
|
|
B(Star), R(11),
|
|
|
|
B(LdaZero),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(TestEqualStrict), R(3),
|
2016-08-15 13:10:41 +00:00
|
|
|
B(JumpIfTrue), U8(123),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaUndefined),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(TestEqualStrict), R(1),
|
2016-08-15 13:10:41 +00:00
|
|
|
B(JumpIfTrue), U8(118),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(LdrNamedProperty), R(1), U8(6), U8(13), R(5),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaNull),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(TestEqual), R(5),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
2016-06-21 14:37:16 +00:00
|
|
|
B(Jump), U8(106),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaSmi), U8(1),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(TestEqualStrict), R(3),
|
2016-06-21 14:37:16 +00:00
|
|
|
B(JumpIfFalse), U8(75),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Ldar), R(5),
|
|
|
|
B(TypeOf),
|
|
|
|
B(Star), R(12),
|
|
|
|
B(LdaConstant), U8(7),
|
|
|
|
B(TestEqualStrict), R(12),
|
|
|
|
B(JumpIfFalse), U8(4),
|
|
|
|
B(Jump), U8(18),
|
2016-07-01 19:16:53 +00:00
|
|
|
B(Wide), B(LdaSmi), U16(129),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(12),
|
|
|
|
B(LdaConstant), U8(8),
|
|
|
|
B(Star), R(13),
|
|
|
|
B(CallRuntime), U16(Runtime::kNewTypeError), R(12), U8(2),
|
|
|
|
B(Throw),
|
|
|
|
B(Mov), R(context), R(12),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(5), R(13),
|
|
|
|
B(Mov), R(1), R(14),
|
2016-06-21 14:37:16 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_Call), R(13), U8(2),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Jump), U8(29),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(14),
|
|
|
|
B(LdaConstant), U8(5),
|
|
|
|
B(Star), R(13),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(closure), R(15),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kPushCatchContext), R(13), U8(3),
|
|
|
|
B(Star), R(12),
|
|
|
|
B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0),
|
|
|
|
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-05-27 15:57:35 +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-05-11 12:21:56 +00:00
|
|
|
B(Star), R(6),
|
2016-06-21 14:37:16 +00:00
|
|
|
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),
|
|
|
|
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(6), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kInterpreterSetPendingMessage), R(11), U8(1),
|
|
|
|
B(LdaZero),
|
|
|
|
B(TestEqualStrict), R(9),
|
|
|
|
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: [
|
|
|
|
InstanceType::FIXED_ARRAY_TYPE,
|
|
|
|
InstanceType::SYMBOL_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
2016-02-26 14:22:07 +00:00
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
2016-07-07 08:15:11 +00:00
|
|
|
[7, 121, 127],
|
|
|
|
[10, 80, 82],
|
2016-08-15 13:10:41 +00:00
|
|
|
[199, 209, 211],
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 'potatoes';
|
|
|
|
for (var p of x) { return p; }
|
|
|
|
"
|
2016-02-26 14:22:07 +00:00
|
|
|
frame size: 17
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-08-15 13:10:41 +00:00
|
|
|
bytecode array length: 295
|
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-06-09 13:32:33 +00:00
|
|
|
B(Star), R(7),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(3),
|
|
|
|
B(Mov), R(context), R(12),
|
|
|
|
B(Mov), R(context), R(13),
|
2016-06-09 13:32:33 +00:00
|
|
|
/* 68 S> */ B(LdaConstant), U8(1),
|
|
|
|
/* 68 E> */ B(LdrKeyedProperty), R(7), U8(3), R(14),
|
2016-05-27 15:57:35 +00:00
|
|
|
/* 68 E> */ B(Call), R(14), R(7), U8(1), U8(1),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(1),
|
2016-05-27 15:57:35 +00:00
|
|
|
/* 65 S> */ B(LdrNamedProperty), R(1), U8(2), U8(7), R(15),
|
|
|
|
/* 65 E> */ B(Call), R(15), R(1), U8(1), U8(5),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(2),
|
2016-06-21 14:37:16 +00:00
|
|
|
/* 65 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),
|
|
|
|
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(2), U8(1),
|
|
|
|
B(LdaNamedProperty), R(2), U8(3), U8(9),
|
2016-07-07 08:15:11 +00:00
|
|
|
B(JumpIfToBooleanTrue), U8(28),
|
|
|
|
B(LdrNamedProperty), R(2), U8(4), U8(11), R(4),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaSmi), U8(2),
|
|
|
|
B(Star), R(3),
|
2016-07-07 08:15:11 +00:00
|
|
|
B(Mov), R(4), R(0),
|
2016-05-27 15:57:35 +00:00
|
|
|
/* 54 E> */ B(StackCheck),
|
|
|
|
B(Mov), R(0), R(8),
|
|
|
|
/* 73 S> */ B(LdaZero),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(10),
|
2016-06-04 09:46:55 +00:00
|
|
|
B(Mov), R(0), R(11),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Jump), U8(57),
|
2016-07-07 08:15:11 +00:00
|
|
|
B(Jump), U8(-54),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Jump), U8(41),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(15),
|
|
|
|
B(LdaConstant), U8(5),
|
|
|
|
B(Star), R(14),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(closure), R(16),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kPushCatchContext), R(14), U8(3),
|
|
|
|
B(Star), R(13),
|
|
|
|
B(PushContext), R(9),
|
|
|
|
B(LdaSmi), U8(2),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(TestEqualStrict), R(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(6),
|
|
|
|
B(LdaSmi), U8(1),
|
|
|
|
B(Star), R(3),
|
2016-05-25 09:55:26 +00:00
|
|
|
B(LdrContextSlot), R(context), U8(4), R(14),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kReThrow), R(14), U8(1),
|
|
|
|
B(PopContext), R(9),
|
|
|
|
B(LdaSmi), U8(-1),
|
|
|
|
B(Star), R(10),
|
|
|
|
B(Jump), U8(8),
|
|
|
|
B(Star), R(11),
|
|
|
|
B(LdaSmi), U8(1),
|
|
|
|
B(Star), R(10),
|
|
|
|
B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0),
|
|
|
|
B(Star), R(12),
|
|
|
|
B(LdaZero),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(TestEqualStrict), R(3),
|
2016-08-15 13:10:41 +00:00
|
|
|
B(JumpIfTrue), U8(123),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaUndefined),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(TestEqualStrict), R(1),
|
2016-08-15 13:10:41 +00:00
|
|
|
B(JumpIfTrue), U8(118),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(LdrNamedProperty), R(1), U8(6), U8(13), R(5),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaNull),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(TestEqual), R(5),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
2016-06-21 14:37:16 +00:00
|
|
|
B(Jump), U8(106),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaSmi), U8(1),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(TestEqualStrict), R(3),
|
2016-06-21 14:37:16 +00:00
|
|
|
B(JumpIfFalse), U8(75),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Ldar), R(5),
|
|
|
|
B(TypeOf),
|
|
|
|
B(Star), R(13),
|
|
|
|
B(LdaConstant), U8(7),
|
|
|
|
B(TestEqualStrict), R(13),
|
|
|
|
B(JumpIfFalse), U8(4),
|
|
|
|
B(Jump), U8(18),
|
2016-07-01 19:16:53 +00:00
|
|
|
B(Wide), B(LdaSmi), U16(129),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(13),
|
|
|
|
B(LdaConstant), U8(8),
|
|
|
|
B(Star), R(14),
|
|
|
|
B(CallRuntime), U16(Runtime::kNewTypeError), R(13), U8(2),
|
|
|
|
B(Throw),
|
|
|
|
B(Mov), R(context), R(13),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(5), R(14),
|
|
|
|
B(Mov), R(1), R(15),
|
2016-06-21 14:37:16 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_Call), R(14), U8(2),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Jump), U8(29),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(15),
|
|
|
|
B(LdaConstant), U8(5),
|
|
|
|
B(Star), R(14),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(closure), R(16),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kPushCatchContext), R(14), U8(3),
|
|
|
|
B(Star), R(13),
|
|
|
|
B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0),
|
|
|
|
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-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(5), R(13),
|
|
|
|
B(Mov), R(1), R(14),
|
2016-06-21 14:37:16 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_Call), R(13), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(6),
|
2016-06-21 14:37:16 +00:00
|
|
|
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),
|
|
|
|
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(6), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kInterpreterSetPendingMessage), R(12), U8(1),
|
|
|
|
B(LdaZero),
|
|
|
|
B(TestEqualStrict), R(10),
|
|
|
|
B(JumpIfTrue), U8(10),
|
|
|
|
B(LdaSmi), U8(1),
|
|
|
|
B(TestEqualStrict), R(10),
|
|
|
|
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: [
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
InstanceType::SYMBOL_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
2016-02-26 14:22:07 +00:00
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
2016-07-07 08:15:11 +00:00
|
|
|
[11, 124, 130],
|
|
|
|
[14, 83, 85],
|
2016-08-15 13:10:41 +00:00
|
|
|
[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-02-26 14:22:07 +00:00
|
|
|
frame size: 16
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-08-15 13:10:41 +00:00
|
|
|
bytecode array length: 298
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(3),
|
|
|
|
B(Mov), R(context), R(11),
|
|
|
|
B(Mov), R(context), R(12),
|
|
|
|
/* 48 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3),
|
|
|
|
B(Star), R(14),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(LdaConstant), U8(1),
|
|
|
|
/* 48 E> */ B(LdrKeyedProperty), R(14), U8(3), R(13),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 48 E> */ B(Call), R(13), R(14), U8(1), U8(1),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(1),
|
2016-05-27 15:57:35 +00:00
|
|
|
/* 45 S> */ B(LdrNamedProperty), R(1), U8(2), U8(7), R(14),
|
|
|
|
/* 45 E> */ B(Call), R(14), R(1), U8(1), U8(5),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(2),
|
2016-06-21 14:37:16 +00:00
|
|
|
/* 45 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),
|
|
|
|
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(2), U8(1),
|
|
|
|
B(LdaNamedProperty), R(2), U8(3), U8(9),
|
2016-07-07 08:15:11 +00:00
|
|
|
B(JumpIfToBooleanTrue), U8(39),
|
|
|
|
B(LdrNamedProperty), R(2), U8(4), U8(11), R(4),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaSmi), U8(2),
|
|
|
|
B(Star), R(3),
|
2016-07-07 08:15:11 +00:00
|
|
|
B(Mov), R(4), R(0),
|
2016-05-27 15:57:35 +00:00
|
|
|
/* 34 E> */ B(StackCheck),
|
|
|
|
B(Mov), R(0), R(7),
|
|
|
|
/* 66 S> */ B(LdaSmi), U8(10),
|
|
|
|
/* 72 E> */ B(TestEqual), R(7),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
2016-05-27 15:57:35 +00:00
|
|
|
/* 79 S> */ B(Jump), U8(13),
|
|
|
|
/* 91 S> */ B(LdaSmi), U8(20),
|
|
|
|
/* 97 E> */ B(TestEqual), R(7),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
|
|
|
/* 104 S> */ B(Jump), U8(7),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(3),
|
2016-07-07 08:15:11 +00:00
|
|
|
B(Jump), U8(-65),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Jump), U8(41),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(14),
|
|
|
|
B(LdaConstant), U8(5),
|
|
|
|
B(Star), R(13),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(closure), R(15),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kPushCatchContext), R(13), U8(3),
|
|
|
|
B(Star), R(12),
|
|
|
|
B(PushContext), R(8),
|
|
|
|
B(LdaSmi), U8(2),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(TestEqualStrict), R(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(6),
|
|
|
|
B(LdaSmi), U8(1),
|
|
|
|
B(Star), R(3),
|
2016-05-25 09:55:26 +00:00
|
|
|
B(LdrContextSlot), R(context), U8(4), R(13),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kReThrow), R(13), U8(1),
|
|
|
|
B(PopContext), R(8),
|
|
|
|
B(LdaSmi), U8(-1),
|
|
|
|
B(Star), R(9),
|
|
|
|
B(Jump), U8(7),
|
|
|
|
B(Star), R(10),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(9),
|
|
|
|
B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0),
|
|
|
|
B(Star), R(11),
|
|
|
|
B(LdaZero),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(TestEqualStrict), R(3),
|
2016-08-15 13:10:41 +00:00
|
|
|
B(JumpIfTrue), U8(123),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaUndefined),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(TestEqualStrict), R(1),
|
2016-08-15 13:10:41 +00:00
|
|
|
B(JumpIfTrue), U8(118),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(LdrNamedProperty), R(1), U8(6), U8(13), R(5),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaNull),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(TestEqual), R(5),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
2016-06-21 14:37:16 +00:00
|
|
|
B(Jump), U8(106),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaSmi), U8(1),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(TestEqualStrict), R(3),
|
2016-06-21 14:37:16 +00:00
|
|
|
B(JumpIfFalse), U8(75),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Ldar), R(5),
|
|
|
|
B(TypeOf),
|
|
|
|
B(Star), R(12),
|
|
|
|
B(LdaConstant), U8(7),
|
|
|
|
B(TestEqualStrict), R(12),
|
|
|
|
B(JumpIfFalse), U8(4),
|
|
|
|
B(Jump), U8(18),
|
2016-07-01 19:16:53 +00:00
|
|
|
B(Wide), B(LdaSmi), U16(129),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(12),
|
|
|
|
B(LdaConstant), U8(8),
|
|
|
|
B(Star), R(13),
|
|
|
|
B(CallRuntime), U16(Runtime::kNewTypeError), R(12), U8(2),
|
|
|
|
B(Throw),
|
|
|
|
B(Mov), R(context), R(12),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(5), R(13),
|
|
|
|
B(Mov), R(1), R(14),
|
2016-06-21 14:37:16 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_Call), R(13), U8(2),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Jump), U8(29),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(14),
|
|
|
|
B(LdaConstant), U8(5),
|
|
|
|
B(Star), R(13),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(closure), R(15),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kPushCatchContext), R(13), U8(3),
|
|
|
|
B(Star), R(12),
|
|
|
|
B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0),
|
|
|
|
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-05-27 15:57:35 +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-05-11 12:21:56 +00:00
|
|
|
B(Star), R(6),
|
2016-06-21 14:37:16 +00:00
|
|
|
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),
|
|
|
|
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(6), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kInterpreterSetPendingMessage), R(11), U8(1),
|
|
|
|
B(LdaZero),
|
|
|
|
B(TestEqualStrict), R(9),
|
|
|
|
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: [
|
|
|
|
InstanceType::FIXED_ARRAY_TYPE,
|
|
|
|
InstanceType::SYMBOL_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
2016-02-26 14:22:07 +00:00
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
2016-07-07 08:15:11 +00:00
|
|
|
[7, 137, 143],
|
|
|
|
[10, 96, 98],
|
2016-08-15 13:10:41 +00:00
|
|
|
[215, 225, 227],
|
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-02-26 14:22:07 +00:00
|
|
|
frame size: 15
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-08-15 13:10:41 +00:00
|
|
|
bytecode array length: 308
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2016-08-09 10:30:03 +00:00
|
|
|
/* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(8),
|
|
|
|
B(Mov), R(8), R(6),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(2),
|
|
|
|
B(Mov), R(context), R(10),
|
|
|
|
B(Mov), R(context), R(11),
|
|
|
|
/* 77 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(3),
|
|
|
|
B(Star), R(13),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(LdaConstant), U8(2),
|
|
|
|
/* 77 E> */ B(LdrKeyedProperty), R(13), U8(3), R(12),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 77 E> */ B(Call), R(12), R(13), U8(1), U8(1),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2016-05-27 15:57:35 +00:00
|
|
|
/* 74 S> */ B(LdrNamedProperty), R(0), U8(3), U8(7), R(13),
|
|
|
|
/* 74 E> */ B(Call), R(13), R(0), U8(1), U8(5),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(1),
|
2016-06-21 14:37:16 +00:00
|
|
|
/* 74 E> */ B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(1), U8(1),
|
2016-05-17 20:39:45 +00:00
|
|
|
B(ToBooleanLogicalNot),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(JumpIfFalse), U8(7),
|
|
|
|
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(1), U8(1),
|
|
|
|
B(LdaNamedProperty), R(1), U8(4), U8(9),
|
2016-07-07 08:15:11 +00:00
|
|
|
B(JumpIfToBooleanTrue), U8(31),
|
|
|
|
/* 67 E> */ B(LdrNamedProperty), R(1), U8(5), U8(11), R(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaSmi), U8(2),
|
|
|
|
B(Star), R(2),
|
2016-07-07 08:15:11 +00:00
|
|
|
B(Ldar), R(3),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(StaNamedPropertySloppy), R(6), U8(6), U8(13),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 62 E> */ B(StackCheck),
|
2016-05-27 15:57:35 +00:00
|
|
|
/* 88 S> */ B(Nop),
|
|
|
|
/* 96 E> */ B(LdrNamedProperty), R(6), U8(6), U8(15), R(9),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(8),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Jump), U8(57),
|
2016-07-07 08:15:11 +00:00
|
|
|
B(Jump), U8(-57),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Jump), U8(41),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(13),
|
|
|
|
B(LdaConstant), U8(7),
|
|
|
|
B(Star), R(12),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(closure), R(14),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kPushCatchContext), R(12), U8(3),
|
|
|
|
B(Star), R(11),
|
|
|
|
B(PushContext), R(7),
|
|
|
|
B(LdaSmi), U8(2),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(TestEqualStrict), R(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(6),
|
|
|
|
B(LdaSmi), U8(1),
|
|
|
|
B(Star), R(2),
|
2016-05-25 09:55:26 +00:00
|
|
|
B(LdrContextSlot), R(context), U8(4), R(12),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kReThrow), R(12), U8(1),
|
|
|
|
B(PopContext), R(7),
|
|
|
|
B(LdaSmi), U8(-1),
|
|
|
|
B(Star), R(8),
|
|
|
|
B(Jump), U8(8),
|
|
|
|
B(Star), R(9),
|
|
|
|
B(LdaSmi), U8(1),
|
|
|
|
B(Star), R(8),
|
|
|
|
B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0),
|
|
|
|
B(Star), R(10),
|
|
|
|
B(LdaZero),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(TestEqualStrict), R(2),
|
2016-08-15 13:10:41 +00:00
|
|
|
B(JumpIfTrue), U8(123),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaUndefined),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(TestEqualStrict), R(0),
|
2016-08-15 13:10:41 +00:00
|
|
|
B(JumpIfTrue), U8(118),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(LdrNamedProperty), R(0), U8(8), U8(17), R(4),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaNull),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(TestEqual), R(4),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
2016-06-21 14:37:16 +00:00
|
|
|
B(Jump), U8(106),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaSmi), U8(1),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(TestEqualStrict), R(2),
|
2016-06-21 14:37:16 +00:00
|
|
|
B(JumpIfFalse), U8(75),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Ldar), R(4),
|
|
|
|
B(TypeOf),
|
|
|
|
B(Star), R(11),
|
|
|
|
B(LdaConstant), U8(9),
|
|
|
|
B(TestEqualStrict), R(11),
|
|
|
|
B(JumpIfFalse), U8(4),
|
|
|
|
B(Jump), U8(18),
|
2016-07-01 19:16:53 +00:00
|
|
|
B(Wide), B(LdaSmi), U16(129),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(11),
|
|
|
|
B(LdaConstant), U8(10),
|
|
|
|
B(Star), R(12),
|
|
|
|
B(CallRuntime), U16(Runtime::kNewTypeError), R(11), U8(2),
|
|
|
|
B(Throw),
|
|
|
|
B(Mov), R(context), R(11),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(4), R(12),
|
|
|
|
B(Mov), R(0), R(13),
|
2016-06-21 14:37:16 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_Call), R(12), U8(2),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Jump), U8(29),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(13),
|
|
|
|
B(LdaConstant), U8(7),
|
|
|
|
B(Star), R(12),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(closure), R(14),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kPushCatchContext), R(12), U8(3),
|
|
|
|
B(Star), R(11),
|
|
|
|
B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0),
|
|
|
|
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-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(4), R(11),
|
|
|
|
B(Mov), R(0), R(12),
|
2016-06-21 14:37:16 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_Call), R(11), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(5),
|
2016-06-21 14:37:16 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(5), 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),
|
|
|
|
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(5), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kInterpreterSetPendingMessage), R(10), U8(1),
|
|
|
|
B(LdaZero),
|
|
|
|
B(TestEqualStrict), R(8),
|
|
|
|
B(JumpIfTrue), U8(10),
|
|
|
|
B(LdaSmi), U8(1),
|
|
|
|
B(TestEqualStrict), R(8),
|
|
|
|
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: [
|
|
|
|
InstanceType::FIXED_ARRAY_TYPE,
|
|
|
|
InstanceType::FIXED_ARRAY_TYPE,
|
|
|
|
InstanceType::SYMBOL_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
2016-02-26 14:22:07 +00:00
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
2016-07-07 08:15:11 +00:00
|
|
|
[15, 137, 143],
|
|
|
|
[18, 96, 98],
|
2016-08-15 13:10:41 +00:00
|
|
|
[216, 226, 228],
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
|