2017-04-18 14:56:06 +00:00
|
|
|
#
|
|
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
wrap: no
|
|
|
|
test function name: f
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
function f() {
|
|
|
|
for (let x = 0; x < 10; ++x) { let y = x; }
|
|
|
|
}
|
|
|
|
f();
|
|
|
|
"
|
|
|
|
frame size: 2
|
|
|
|
parameter count: 1
|
2017-05-08 18:55:54 +00:00
|
|
|
bytecode array length: 26
|
2017-04-18 14:56:06 +00:00
|
|
|
bytecodes: [
|
|
|
|
/* 10 E> */ B(StackCheck),
|
|
|
|
/* 30 S> */ B(LdaZero),
|
|
|
|
B(Star), R(1),
|
|
|
|
/* 35 S> */ B(LdaSmi), I8(10),
|
2017-05-03 15:59:47 +00:00
|
|
|
/* 35 E> */ B(TestLessThan), R(1), U8(3),
|
2017-05-08 18:55:54 +00:00
|
|
|
B(JumpIfFalse), U8(15),
|
2017-04-18 14:56:06 +00:00
|
|
|
/* 17 E> */ B(StackCheck),
|
|
|
|
/* 56 S> */ B(Mov), R(1), R(0),
|
|
|
|
/* 43 S> */ B(Ldar), R(0),
|
2017-05-03 15:59:47 +00:00
|
|
|
B(Inc), U8(4),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(Star), R(1),
|
2017-05-08 18:55:54 +00:00
|
|
|
B(JumpLoop), U8(17), I8(0),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(LdaUndefined),
|
|
|
|
/* 61 S> */ B(Return),
|
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
function f() {
|
|
|
|
for (let x = 0; x < 10; ++x) { eval('1'); }
|
|
|
|
}
|
|
|
|
f();
|
|
|
|
"
|
|
|
|
frame size: 14
|
|
|
|
parameter count: 1
|
|
|
|
bytecode array length: 168
|
|
|
|
bytecodes: [
|
|
|
|
B(CreateFunctionContext), U8(3),
|
|
|
|
B(PushContext), R(3),
|
|
|
|
B(Ldar), R(this),
|
|
|
|
B(StaCurrentContextSlot), U8(4),
|
|
|
|
B(CreateMappedArguments),
|
|
|
|
B(StaCurrentContextSlot), U8(6),
|
|
|
|
B(Ldar), R(new_target),
|
|
|
|
B(StaCurrentContextSlot), U8(5),
|
|
|
|
/* 10 E> */ B(StackCheck),
|
|
|
|
B(Ldar), R(closure),
|
|
|
|
B(CreateBlockContext), U8(0),
|
|
|
|
B(PushContext), R(4),
|
|
|
|
B(LdaTheHole),
|
|
|
|
B(StaCurrentContextSlot), U8(4),
|
|
|
|
/* 30 S> */ B(LdaZero),
|
|
|
|
/* 30 E> */ B(StaCurrentContextSlot), U8(4),
|
|
|
|
B(LdaCurrentContextSlot), U8(4),
|
|
|
|
B(Star), R(0),
|
|
|
|
B(LdaSmi), I8(1),
|
|
|
|
B(Star), R(1),
|
|
|
|
/* 59 E> */ B(StackCheck),
|
|
|
|
B(Ldar), R(closure),
|
|
|
|
B(CreateBlockContext), U8(1),
|
|
|
|
B(PushContext), R(5),
|
|
|
|
B(LdaTheHole),
|
|
|
|
B(StaCurrentContextSlot), U8(4),
|
|
|
|
B(Ldar), R(0),
|
|
|
|
B(StaCurrentContextSlot), U8(4),
|
|
|
|
B(LdaSmi), I8(1),
|
2017-05-03 15:59:47 +00:00
|
|
|
B(TestEqual), R(1), U8(3),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(JumpIfFalse), U8(7),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(1),
|
|
|
|
B(Jump), U8(8),
|
|
|
|
/* 43 S> */ B(LdaCurrentContextSlot), U8(4),
|
2017-05-03 15:59:47 +00:00
|
|
|
B(Inc), U8(4),
|
2017-04-18 14:56:06 +00:00
|
|
|
/* 43 E> */ B(StaCurrentContextSlot), U8(4),
|
|
|
|
B(LdaSmi), I8(1),
|
|
|
|
B(Star), R(2),
|
|
|
|
/* 35 S> */ B(LdaCurrentContextSlot), U8(4),
|
|
|
|
B(Star), R(6),
|
|
|
|
B(LdaSmi), I8(10),
|
2017-05-03 15:59:47 +00:00
|
|
|
/* 35 E> */ B(TestLessThan), R(6), U8(5),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
|
|
|
B(Jump), U8(6),
|
|
|
|
B(PopContext), R(5),
|
|
|
|
B(Jump), U8(77),
|
|
|
|
B(LdaSmi), I8(1),
|
2017-05-03 15:59:47 +00:00
|
|
|
B(TestEqual), R(2), U8(6),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(JumpIfFalse), U8(54),
|
|
|
|
/* 17 E> */ B(StackCheck),
|
2017-05-03 15:59:47 +00:00
|
|
|
/* 48 S> */ B(LdaLookupGlobalSlot), U8(2), U8(9), U8(1),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(Star), R(6),
|
|
|
|
B(LdaConstant), U8(3),
|
|
|
|
B(Star), R(7),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(11),
|
|
|
|
B(LdaSmi), I8(31),
|
|
|
|
B(Star), R(12),
|
|
|
|
B(LdaSmi), I8(48),
|
|
|
|
B(Star), R(13),
|
|
|
|
B(Mov), R(6), R(8),
|
|
|
|
B(Mov), R(7), R(9),
|
|
|
|
B(Mov), R(closure), R(10),
|
|
|
|
B(CallRuntime), U16(Runtime::kResolvePossiblyDirectEval), R(8), U8(6),
|
|
|
|
B(Star), R(6),
|
2017-05-03 15:59:47 +00:00
|
|
|
/* 48 E> */ B(CallUndefinedReceiver1), R(6), R(7), U8(7),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(2),
|
|
|
|
B(LdaCurrentContextSlot), U8(4),
|
|
|
|
B(Star), R(0),
|
|
|
|
B(JumpLoop), U8(56), I8(1),
|
|
|
|
B(LdaSmi), I8(1),
|
2017-05-03 15:59:47 +00:00
|
|
|
/* 59 E> */ B(TestEqual), R(2), U8(11),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(JumpIfFalse), U8(6),
|
|
|
|
B(PopContext), R(5),
|
|
|
|
B(Jump), U8(7),
|
|
|
|
B(PopContext), R(5),
|
|
|
|
B(JumpLoop), U8(125), I8(0),
|
|
|
|
B(PopContext), R(4),
|
|
|
|
B(LdaUndefined),
|
|
|
|
/* 61 S> */ B(Return),
|
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["eval"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["1"],
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
function f() {
|
|
|
|
for (let x = 0; x < 10; ++x) { (function() { return x; })(); }
|
|
|
|
}
|
|
|
|
f();
|
|
|
|
"
|
|
|
|
frame size: 6
|
|
|
|
parameter count: 1
|
2017-05-08 18:55:54 +00:00
|
|
|
bytecode array length: 108
|
2017-04-18 14:56:06 +00:00
|
|
|
bytecodes: [
|
|
|
|
/* 10 E> */ B(StackCheck),
|
|
|
|
/* 30 S> */ B(LdaZero),
|
|
|
|
B(Star), R(0),
|
|
|
|
B(Star), R(1),
|
|
|
|
B(LdaSmi), I8(1),
|
|
|
|
B(Star), R(2),
|
|
|
|
/* 78 E> */ B(StackCheck),
|
|
|
|
B(Ldar), R(closure),
|
|
|
|
B(CreateBlockContext), U8(0),
|
|
|
|
B(PushContext), R(4),
|
|
|
|
B(LdaTheHole),
|
|
|
|
B(StaCurrentContextSlot), U8(4),
|
|
|
|
B(Ldar), R(1),
|
|
|
|
B(StaCurrentContextSlot), U8(4),
|
|
|
|
B(LdaSmi), I8(1),
|
2017-05-03 15:59:47 +00:00
|
|
|
B(TestEqual), R(2), U8(3),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(JumpIfFalse), U8(7),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(2),
|
|
|
|
B(Jump), U8(8),
|
|
|
|
/* 43 S> */ B(LdaCurrentContextSlot), U8(4),
|
2017-05-03 15:59:47 +00:00
|
|
|
B(Inc), U8(4),
|
2017-04-18 14:56:06 +00:00
|
|
|
/* 43 E> */ B(StaCurrentContextSlot), U8(4),
|
|
|
|
B(LdaSmi), I8(1),
|
|
|
|
B(Star), R(3),
|
|
|
|
/* 35 S> */ B(LdaCurrentContextSlot), U8(4),
|
|
|
|
B(Star), R(5),
|
|
|
|
B(LdaSmi), I8(10),
|
2017-05-03 15:59:47 +00:00
|
|
|
/* 35 E> */ B(TestLessThan), R(5), U8(5),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
|
|
|
B(Jump), U8(6),
|
|
|
|
B(PopContext), R(4),
|
|
|
|
B(Jump), U8(45),
|
|
|
|
B(LdaSmi), I8(1),
|
2017-05-03 15:59:47 +00:00
|
|
|
B(TestEqual), R(3), U8(6),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(JumpIfFalse), U8(22),
|
|
|
|
/* 17 E> */ B(StackCheck),
|
2017-05-03 15:59:47 +00:00
|
|
|
/* 48 S> */ B(CreateClosure), U8(1), U8(9), U8(2),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(Star), R(5),
|
2017-05-03 15:59:47 +00:00
|
|
|
/* 74 E> */ B(CallUndefinedReceiver0), R(5), U8(7),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(3),
|
|
|
|
B(LdaCurrentContextSlot), U8(4),
|
|
|
|
B(Star), R(1),
|
|
|
|
B(JumpLoop), U8(24), I8(1),
|
|
|
|
B(LdaSmi), I8(1),
|
2017-05-03 15:59:47 +00:00
|
|
|
/* 78 E> */ B(TestEqual), R(3), U8(10),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(JumpIfFalse), U8(6),
|
|
|
|
B(PopContext), R(4),
|
|
|
|
B(Jump), U8(7),
|
|
|
|
B(PopContext), R(4),
|
|
|
|
B(JumpLoop), U8(93), I8(0),
|
|
|
|
B(LdaUndefined),
|
|
|
|
/* 80 S> */ B(Return),
|
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
function f() {
|
|
|
|
for (let { x, y } = { x: 0, y: 3 }; y > 0; --y) { let z = x + y; }
|
|
|
|
}
|
|
|
|
f();
|
|
|
|
"
|
|
|
|
frame size: 6
|
|
|
|
parameter count: 1
|
2017-05-08 18:55:54 +00:00
|
|
|
bytecode array length: 68
|
2017-04-18 14:56:06 +00:00
|
|
|
bytecodes: [
|
|
|
|
/* 10 E> */ B(StackCheck),
|
2017-05-03 15:59:47 +00:00
|
|
|
B(CreateObjectLiteral), U8(0), U8(3), U8(1), R(4),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(Mov), R(4), R(3),
|
|
|
|
B(Ldar), R(3),
|
|
|
|
B(JumpIfUndefined), U8(6),
|
|
|
|
B(Ldar), R(3),
|
|
|
|
B(JumpIfNotNull), U8(16),
|
|
|
|
B(LdaSmi), I8(61),
|
|
|
|
B(Star), R(4),
|
|
|
|
B(LdaConstant), U8(1),
|
|
|
|
B(Star), R(5),
|
|
|
|
B(CallRuntime), U16(Runtime::kNewTypeError), R(4), U8(2),
|
|
|
|
B(Throw),
|
2017-05-03 15:59:47 +00:00
|
|
|
/* 28 S> */ B(LdaNamedProperty), R(3), U8(2), U8(6),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(Star), R(1),
|
2017-05-03 15:59:47 +00:00
|
|
|
/* 31 S> */ B(LdaNamedProperty), R(3), U8(3), U8(8),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(Star), R(2),
|
|
|
|
/* 55 S> */ B(LdaZero),
|
2017-05-03 15:59:47 +00:00
|
|
|
/* 55 E> */ B(TestGreaterThan), R(2), U8(10),
|
2017-05-08 18:55:54 +00:00
|
|
|
B(JumpIfFalse), U8(19),
|
2017-04-18 14:56:06 +00:00
|
|
|
/* 17 E> */ B(StackCheck),
|
|
|
|
/* 77 S> */ B(Ldar), R(2),
|
2017-05-03 15:59:47 +00:00
|
|
|
/* 77 E> */ B(Add), R(1), U8(12),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(Star), R(0),
|
|
|
|
/* 62 S> */ B(Ldar), R(2),
|
2017-05-03 15:59:47 +00:00
|
|
|
B(Dec), U8(11),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(Star), R(2),
|
2017-05-08 18:55:54 +00:00
|
|
|
B(JumpLoop), U8(20), I8(0),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(LdaUndefined),
|
|
|
|
/* 84 S> */ B(Return),
|
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["y"],
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
function* f() {
|
|
|
|
for (let x = 0; x < 10; ++x) { let y = x; }
|
|
|
|
}
|
|
|
|
f();
|
|
|
|
"
|
|
|
|
frame size: 15
|
|
|
|
parameter count: 1
|
2017-05-05 18:33:00 +00:00
|
|
|
bytecode array length: 356
|
2017-04-18 14:56:06 +00:00
|
|
|
bytecodes: [
|
|
|
|
B(Ldar), R(new_target),
|
|
|
|
B(JumpIfUndefined), U8(27),
|
|
|
|
B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_target), U8(1),
|
|
|
|
B(PushContext), R(5),
|
|
|
|
B(ResumeGenerator), R(new_target),
|
|
|
|
B(Star), R(4),
|
|
|
|
B(LdaZero),
|
|
|
|
B(TestEqualStrictNoFeedback), R(4),
|
2017-05-05 18:33:00 +00:00
|
|
|
B(JumpIfTrue), U8(53),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(LdaSmi), I8(79),
|
|
|
|
B(Star), R(6),
|
|
|
|
B(CallRuntime), U16(Runtime::kAbort), R(6), U8(1),
|
|
|
|
B(LdaSmi), I8(-2),
|
|
|
|
B(Star), R(4),
|
|
|
|
B(CreateFunctionContext), U8(5),
|
|
|
|
B(PushContext), R(0),
|
|
|
|
B(Ldar), R(this),
|
|
|
|
B(StaCurrentContextSlot), U8(4),
|
|
|
|
/* 11 E> */ B(StackCheck),
|
|
|
|
B(Mov), R(context), R(8),
|
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
|
|
|
B(Star), R(10),
|
|
|
|
B(Mov), R(closure), R(9),
|
2017-05-05 18:33:00 +00:00
|
|
|
/* 11 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(9), U8(2),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(StaCurrentContextSlot), U8(5),
|
|
|
|
B(Star), R(9),
|
|
|
|
B(LdaImmutableCurrentContextSlot), U8(5),
|
|
|
|
B(Star), R(10),
|
|
|
|
B(LdaZero),
|
|
|
|
B(SuspendGenerator), R(10), U8(0),
|
|
|
|
B(Ldar), R(9),
|
|
|
|
/* 62 S> */ B(Return),
|
|
|
|
B(LdaSmi), I8(-2),
|
|
|
|
B(Star), R(4),
|
|
|
|
B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(10), U8(1),
|
|
|
|
B(Star), R(11),
|
|
|
|
B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(10), U8(1),
|
|
|
|
B(Star), R(12),
|
|
|
|
B(LdaZero),
|
|
|
|
B(TestEqualStrictNoFeedback), R(12),
|
|
|
|
B(JumpIfTrue), U8(30),
|
|
|
|
B(LdaSmi), I8(2),
|
|
|
|
B(TestEqualStrictNoFeedback), R(12),
|
|
|
|
B(JumpIfTrue), U8(21),
|
|
|
|
B(Jump), U8(2),
|
|
|
|
B(LdaTrue),
|
|
|
|
B(Star), R(14),
|
|
|
|
B(Mov), R(11), R(13),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(13), U8(2),
|
|
|
|
B(Star), R(7),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(6),
|
|
|
|
B(Jump), U8(193),
|
|
|
|
B(Ldar), R(11),
|
|
|
|
/* 11 E> */ B(Throw),
|
|
|
|
B(Ldar), R(closure),
|
|
|
|
B(CreateBlockContext), U8(0),
|
|
|
|
B(PushContext), R(1),
|
|
|
|
B(LdaTheHole),
|
|
|
|
B(StaCurrentContextSlot), U8(4),
|
|
|
|
/* 31 S> */ B(LdaZero),
|
|
|
|
/* 31 E> */ B(StaCurrentContextSlot), U8(4),
|
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
|
|
|
/* 60 E> */ B(StaContextSlot), R(1), U8(6), U8(0),
|
|
|
|
B(LdaSmi), I8(1),
|
|
|
|
B(StaContextSlot), R(1), U8(7), U8(0),
|
|
|
|
B(StackCheck),
|
|
|
|
B(Ldar), R(closure),
|
|
|
|
B(CreateBlockContext), U8(1),
|
|
|
|
B(PushContext), R(2),
|
|
|
|
B(LdaTheHole),
|
|
|
|
B(StaCurrentContextSlot), U8(4),
|
|
|
|
B(LdaContextSlot), R(1), U8(6), U8(0),
|
|
|
|
B(StaCurrentContextSlot), U8(4),
|
|
|
|
B(LdaContextSlot), R(1), U8(7), U8(0),
|
|
|
|
B(Star), R(9),
|
|
|
|
B(LdaSmi), I8(1),
|
2017-05-03 15:59:47 +00:00
|
|
|
B(TestEqual), R(9), U8(3),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(JumpIfFalse), U8(9),
|
|
|
|
B(LdaZero),
|
|
|
|
B(StaContextSlot), R(1), U8(7), U8(0),
|
|
|
|
B(Jump), U8(8),
|
|
|
|
/* 44 S> */ B(LdaCurrentContextSlot), U8(4),
|
2017-05-03 15:59:47 +00:00
|
|
|
B(Inc), U8(4),
|
2017-04-18 14:56:06 +00:00
|
|
|
/* 44 E> */ B(StaCurrentContextSlot), U8(4),
|
|
|
|
B(LdaSmi), I8(1),
|
|
|
|
B(StaContextSlot), R(1), U8(8), U8(0),
|
|
|
|
/* 36 S> */ B(LdaCurrentContextSlot), U8(4),
|
|
|
|
B(Star), R(9),
|
|
|
|
B(LdaSmi), I8(10),
|
2017-05-03 15:59:47 +00:00
|
|
|
/* 36 E> */ B(TestLessThan), R(9), U8(5),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
|
|
|
B(Jump), U8(6),
|
|
|
|
B(PopContext), R(2),
|
|
|
|
B(Jump), U8(69),
|
|
|
|
B(LdaContextSlot), R(1), U8(8), U8(0),
|
|
|
|
B(Star), R(9),
|
|
|
|
B(LdaSmi), I8(1),
|
2017-05-03 15:59:47 +00:00
|
|
|
B(TestEqual), R(9), U8(6),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(JumpIfFalse), U8(34),
|
|
|
|
/* 18 E> */ B(StackCheck),
|
|
|
|
B(Ldar), R(closure),
|
|
|
|
B(CreateBlockContext), U8(2),
|
|
|
|
B(PushContext), R(3),
|
|
|
|
B(LdaTheHole),
|
|
|
|
B(StaCurrentContextSlot), U8(4),
|
|
|
|
/* 57 S> */ B(LdaContextSlot), R(3), U8(4), U8(0),
|
|
|
|
/* 57 E> */ B(StaCurrentContextSlot), U8(4),
|
|
|
|
B(PopContext), R(3),
|
|
|
|
B(LdaZero),
|
|
|
|
B(StaContextSlot), R(1), U8(8), U8(0),
|
|
|
|
B(LdaCurrentContextSlot), U8(4),
|
|
|
|
/* 60 E> */ B(StaContextSlot), R(1), U8(6), U8(0),
|
|
|
|
B(JumpLoop), U8(42), I8(1),
|
|
|
|
B(LdaContextSlot), R(1), U8(8), U8(0),
|
|
|
|
B(Star), R(9),
|
|
|
|
B(LdaSmi), I8(1),
|
2017-05-03 15:59:47 +00:00
|
|
|
B(TestEqual), R(9), U8(7),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(JumpIfFalse), U8(6),
|
|
|
|
B(PopContext), R(2),
|
|
|
|
B(Jump), U8(7),
|
|
|
|
B(PopContext), R(2),
|
|
|
|
B(JumpLoop), U8(129), I8(0),
|
|
|
|
B(PopContext), R(1),
|
|
|
|
B(LdaUndefined),
|
|
|
|
B(Star), R(9),
|
|
|
|
B(LdaTrue),
|
|
|
|
B(Star), R(10),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(9), U8(2),
|
|
|
|
B(Star), R(7),
|
|
|
|
B(LdaSmi), I8(1),
|
|
|
|
B(Star), R(6),
|
|
|
|
B(Jump), U8(14),
|
|
|
|
B(LdaSmi), I8(-1),
|
|
|
|
B(Star), R(6),
|
|
|
|
B(Jump), U8(8),
|
|
|
|
B(Star), R(7),
|
|
|
|
B(LdaSmi), I8(2),
|
|
|
|
B(Star), R(6),
|
|
|
|
B(LdaTheHole),
|
|
|
|
B(SetPendingMessage),
|
|
|
|
B(Star), R(8),
|
|
|
|
B(LdaImmutableCurrentContextSlot), U8(5),
|
|
|
|
B(Star), R(9),
|
|
|
|
B(CallRuntime), U16(Runtime::k_GeneratorClose), R(9), U8(1),
|
|
|
|
B(Ldar), R(8),
|
|
|
|
B(SetPendingMessage),
|
|
|
|
B(LdaZero),
|
|
|
|
B(TestEqualStrictNoFeedback), R(6),
|
|
|
|
B(JumpIfTrue), U8(16),
|
|
|
|
B(LdaSmi), I8(1),
|
|
|
|
B(TestEqualStrictNoFeedback), R(6),
|
|
|
|
B(JumpIfTrue), U8(13),
|
|
|
|
B(LdaSmi), I8(2),
|
|
|
|
B(TestEqualStrictNoFeedback), R(6),
|
|
|
|
B(JumpIfTrue), U8(10),
|
|
|
|
B(Jump), U8(11),
|
|
|
|
B(Ldar), R(7),
|
|
|
|
/* 62 S> */ B(Return),
|
|
|
|
B(Ldar), R(7),
|
|
|
|
/* 62 S> */ B(Return),
|
|
|
|
B(Ldar), R(7),
|
|
|
|
B(ReThrow),
|
|
|
|
B(LdaUndefined),
|
|
|
|
/* 62 S> */ B(Return),
|
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
]
|
|
|
|
handlers: [
|
2017-05-05 18:33:00 +00:00
|
|
|
[45, 298, 304],
|
2017-04-18 14:56:06 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
function* f() {
|
|
|
|
for (let x = 0; x < 10; ++x) yield x;
|
|
|
|
}
|
|
|
|
f();
|
|
|
|
"
|
|
|
|
frame size: 14
|
|
|
|
parameter count: 1
|
2017-05-05 18:33:00 +00:00
|
|
|
bytecode array length: 483
|
2017-04-18 14:56:06 +00:00
|
|
|
bytecodes: [
|
|
|
|
B(Ldar), R(new_target),
|
|
|
|
B(JumpIfUndefined), U8(33),
|
|
|
|
B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_target), U8(1),
|
|
|
|
B(PushContext), R(4),
|
|
|
|
B(ResumeGenerator), R(new_target),
|
|
|
|
B(Star), R(3),
|
|
|
|
B(LdaZero),
|
|
|
|
B(TestEqualStrictNoFeedback), R(3),
|
2017-05-05 18:33:00 +00:00
|
|
|
B(JumpIfTrue), U8(59),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(LdaSmi), I8(1),
|
|
|
|
B(TestEqualStrictNoFeedback), R(3),
|
2017-05-05 18:33:00 +00:00
|
|
|
B(JumpIfTrue), U8(128),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(LdaSmi), I8(79),
|
|
|
|
B(Star), R(5),
|
|
|
|
B(CallRuntime), U16(Runtime::kAbort), R(5), U8(1),
|
|
|
|
B(LdaSmi), I8(-2),
|
|
|
|
B(Star), R(3),
|
|
|
|
B(CreateFunctionContext), U8(5),
|
|
|
|
B(PushContext), R(0),
|
|
|
|
B(Ldar), R(this),
|
|
|
|
B(StaCurrentContextSlot), U8(4),
|
|
|
|
/* 11 E> */ B(StackCheck),
|
|
|
|
B(Mov), R(context), R(7),
|
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
|
|
|
B(Star), R(9),
|
|
|
|
B(Mov), R(closure), R(8),
|
2017-05-05 18:33:00 +00:00
|
|
|
/* 11 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(8), U8(2),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(StaCurrentContextSlot), U8(5),
|
|
|
|
B(Star), R(8),
|
|
|
|
B(LdaImmutableCurrentContextSlot), U8(5),
|
|
|
|
B(Star), R(9),
|
|
|
|
B(LdaZero),
|
|
|
|
B(SuspendGenerator), R(9), U8(0),
|
|
|
|
B(Ldar), R(8),
|
|
|
|
/* 56 S> */ B(Return),
|
|
|
|
B(LdaSmi), I8(-2),
|
|
|
|
B(Star), R(3),
|
|
|
|
B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(9), U8(1),
|
|
|
|
B(Star), R(10),
|
|
|
|
B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(9), U8(1),
|
|
|
|
B(Star), R(11),
|
|
|
|
B(LdaZero),
|
|
|
|
B(TestEqualStrictNoFeedback), R(11),
|
|
|
|
B(JumpIfTrue), U8(30),
|
|
|
|
B(LdaSmi), I8(2),
|
|
|
|
B(TestEqualStrictNoFeedback), R(11),
|
|
|
|
B(JumpIfTrue), U8(21),
|
|
|
|
B(Jump), U8(2),
|
|
|
|
B(LdaTrue),
|
|
|
|
B(Star), R(13),
|
|
|
|
B(Mov), R(10), R(12),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(12), U8(2),
|
|
|
|
B(Star), R(6),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(5),
|
|
|
|
B(JumpConstant), U8(2),
|
|
|
|
B(Ldar), R(10),
|
|
|
|
/* 11 E> */ B(Throw),
|
|
|
|
B(Ldar), R(closure),
|
|
|
|
B(CreateBlockContext), U8(0),
|
|
|
|
B(PushContext), R(1),
|
|
|
|
B(LdaTheHole),
|
|
|
|
B(StaCurrentContextSlot), U8(4),
|
|
|
|
/* 31 S> */ B(LdaZero),
|
|
|
|
/* 31 E> */ B(StaCurrentContextSlot), U8(4),
|
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
|
|
|
/* 54 E> */ B(StaContextSlot), R(1), U8(6), U8(0),
|
|
|
|
B(LdaSmi), I8(1),
|
|
|
|
B(StaContextSlot), R(1), U8(7), U8(0),
|
|
|
|
B(LdaSmi), I8(-2),
|
|
|
|
B(TestEqualStrictNoFeedback), R(3),
|
|
|
|
B(JumpIfTrue), U8(17),
|
|
|
|
B(LdaSmi), I8(1),
|
|
|
|
B(TestEqualStrictNoFeedback), R(3),
|
|
|
|
B(JumpIfTrue), U8(76),
|
|
|
|
B(LdaSmi), I8(79),
|
|
|
|
B(Star), R(8),
|
|
|
|
B(CallRuntime), U16(Runtime::kAbort), R(8), U8(1),
|
|
|
|
B(StackCheck),
|
|
|
|
B(Ldar), R(closure),
|
|
|
|
B(CreateBlockContext), U8(1),
|
|
|
|
B(PushContext), R(2),
|
|
|
|
B(LdaTheHole),
|
|
|
|
B(StaCurrentContextSlot), U8(4),
|
|
|
|
B(LdaContextSlot), R(1), U8(6), U8(0),
|
|
|
|
B(StaCurrentContextSlot), U8(4),
|
|
|
|
B(LdaContextSlot), R(1), U8(7), U8(0),
|
|
|
|
B(Star), R(8),
|
|
|
|
B(LdaSmi), I8(1),
|
2017-05-03 15:59:47 +00:00
|
|
|
B(TestEqual), R(8), U8(3),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(JumpIfFalse), U8(9),
|
|
|
|
B(LdaZero),
|
|
|
|
B(StaContextSlot), R(1), U8(7), U8(0),
|
|
|
|
B(Jump), U8(8),
|
|
|
|
/* 44 S> */ B(LdaCurrentContextSlot), U8(4),
|
2017-05-03 15:59:47 +00:00
|
|
|
B(Inc), U8(4),
|
2017-04-18 14:56:06 +00:00
|
|
|
/* 44 E> */ B(StaCurrentContextSlot), U8(4),
|
|
|
|
B(LdaSmi), I8(1),
|
|
|
|
B(StaContextSlot), R(1), U8(8), U8(0),
|
|
|
|
/* 36 S> */ B(LdaCurrentContextSlot), U8(4),
|
|
|
|
B(Star), R(8),
|
|
|
|
B(LdaSmi), I8(10),
|
2017-05-03 15:59:47 +00:00
|
|
|
/* 36 E> */ B(TestLessThan), R(8), U8(5),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
|
|
|
B(Jump), U8(6),
|
|
|
|
B(PopContext), R(2),
|
|
|
|
B(Jump), U8(160),
|
|
|
|
B(LdaSmi), I8(-2),
|
|
|
|
B(TestEqualStrictNoFeedback), R(3),
|
|
|
|
B(JumpIfTrue), U8(17),
|
|
|
|
B(LdaSmi), I8(1),
|
|
|
|
B(TestEqualStrictNoFeedback), R(3),
|
|
|
|
B(JumpIfTrue), U8(52),
|
|
|
|
B(LdaSmi), I8(79),
|
|
|
|
B(Star), R(8),
|
|
|
|
B(CallRuntime), U16(Runtime::kAbort), R(8), U8(1),
|
|
|
|
B(LdaContextSlot), R(1), U8(8), U8(0),
|
|
|
|
B(Star), R(8),
|
|
|
|
B(LdaSmi), I8(1),
|
2017-05-03 15:59:47 +00:00
|
|
|
B(TestEqual), R(8), U8(6),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(JumpIfFalse), U8(104),
|
|
|
|
/* 18 E> */ B(StackCheck),
|
|
|
|
/* 47 S> */ B(LdaCurrentContextSlot), U8(4),
|
|
|
|
B(Star), R(8),
|
|
|
|
B(LdaFalse),
|
|
|
|
B(Star), R(9),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(8), U8(2),
|
|
|
|
B(Star), R(8),
|
|
|
|
B(LdaImmutableContextSlot), R(1), U8(5), U8(0),
|
|
|
|
B(Star), R(9),
|
|
|
|
B(LdaSmi), I8(1),
|
|
|
|
B(SuspendGenerator), R(9), U8(0),
|
|
|
|
B(Ldar), R(8),
|
|
|
|
/* 56 S> */ B(Return),
|
|
|
|
B(LdaSmi), I8(-2),
|
|
|
|
B(Star), R(3),
|
|
|
|
B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(9), U8(1),
|
|
|
|
B(Star), R(10),
|
|
|
|
B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(9), U8(1),
|
|
|
|
B(Star), R(11),
|
|
|
|
B(LdaZero),
|
|
|
|
B(TestEqualStrictNoFeedback), R(11),
|
|
|
|
B(JumpIfTrue), U8(39),
|
|
|
|
B(LdaSmi), I8(2),
|
|
|
|
B(TestEqualStrictNoFeedback), R(11),
|
|
|
|
B(JumpIfTrue), U8(30),
|
|
|
|
B(Jump), U8(2),
|
|
|
|
B(LdaTrue),
|
|
|
|
B(Star), R(13),
|
|
|
|
B(Mov), R(10), R(12),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(12), U8(2),
|
|
|
|
B(PopContext), R(2),
|
|
|
|
B(PopContext), R(2),
|
|
|
|
B(PopContext), R(1),
|
|
|
|
B(PopContext), R(1),
|
|
|
|
B(Star), R(6),
|
|
|
|
B(LdaSmi), I8(1),
|
|
|
|
B(Star), R(5),
|
|
|
|
B(Jump), U8(73),
|
|
|
|
B(Ldar), R(10),
|
|
|
|
/* 47 E> */ B(Throw),
|
|
|
|
B(LdaZero),
|
|
|
|
B(StaContextSlot), R(1), U8(8), U8(0),
|
|
|
|
B(LdaCurrentContextSlot), U8(4),
|
|
|
|
/* 54 E> */ B(StaContextSlot), R(1), U8(6), U8(0),
|
|
|
|
B(JumpLoop), U8(133), I8(1),
|
|
|
|
B(LdaContextSlot), R(1), U8(8), U8(0),
|
|
|
|
B(Star), R(8),
|
|
|
|
B(LdaSmi), I8(1),
|
2017-05-03 15:59:47 +00:00
|
|
|
B(TestEqual), R(8), U8(7),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(JumpIfFalse), U8(6),
|
|
|
|
B(PopContext), R(2),
|
|
|
|
B(Jump), U8(7),
|
|
|
|
B(PopContext), R(2),
|
|
|
|
B(JumpLoop), U8(241), I8(0),
|
|
|
|
B(PopContext), R(1),
|
|
|
|
B(LdaUndefined),
|
|
|
|
B(Star), R(8),
|
|
|
|
B(LdaTrue),
|
|
|
|
B(Star), R(9),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(8), U8(2),
|
|
|
|
B(Star), R(6),
|
|
|
|
B(LdaSmi), I8(2),
|
|
|
|
B(Star), R(5),
|
|
|
|
B(Jump), U8(14),
|
|
|
|
B(LdaSmi), I8(-1),
|
|
|
|
B(Star), R(5),
|
|
|
|
B(Jump), U8(8),
|
|
|
|
B(Star), R(6),
|
|
|
|
B(LdaSmi), I8(3),
|
|
|
|
B(Star), R(5),
|
|
|
|
B(LdaTheHole),
|
|
|
|
B(SetPendingMessage),
|
|
|
|
B(Star), R(7),
|
|
|
|
B(LdaImmutableCurrentContextSlot), U8(5),
|
|
|
|
B(Star), R(8),
|
|
|
|
B(CallRuntime), U16(Runtime::k_GeneratorClose), R(8), U8(1),
|
|
|
|
B(Ldar), R(7),
|
|
|
|
B(SetPendingMessage),
|
|
|
|
B(LdaZero),
|
|
|
|
B(TestEqualStrictNoFeedback), R(5),
|
|
|
|
B(JumpIfTrue), U8(22),
|
|
|
|
B(LdaSmi), I8(1),
|
|
|
|
B(TestEqualStrictNoFeedback), R(5),
|
|
|
|
B(JumpIfTrue), U8(19),
|
|
|
|
B(LdaSmi), I8(2),
|
|
|
|
B(TestEqualStrictNoFeedback), R(5),
|
|
|
|
B(JumpIfTrue), U8(16),
|
|
|
|
B(LdaSmi), I8(3),
|
|
|
|
B(TestEqualStrictNoFeedback), R(5),
|
|
|
|
B(JumpIfTrue), U8(13),
|
|
|
|
B(Jump), U8(14),
|
|
|
|
B(Ldar), R(6),
|
|
|
|
/* 56 S> */ B(Return),
|
|
|
|
B(Ldar), R(6),
|
|
|
|
/* 56 S> */ B(Return),
|
|
|
|
B(Ldar), R(6),
|
|
|
|
/* 56 S> */ B(Return),
|
|
|
|
B(Ldar), R(6),
|
|
|
|
B(ReThrow),
|
|
|
|
B(LdaUndefined),
|
|
|
|
/* 56 S> */ B(Return),
|
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
Smi [305],
|
|
|
|
]
|
|
|
|
handlers: [
|
2017-05-05 18:33:00 +00:00
|
|
|
[51, 416, 422],
|
2017-04-18 14:56:06 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
async function f() {
|
|
|
|
for (let x = 0; x < 10; ++x) { let y = x; }
|
|
|
|
}
|
|
|
|
f();
|
|
|
|
"
|
|
|
|
frame size: 14
|
|
|
|
parameter count: 1
|
2017-05-05 18:33:00 +00:00
|
|
|
bytecode array length: 360
|
2017-04-18 14:56:06 +00:00
|
|
|
bytecodes: [
|
|
|
|
B(Ldar), R(new_target),
|
|
|
|
B(JumpIfUndefined), U8(22),
|
|
|
|
B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_target), U8(1),
|
|
|
|
B(PushContext), R(5),
|
|
|
|
B(ResumeGenerator), R(new_target),
|
|
|
|
B(Star), R(4),
|
|
|
|
B(LdaSmi), I8(79),
|
|
|
|
B(Star), R(6),
|
|
|
|
B(CallRuntime), U16(Runtime::kAbort), R(6), U8(1),
|
|
|
|
B(LdaSmi), I8(-2),
|
|
|
|
B(Star), R(4),
|
|
|
|
B(CreateFunctionContext), U8(6),
|
|
|
|
B(PushContext), R(0),
|
|
|
|
B(Ldar), R(this),
|
|
|
|
B(StaCurrentContextSlot), U8(4),
|
|
|
|
/* 16 E> */ B(StackCheck),
|
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
|
|
|
B(Star), R(7),
|
|
|
|
B(Mov), R(closure), R(6),
|
2017-05-05 18:33:00 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(6), U8(2),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(StaCurrentContextSlot), U8(5),
|
|
|
|
B(LdaUndefined),
|
|
|
|
B(Star), R(6),
|
|
|
|
B(CallJSRuntime), U8(%async_function_promise_create), R(6), U8(1),
|
|
|
|
B(StaCurrentContextSlot), U8(9),
|
|
|
|
B(Mov), R(context), R(8),
|
|
|
|
B(Mov), R(context), R(9),
|
|
|
|
B(Ldar), R(closure),
|
|
|
|
B(CreateBlockContext), U8(0),
|
|
|
|
B(PushContext), R(1),
|
|
|
|
B(LdaTheHole),
|
|
|
|
B(StaCurrentContextSlot), U8(4),
|
|
|
|
/* 36 S> */ B(LdaZero),
|
|
|
|
/* 36 E> */ B(StaCurrentContextSlot), U8(4),
|
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
|
|
|
/* 65 E> */ B(StaContextSlot), R(1), U8(6), U8(0),
|
|
|
|
B(LdaSmi), I8(1),
|
|
|
|
B(StaContextSlot), R(1), U8(7), U8(0),
|
|
|
|
B(StackCheck),
|
|
|
|
B(Ldar), R(closure),
|
|
|
|
B(CreateBlockContext), U8(1),
|
|
|
|
B(PushContext), R(2),
|
|
|
|
B(LdaTheHole),
|
|
|
|
B(StaCurrentContextSlot), U8(4),
|
|
|
|
B(LdaContextSlot), R(1), U8(6), U8(0),
|
|
|
|
B(StaCurrentContextSlot), U8(4),
|
|
|
|
B(LdaContextSlot), R(1), U8(7), U8(0),
|
|
|
|
B(Star), R(10),
|
|
|
|
B(LdaSmi), I8(1),
|
2017-05-03 15:59:47 +00:00
|
|
|
B(TestEqual), R(10), U8(3),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(JumpIfFalse), U8(9),
|
|
|
|
B(LdaZero),
|
|
|
|
B(StaContextSlot), R(1), U8(7), U8(0),
|
|
|
|
B(Jump), U8(8),
|
|
|
|
/* 49 S> */ B(LdaCurrentContextSlot), U8(4),
|
2017-05-03 15:59:47 +00:00
|
|
|
B(Inc), U8(4),
|
2017-04-18 14:56:06 +00:00
|
|
|
/* 49 E> */ B(StaCurrentContextSlot), U8(4),
|
|
|
|
B(LdaSmi), I8(1),
|
|
|
|
B(StaContextSlot), R(1), U8(8), U8(0),
|
|
|
|
/* 41 S> */ B(LdaCurrentContextSlot), U8(4),
|
|
|
|
B(Star), R(10),
|
|
|
|
B(LdaSmi), I8(10),
|
2017-05-03 15:59:47 +00:00
|
|
|
/* 41 E> */ B(TestLessThan), R(10), U8(5),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
|
|
|
B(Jump), U8(6),
|
|
|
|
B(PopContext), R(2),
|
|
|
|
B(Jump), U8(69),
|
|
|
|
B(LdaContextSlot), R(1), U8(8), U8(0),
|
|
|
|
B(Star), R(10),
|
|
|
|
B(LdaSmi), I8(1),
|
2017-05-03 15:59:47 +00:00
|
|
|
B(TestEqual), R(10), U8(6),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(JumpIfFalse), U8(34),
|
|
|
|
/* 23 E> */ B(StackCheck),
|
|
|
|
B(Ldar), R(closure),
|
|
|
|
B(CreateBlockContext), U8(2),
|
|
|
|
B(PushContext), R(3),
|
|
|
|
B(LdaTheHole),
|
|
|
|
B(StaCurrentContextSlot), U8(4),
|
|
|
|
/* 62 S> */ B(LdaContextSlot), R(3), U8(4), U8(0),
|
|
|
|
/* 62 E> */ B(StaCurrentContextSlot), U8(4),
|
|
|
|
B(PopContext), R(3),
|
|
|
|
B(LdaZero),
|
|
|
|
B(StaContextSlot), R(1), U8(8), U8(0),
|
|
|
|
B(LdaCurrentContextSlot), U8(4),
|
|
|
|
/* 65 E> */ B(StaContextSlot), R(1), U8(6), U8(0),
|
|
|
|
B(JumpLoop), U8(42), I8(1),
|
|
|
|
B(LdaContextSlot), R(1), U8(8), U8(0),
|
|
|
|
B(Star), R(10),
|
|
|
|
B(LdaSmi), I8(1),
|
2017-05-03 15:59:47 +00:00
|
|
|
B(TestEqual), R(10), U8(7),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(JumpIfFalse), U8(6),
|
|
|
|
B(PopContext), R(2),
|
|
|
|
B(Jump), U8(7),
|
|
|
|
B(PopContext), R(2),
|
|
|
|
B(JumpLoop), U8(129), I8(0),
|
|
|
|
B(PopContext), R(1),
|
|
|
|
B(LdaUndefined),
|
|
|
|
B(Star), R(10),
|
|
|
|
B(LdaCurrentContextSlot), U8(9),
|
|
|
|
B(Star), R(11),
|
|
|
|
B(LdaUndefined),
|
|
|
|
B(Star), R(12),
|
|
|
|
B(CallJSRuntime), U8(%promise_resolve), R(10), U8(3),
|
|
|
|
B(LdaCurrentContextSlot), U8(9),
|
|
|
|
B(Star), R(7),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(6),
|
|
|
|
B(Jump), U8(68),
|
|
|
|
B(Jump), U8(54),
|
|
|
|
B(Star), R(10),
|
|
|
|
B(Ldar), R(closure),
|
|
|
|
B(CreateCatchContext), R(10), U8(3), U8(4),
|
|
|
|
B(Star), R(9),
|
|
|
|
B(LdaTheHole),
|
|
|
|
B(SetPendingMessage),
|
|
|
|
B(Ldar), R(9),
|
|
|
|
B(PushContext), R(1),
|
|
|
|
B(LdaUndefined),
|
|
|
|
B(Star), R(10),
|
|
|
|
B(LdaContextSlot), R(1), U8(9), U8(0),
|
|
|
|
B(Star), R(11),
|
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
|
|
|
B(Star), R(12),
|
|
|
|
B(LdaFalse),
|
|
|
|
B(Star), R(13),
|
|
|
|
B(CallJSRuntime), U8(%promise_internal_reject), R(10), U8(4),
|
|
|
|
B(LdaContextSlot), R(1), U8(9), U8(0),
|
|
|
|
B(PopContext), R(1),
|
|
|
|
B(PopContext), R(1),
|
|
|
|
B(Star), R(7),
|
|
|
|
B(LdaSmi), I8(1),
|
|
|
|
B(Star), R(6),
|
|
|
|
B(Jump), U8(14),
|
|
|
|
B(LdaSmi), I8(-1),
|
|
|
|
B(Star), R(6),
|
|
|
|
B(Jump), U8(8),
|
|
|
|
B(Star), R(7),
|
|
|
|
B(LdaSmi), I8(2),
|
|
|
|
B(Star), R(6),
|
|
|
|
B(LdaTheHole),
|
|
|
|
B(SetPendingMessage),
|
|
|
|
B(Star), R(8),
|
|
|
|
B(LdaUndefined),
|
|
|
|
B(Star), R(9),
|
|
|
|
B(LdaCurrentContextSlot), U8(9),
|
|
|
|
B(Star), R(10),
|
|
|
|
B(CallJSRuntime), U8(%async_function_promise_release), R(9), U8(2),
|
|
|
|
B(Ldar), R(8),
|
|
|
|
B(SetPendingMessage),
|
|
|
|
B(LdaZero),
|
|
|
|
B(TestEqualStrictNoFeedback), R(6),
|
|
|
|
B(JumpIfTrue), U8(16),
|
|
|
|
B(LdaSmi), I8(1),
|
|
|
|
B(TestEqualStrictNoFeedback), R(6),
|
|
|
|
B(JumpIfTrue), U8(13),
|
|
|
|
B(LdaSmi), I8(2),
|
|
|
|
B(TestEqualStrictNoFeedback), R(6),
|
|
|
|
B(JumpIfTrue), U8(10),
|
|
|
|
B(Jump), U8(11),
|
|
|
|
B(Ldar), R(7),
|
|
|
|
/* 67 S> */ B(Return),
|
|
|
|
B(Ldar), R(7),
|
|
|
|
/* 67 S> */ B(Return),
|
|
|
|
B(Ldar), R(7),
|
|
|
|
B(ReThrow),
|
|
|
|
B(LdaUndefined),
|
|
|
|
/* 67 S> */ B(Return),
|
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
|
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
]
|
|
|
|
handlers: [
|
2017-05-05 18:33:00 +00:00
|
|
|
[62, 300, 306],
|
|
|
|
[65, 246, 248],
|
2017-04-18 14:56:06 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
async function f() {
|
|
|
|
for (let x = 0; x < 10; ++x) await x;
|
|
|
|
}
|
|
|
|
f();
|
|
|
|
"
|
|
|
|
frame size: 15
|
|
|
|
parameter count: 1
|
2017-05-05 18:33:00 +00:00
|
|
|
bytecode array length: 514
|
2017-04-18 14:56:06 +00:00
|
|
|
bytecodes: [
|
|
|
|
B(Ldar), R(new_target),
|
|
|
|
B(JumpIfUndefined), U8(27),
|
|
|
|
B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_target), U8(1),
|
|
|
|
B(PushContext), R(4),
|
|
|
|
B(ResumeGenerator), R(new_target),
|
|
|
|
B(Star), R(3),
|
|
|
|
B(LdaZero),
|
|
|
|
B(TestEqualStrictNoFeedback), R(3),
|
2017-05-05 18:33:00 +00:00
|
|
|
B(JumpIfTrue), U8(76),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(LdaSmi), I8(79),
|
|
|
|
B(Star), R(5),
|
|
|
|
B(CallRuntime), U16(Runtime::kAbort), R(5), U8(1),
|
|
|
|
B(LdaSmi), I8(-2),
|
|
|
|
B(Star), R(3),
|
|
|
|
B(CreateFunctionContext), U8(7),
|
|
|
|
B(PushContext), R(0),
|
|
|
|
B(Ldar), R(this),
|
|
|
|
B(StaCurrentContextSlot), U8(4),
|
|
|
|
/* 16 E> */ B(StackCheck),
|
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
|
|
|
B(Star), R(6),
|
|
|
|
B(Mov), R(closure), R(5),
|
2017-05-05 18:33:00 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(5), U8(2),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(StaCurrentContextSlot), U8(5),
|
|
|
|
B(LdaUndefined),
|
|
|
|
B(Star), R(5),
|
|
|
|
B(CallJSRuntime), U8(%async_function_promise_create), R(5), U8(1),
|
|
|
|
B(StaCurrentContextSlot), U8(7),
|
|
|
|
B(Mov), R(context), R(7),
|
|
|
|
B(Mov), R(context), R(8),
|
|
|
|
B(Ldar), R(closure),
|
|
|
|
B(CreateBlockContext), U8(0),
|
|
|
|
B(PushContext), R(1),
|
|
|
|
B(LdaTheHole),
|
|
|
|
B(StaCurrentContextSlot), U8(4),
|
|
|
|
/* 36 S> */ B(LdaZero),
|
|
|
|
/* 36 E> */ B(StaCurrentContextSlot), U8(4),
|
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
|
|
|
/* 59 E> */ B(StaContextSlot), R(1), U8(8), U8(0),
|
|
|
|
B(LdaSmi), I8(1),
|
|
|
|
B(StaContextSlot), R(1), U8(9), U8(0),
|
|
|
|
B(LdaSmi), I8(-2),
|
|
|
|
B(TestEqualStrictNoFeedback), R(3),
|
|
|
|
B(JumpIfTrue), U8(16),
|
|
|
|
B(LdaZero),
|
|
|
|
B(TestEqualStrictNoFeedback), R(3),
|
|
|
|
B(JumpIfTrue), U8(76),
|
|
|
|
B(LdaSmi), I8(79),
|
|
|
|
B(Star), R(9),
|
|
|
|
B(CallRuntime), U16(Runtime::kAbort), R(9), U8(1),
|
|
|
|
B(StackCheck),
|
|
|
|
B(Ldar), R(closure),
|
|
|
|
B(CreateBlockContext), U8(1),
|
|
|
|
B(PushContext), R(2),
|
|
|
|
B(LdaTheHole),
|
|
|
|
B(StaCurrentContextSlot), U8(4),
|
|
|
|
B(LdaContextSlot), R(1), U8(8), U8(0),
|
|
|
|
B(StaCurrentContextSlot), U8(4),
|
|
|
|
B(LdaContextSlot), R(1), U8(9), U8(0),
|
|
|
|
B(Star), R(9),
|
|
|
|
B(LdaSmi), I8(1),
|
2017-05-03 15:59:47 +00:00
|
|
|
B(TestEqual), R(9), U8(3),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(JumpIfFalse), U8(9),
|
|
|
|
B(LdaZero),
|
|
|
|
B(StaContextSlot), R(1), U8(9), U8(0),
|
|
|
|
B(Jump), U8(8),
|
|
|
|
/* 49 S> */ B(LdaCurrentContextSlot), U8(4),
|
2017-05-03 15:59:47 +00:00
|
|
|
B(Inc), U8(4),
|
2017-04-18 14:56:06 +00:00
|
|
|
/* 49 E> */ B(StaCurrentContextSlot), U8(4),
|
|
|
|
B(LdaSmi), I8(1),
|
|
|
|
B(StaContextSlot), R(1), U8(10), U8(0),
|
|
|
|
/* 41 S> */ B(LdaCurrentContextSlot), U8(4),
|
|
|
|
B(Star), R(9),
|
|
|
|
B(LdaSmi), I8(10),
|
2017-05-03 15:59:47 +00:00
|
|
|
/* 41 E> */ B(TestLessThan), R(9), U8(5),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
|
|
|
B(Jump), U8(6),
|
|
|
|
B(PopContext), R(2),
|
|
|
|
B(Jump), U8(188),
|
|
|
|
B(LdaSmi), I8(-2),
|
|
|
|
B(TestEqualStrictNoFeedback), R(3),
|
|
|
|
B(JumpIfTrue), U8(16),
|
|
|
|
B(LdaZero),
|
|
|
|
B(TestEqualStrictNoFeedback), R(3),
|
|
|
|
B(JumpIfTrue), U8(75),
|
|
|
|
B(LdaSmi), I8(79),
|
|
|
|
B(Star), R(9),
|
|
|
|
B(CallRuntime), U16(Runtime::kAbort), R(9), U8(1),
|
|
|
|
B(LdaContextSlot), R(1), U8(10), U8(0),
|
|
|
|
B(Star), R(9),
|
|
|
|
B(LdaSmi), I8(1),
|
2017-05-03 15:59:47 +00:00
|
|
|
B(TestEqual), R(9), U8(6),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(JumpIfFalse), U8(130),
|
|
|
|
/* 23 E> */ B(StackCheck),
|
|
|
|
/* 58 S> */ B(LdaCurrentContextSlot), U8(4),
|
|
|
|
B(StaContextSlot), R(1), U8(6), U8(0),
|
|
|
|
/* 52 S> */ B(LdaUndefined),
|
|
|
|
B(Star), R(9),
|
|
|
|
B(LdaImmutableContextSlot), R(1), U8(5), U8(0),
|
|
|
|
B(Star), R(10),
|
|
|
|
B(LdaContextSlot), R(1), U8(6), U8(0),
|
|
|
|
B(Star), R(11),
|
|
|
|
B(LdaContextSlot), R(1), U8(7), U8(0),
|
|
|
|
B(Star), R(12),
|
|
|
|
B(CallJSRuntime), U8(%async_function_await_uncaught), R(9), U8(4),
|
|
|
|
B(LdaContextSlot), R(1), U8(7), U8(0),
|
|
|
|
B(Star), R(9),
|
|
|
|
B(LdaImmutableContextSlot), R(1), U8(5), U8(0),
|
|
|
|
B(Star), R(10),
|
|
|
|
B(LdaZero),
|
|
|
|
B(SuspendGenerator), R(10), U8(2),
|
|
|
|
B(Ldar), R(9),
|
|
|
|
/* 61 S> */ B(Return),
|
|
|
|
B(LdaSmi), I8(-2),
|
|
|
|
B(Star), R(3),
|
|
|
|
B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(10), U8(1),
|
|
|
|
B(Star), R(11),
|
|
|
|
B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(10), U8(1),
|
|
|
|
B(Star), R(12),
|
|
|
|
B(LdaZero),
|
|
|
|
B(TestEqualStrictNoFeedback), R(12),
|
|
|
|
B(JumpIfTrue), U8(42),
|
|
|
|
B(LdaSmi), I8(2),
|
|
|
|
B(TestEqualStrictNoFeedback), R(12),
|
|
|
|
B(JumpIfTrue), U8(33),
|
|
|
|
B(Jump), U8(2),
|
|
|
|
B(LdaTrue),
|
|
|
|
B(Star), R(14),
|
|
|
|
B(Mov), R(11), R(13),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(13), U8(2),
|
|
|
|
B(PopContext), R(2),
|
|
|
|
B(PopContext), R(2),
|
|
|
|
B(PopContext), R(1),
|
|
|
|
B(PopContext), R(1),
|
|
|
|
B(PopContext), R(1),
|
|
|
|
B(PopContext), R(1),
|
|
|
|
B(Star), R(6),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(5),
|
|
|
|
B(Jump), U8(136),
|
|
|
|
B(Ldar), R(11),
|
|
|
|
B(ReThrow),
|
|
|
|
B(LdaZero),
|
|
|
|
B(StaContextSlot), R(1), U8(10), U8(0),
|
|
|
|
B(LdaCurrentContextSlot), U8(4),
|
|
|
|
/* 59 E> */ B(StaContextSlot), R(1), U8(8), U8(0),
|
|
|
|
B(JumpLoop), U8(158), I8(1),
|
|
|
|
B(LdaContextSlot), R(1), U8(10), U8(0),
|
|
|
|
B(Star), R(9),
|
|
|
|
B(LdaSmi), I8(1),
|
2017-05-03 15:59:47 +00:00
|
|
|
B(TestEqual), R(9), U8(7),
|
2017-04-18 14:56:06 +00:00
|
|
|
B(JumpIfFalse), U8(6),
|
|
|
|
B(PopContext), R(2),
|
|
|
|
B(Jump), U8(10),
|
|
|
|
B(PopContext), R(2),
|
|
|
|
B(Wide), B(JumpLoop), U16(266), I16(0),
|
|
|
|
B(PopContext), R(1),
|
|
|
|
B(LdaUndefined),
|
|
|
|
B(Star), R(9),
|
|
|
|
B(LdaCurrentContextSlot), U8(7),
|
|
|
|
B(Star), R(10),
|
|
|
|
B(LdaUndefined),
|
|
|
|
B(Star), R(11),
|
|
|
|
B(CallJSRuntime), U8(%promise_resolve), R(9), U8(3),
|
|
|
|
B(LdaCurrentContextSlot), U8(7),
|
|
|
|
B(Star), R(6),
|
|
|
|
B(LdaSmi), I8(1),
|
|
|
|
B(Star), R(5),
|
|
|
|
B(Jump), U8(68),
|
|
|
|
B(Jump), U8(54),
|
|
|
|
B(Star), R(9),
|
|
|
|
B(Ldar), R(closure),
|
|
|
|
B(CreateCatchContext), R(9), U8(2), U8(3),
|
|
|
|
B(Star), R(8),
|
|
|
|
B(LdaTheHole),
|
|
|
|
B(SetPendingMessage),
|
|
|
|
B(Ldar), R(8),
|
|
|
|
B(PushContext), R(1),
|
|
|
|
B(LdaUndefined),
|
|
|
|
B(Star), R(9),
|
|
|
|
B(LdaContextSlot), R(1), U8(7), U8(0),
|
|
|
|
B(Star), R(10),
|
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
|
|
|
B(Star), R(11),
|
|
|
|
B(LdaFalse),
|
|
|
|
B(Star), R(12),
|
|
|
|
B(CallJSRuntime), U8(%promise_internal_reject), R(9), U8(4),
|
|
|
|
B(LdaContextSlot), R(1), U8(7), U8(0),
|
|
|
|
B(PopContext), R(1),
|
|
|
|
B(PopContext), R(1),
|
|
|
|
B(Star), R(6),
|
|
|
|
B(LdaSmi), I8(2),
|
|
|
|
B(Star), R(5),
|
|
|
|
B(Jump), U8(14),
|
|
|
|
B(LdaSmi), I8(-1),
|
|
|
|
B(Star), R(5),
|
|
|
|
B(Jump), U8(8),
|
|
|
|
B(Star), R(6),
|
|
|
|
B(LdaSmi), I8(3),
|
|
|
|
B(Star), R(5),
|
|
|
|
B(LdaTheHole),
|
|
|
|
B(SetPendingMessage),
|
|
|
|
B(Star), R(7),
|
|
|
|
B(LdaUndefined),
|
|
|
|
B(Star), R(8),
|
|
|
|
B(LdaCurrentContextSlot), U8(7),
|
|
|
|
B(Star), R(9),
|
|
|
|
B(CallJSRuntime), U8(%async_function_promise_release), R(8), U8(2),
|
|
|
|
B(Ldar), R(7),
|
|
|
|
B(SetPendingMessage),
|
|
|
|
B(LdaZero),
|
|
|
|
B(TestEqualStrictNoFeedback), R(5),
|
|
|
|
B(JumpIfTrue), U8(22),
|
|
|
|
B(LdaSmi), I8(1),
|
|
|
|
B(TestEqualStrictNoFeedback), R(5),
|
|
|
|
B(JumpIfTrue), U8(19),
|
|
|
|
B(LdaSmi), I8(2),
|
|
|
|
B(TestEqualStrictNoFeedback), R(5),
|
|
|
|
B(JumpIfTrue), U8(16),
|
|
|
|
B(LdaSmi), I8(3),
|
|
|
|
B(TestEqualStrictNoFeedback), R(5),
|
|
|
|
B(JumpIfTrue), U8(13),
|
|
|
|
B(Jump), U8(14),
|
|
|
|
B(Ldar), R(6),
|
|
|
|
/* 61 S> */ B(Return),
|
|
|
|
B(Ldar), R(6),
|
|
|
|
/* 61 S> */ B(Return),
|
|
|
|
B(Ldar), R(6),
|
|
|
|
/* 61 S> */ B(Return),
|
|
|
|
B(Ldar), R(6),
|
|
|
|
B(ReThrow),
|
|
|
|
B(LdaUndefined),
|
|
|
|
/* 61 S> */ B(Return),
|
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
|
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
]
|
|
|
|
handlers: [
|
2017-05-05 18:33:00 +00:00
|
|
|
[67, 445, 451],
|
|
|
|
[70, 391, 393],
|
2017-04-18 14:56:06 +00:00
|
|
|
]
|
|
|
|
|