2017-07-02 20:59:29 +00:00
|
|
|
#
|
|
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
wrap: no
|
|
|
|
test function name: f
|
|
|
|
async iteration: yes
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
async function* f() { }
|
|
|
|
f();
|
|
|
|
"
|
2018-01-23 13:51:38 +00:00
|
|
|
frame size: 8
|
2017-07-02 20:59:29 +00:00
|
|
|
parameter count: 1
|
2019-05-15 19:41:48 +00:00
|
|
|
bytecode array length: 148
|
2017-07-02 20:59:29 +00:00
|
|
|
bytecodes: [
|
2019-05-15 19:41:48 +00:00
|
|
|
B(SwitchOnGeneratorState), R(0), U8(0), U8(1),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Mov), R(closure), R(1),
|
|
|
|
B(Mov), R(this), R(2),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(1), U8(2),
|
2017-07-02 20:59:29 +00:00
|
|
|
B(Star), R(0),
|
|
|
|
/* 17 E> */ B(StackCheck),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Mov), R(context), R(3),
|
2017-08-11 15:16:31 +00:00
|
|
|
B(Mov), R(context), R(4),
|
2017-07-25 18:37:36 +00:00
|
|
|
B(Ldar), R(0),
|
2018-01-23 13:51:38 +00:00
|
|
|
/* 17 E> */ B(SuspendGenerator), R(0), R(0), U8(5), U8(0),
|
|
|
|
B(ResumeGenerator), R(0), R(0), U8(5),
|
|
|
|
B(Star), R(5),
|
2017-08-11 15:16:31 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
|
2019-05-15 19:41:48 +00:00
|
|
|
B(SwitchOnSmiNoFeedback), U8(1), U8(2), I8(0),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Ldar), R(5),
|
2017-07-02 20:59:29 +00:00
|
|
|
/* 17 E> */ B(Throw),
|
2019-01-02 16:12:54 +00:00
|
|
|
B(LdaSmi), I8(1),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Star), R(1),
|
|
|
|
B(Mov), R(5), R(2),
|
2019-05-15 19:41:48 +00:00
|
|
|
B(Jump), U8(53),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Ldar), R(5),
|
2019-05-15 19:41:48 +00:00
|
|
|
B(Jump), U8(36),
|
2017-08-11 15:16:31 +00:00
|
|
|
B(Star), R(5),
|
2019-05-15 19:41:48 +00:00
|
|
|
B(CreateCatchContext), R(5), U8(3),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Star), R(4),
|
2017-07-02 20:59:29 +00:00
|
|
|
B(LdaTheHole),
|
|
|
|
B(SetPendingMessage),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Ldar), R(4),
|
|
|
|
B(PushContext), R(5),
|
2019-10-17 15:58:38 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(3),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Star), R(7),
|
|
|
|
B(Mov), R(0), R(6),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_AsyncGeneratorReject), R(6), U8(2),
|
|
|
|
B(PopContext), R(5),
|
2017-08-11 15:16:31 +00:00
|
|
|
B(Star), R(2),
|
2019-01-02 16:12:54 +00:00
|
|
|
B(LdaSmi), I8(2),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Star), R(1),
|
2019-05-15 19:41:48 +00:00
|
|
|
B(Jump), U8(15),
|
|
|
|
B(LdaSmi), I8(-1),
|
|
|
|
B(Star), R(2),
|
|
|
|
B(Star), R(1),
|
2019-01-02 16:12:54 +00:00
|
|
|
B(Jump), U8(7),
|
2017-08-11 15:16:31 +00:00
|
|
|
B(Star), R(2),
|
2019-01-02 16:12:54 +00:00
|
|
|
B(LdaZero),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Star), R(1),
|
2017-07-02 20:59:29 +00:00
|
|
|
B(LdaTheHole),
|
|
|
|
B(SetPendingMessage),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Star), R(3),
|
2017-07-02 20:59:29 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(0), U8(1),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Ldar), R(3),
|
2017-07-02 20:59:29 +00:00
|
|
|
B(SetPendingMessage),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Ldar), R(1),
|
2019-05-15 19:41:48 +00:00
|
|
|
B(SwitchOnSmiNoFeedback), U8(4), U8(3), I8(0),
|
2017-08-09 13:43:29 +00:00
|
|
|
B(Jump), U8(22),
|
2019-01-02 16:12:54 +00:00
|
|
|
B(Ldar), R(2),
|
|
|
|
B(ReThrow),
|
2017-07-02 20:59:29 +00:00
|
|
|
B(LdaTrue),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Star), R(6),
|
|
|
|
B(Mov), R(0), R(4),
|
|
|
|
B(Mov), R(2), R(5),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_AsyncGeneratorResolve), R(4), U8(3),
|
2017-07-02 20:59:29 +00:00
|
|
|
/* 22 S> */ B(Return),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Ldar), R(2),
|
2017-07-02 20:59:29 +00:00
|
|
|
/* 22 S> */ B(Return),
|
|
|
|
B(LdaUndefined),
|
|
|
|
/* 22 S> */ B(Return),
|
|
|
|
]
|
|
|
|
constant pool: [
|
2018-01-23 13:51:38 +00:00
|
|
|
Smi [30],
|
2019-01-02 16:12:54 +00:00
|
|
|
Smi [16],
|
2017-07-02 20:59:29 +00:00
|
|
|
Smi [7],
|
2018-02-16 12:36:47 +00:00
|
|
|
SCOPE_INFO_TYPE,
|
2017-07-02 20:59:29 +00:00
|
|
|
Smi [6],
|
2019-01-02 16:12:54 +00:00
|
|
|
Smi [9],
|
2017-08-09 13:43:29 +00:00
|
|
|
Smi [23],
|
2017-07-02 20:59:29 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
2019-05-15 19:41:48 +00:00
|
|
|
[20, 94, 102],
|
|
|
|
[23, 56, 60],
|
2017-07-02 20:59:29 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
async function* f() { yield 42 }
|
|
|
|
f();
|
|
|
|
"
|
2018-01-23 13:51:38 +00:00
|
|
|
frame size: 8
|
2017-07-02 20:59:29 +00:00
|
|
|
parameter count: 1
|
2019-05-15 19:41:48 +00:00
|
|
|
bytecode array length: 193
|
2017-07-02 20:59:29 +00:00
|
|
|
bytecodes: [
|
2019-05-15 19:41:48 +00:00
|
|
|
B(SwitchOnGeneratorState), R(0), U8(0), U8(2),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Mov), R(closure), R(1),
|
|
|
|
B(Mov), R(this), R(2),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(1), U8(2),
|
2017-07-02 20:59:29 +00:00
|
|
|
B(Star), R(0),
|
|
|
|
/* 17 E> */ B(StackCheck),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Mov), R(context), R(3),
|
2017-08-11 15:16:31 +00:00
|
|
|
B(Mov), R(context), R(4),
|
2017-07-25 18:37:36 +00:00
|
|
|
B(Ldar), R(0),
|
2018-01-23 13:51:38 +00:00
|
|
|
/* 17 E> */ B(SuspendGenerator), R(0), R(0), U8(5), U8(0),
|
|
|
|
B(ResumeGenerator), R(0), R(0), U8(5),
|
|
|
|
B(Star), R(5),
|
2017-08-11 15:16:31 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
|
2019-05-15 19:41:48 +00:00
|
|
|
B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Ldar), R(5),
|
2017-07-02 20:59:29 +00:00
|
|
|
/* 17 E> */ B(Throw),
|
2019-01-02 16:12:54 +00:00
|
|
|
B(LdaSmi), I8(1),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Star), R(1),
|
|
|
|
B(Mov), R(5), R(2),
|
2019-05-15 19:41:48 +00:00
|
|
|
B(Jump), U8(98),
|
2017-07-02 20:59:29 +00:00
|
|
|
/* 22 S> */ B(LdaSmi), I8(42),
|
2017-08-11 15:16:31 +00:00
|
|
|
B(Star), R(6),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(LdaFalse),
|
|
|
|
B(Star), R(7),
|
|
|
|
B(Mov), R(0), R(5),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_AsyncGeneratorYield), R(5), U8(3),
|
|
|
|
/* 22 E> */ B(SuspendGenerator), R(0), R(0), U8(5), U8(1),
|
|
|
|
B(ResumeGenerator), R(0), R(0), U8(5),
|
|
|
|
B(Star), R(5),
|
2017-08-11 15:16:31 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
|
2019-05-15 19:41:48 +00:00
|
|
|
B(SwitchOnSmiNoFeedback), U8(4), U8(2), I8(0),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Ldar), R(5),
|
2017-07-02 20:59:29 +00:00
|
|
|
/* 22 E> */ B(Throw),
|
2019-01-02 16:12:54 +00:00
|
|
|
B(LdaSmi), I8(1),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Star), R(1),
|
|
|
|
B(Mov), R(5), R(2),
|
2019-05-15 19:41:48 +00:00
|
|
|
B(Jump), U8(53),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Ldar), R(5),
|
2019-05-15 19:41:48 +00:00
|
|
|
B(Jump), U8(36),
|
2017-08-11 15:16:31 +00:00
|
|
|
B(Star), R(5),
|
2019-05-15 19:41:48 +00:00
|
|
|
B(CreateCatchContext), R(5), U8(6),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Star), R(4),
|
2017-07-02 20:59:29 +00:00
|
|
|
B(LdaTheHole),
|
|
|
|
B(SetPendingMessage),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Ldar), R(4),
|
|
|
|
B(PushContext), R(5),
|
2019-10-17 15:58:38 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(3),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Star), R(7),
|
|
|
|
B(Mov), R(0), R(6),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_AsyncGeneratorReject), R(6), U8(2),
|
|
|
|
B(PopContext), R(5),
|
2017-08-11 15:16:31 +00:00
|
|
|
B(Star), R(2),
|
2019-01-02 16:12:54 +00:00
|
|
|
B(LdaSmi), I8(2),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Star), R(1),
|
2019-05-15 19:41:48 +00:00
|
|
|
B(Jump), U8(15),
|
|
|
|
B(LdaSmi), I8(-1),
|
|
|
|
B(Star), R(2),
|
|
|
|
B(Star), R(1),
|
2019-01-02 16:12:54 +00:00
|
|
|
B(Jump), U8(7),
|
2017-08-11 15:16:31 +00:00
|
|
|
B(Star), R(2),
|
2019-01-02 16:12:54 +00:00
|
|
|
B(LdaZero),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Star), R(1),
|
2017-07-02 20:59:29 +00:00
|
|
|
B(LdaTheHole),
|
|
|
|
B(SetPendingMessage),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Star), R(3),
|
2017-07-02 20:59:29 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(0), U8(1),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Ldar), R(3),
|
2017-07-02 20:59:29 +00:00
|
|
|
B(SetPendingMessage),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Ldar), R(1),
|
2019-05-15 19:41:48 +00:00
|
|
|
B(SwitchOnSmiNoFeedback), U8(7), U8(3), I8(0),
|
2017-08-09 13:43:29 +00:00
|
|
|
B(Jump), U8(22),
|
2019-01-02 16:12:54 +00:00
|
|
|
B(Ldar), R(2),
|
|
|
|
B(ReThrow),
|
2017-07-02 20:59:29 +00:00
|
|
|
B(LdaTrue),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Star), R(6),
|
|
|
|
B(Mov), R(0), R(4),
|
|
|
|
B(Mov), R(2), R(5),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_AsyncGeneratorResolve), R(4), U8(3),
|
2017-07-02 20:59:29 +00:00
|
|
|
/* 31 S> */ B(Return),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Ldar), R(2),
|
2017-07-02 20:59:29 +00:00
|
|
|
/* 31 S> */ B(Return),
|
|
|
|
B(LdaUndefined),
|
|
|
|
/* 31 S> */ B(Return),
|
|
|
|
]
|
|
|
|
constant pool: [
|
2018-01-23 13:51:38 +00:00
|
|
|
Smi [30],
|
2019-01-02 16:12:54 +00:00
|
|
|
Smi [75],
|
|
|
|
Smi [16],
|
2017-07-02 20:59:29 +00:00
|
|
|
Smi [7],
|
2019-01-02 16:12:54 +00:00
|
|
|
Smi [16],
|
2017-07-02 20:59:29 +00:00
|
|
|
Smi [7],
|
2018-02-16 12:36:47 +00:00
|
|
|
SCOPE_INFO_TYPE,
|
2017-07-02 20:59:29 +00:00
|
|
|
Smi [6],
|
2019-01-02 16:12:54 +00:00
|
|
|
Smi [9],
|
2017-08-09 13:43:29 +00:00
|
|
|
Smi [23],
|
2017-07-02 20:59:29 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
2019-05-15 19:41:48 +00:00
|
|
|
[20, 139, 147],
|
|
|
|
[23, 101, 105],
|
2017-07-02 20:59:29 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
async function* f() { for (let x of [42]) yield x }
|
|
|
|
f();
|
|
|
|
"
|
2019-08-23 14:23:52 +00:00
|
|
|
frame size: 19
|
2017-07-02 20:59:29 +00:00
|
|
|
parameter count: 1
|
2019-09-11 17:04:42 +00:00
|
|
|
bytecode array length: 357
|
2017-07-02 20:59:29 +00:00
|
|
|
bytecodes: [
|
2019-05-15 19:41:48 +00:00
|
|
|
B(SwitchOnGeneratorState), R(0), U8(0), U8(2),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(Mov), R(closure), R(4),
|
|
|
|
B(Mov), R(this), R(5),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(4), U8(2),
|
2019-01-31 15:36:58 +00:00
|
|
|
B(Star), R(0),
|
2017-07-02 20:59:29 +00:00
|
|
|
/* 17 E> */ B(StackCheck),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(Mov), R(context), R(6),
|
|
|
|
B(Mov), R(context), R(7),
|
2019-01-31 15:36:58 +00:00
|
|
|
B(Ldar), R(0),
|
|
|
|
/* 17 E> */ B(SuspendGenerator), R(0), R(0), U8(8), U8(0),
|
|
|
|
B(ResumeGenerator), R(0), R(0), U8(8),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(Star), R(8),
|
2019-01-31 15:36:58 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
|
2019-05-15 19:41:48 +00:00
|
|
|
B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(Ldar), R(8),
|
2017-07-02 20:59:29 +00:00
|
|
|
/* 17 E> */ B(Throw),
|
2019-01-02 16:12:54 +00:00
|
|
|
B(LdaSmi), I8(1),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(Star), R(4),
|
|
|
|
B(Mov), R(8), R(5),
|
2019-08-08 20:43:41 +00:00
|
|
|
B(JumpConstant), U8(15),
|
2019-05-15 19:41:48 +00:00
|
|
|
/* 36 S> */ B(CreateArrayLiteral), U8(4), U8(0), U8(37),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(Star), R(10),
|
2019-09-06 12:41:00 +00:00
|
|
|
B(GetIterator), R(10), U8(1), U8(3),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(Star), R(9),
|
2019-08-08 20:43:41 +00:00
|
|
|
B(LdaNamedProperty), R(9), U8(5), U8(5),
|
2018-01-11 17:24:11 +00:00
|
|
|
B(Star), R(8),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(LdaFalse),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Star), R(10),
|
|
|
|
B(Mov), R(context), R(13),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(LdaTrue),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Star), R(10),
|
2019-01-14 14:15:52 +00:00
|
|
|
/* 31 S> */ B(CallProperty0), R(8), R(9), U8(7),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Star), R(14),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(JumpIfJSReceiver), U8(7),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(14), U8(1),
|
|
|
|
B(LdaNamedProperty), R(14), U8(6), U8(9),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(JumpIfToBooleanTrue), U8(67),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(LdaNamedProperty), R(14), U8(7), U8(11),
|
|
|
|
B(Star), R(14),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(LdaFalse),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Star), R(10),
|
|
|
|
B(Mov), R(14), R(1),
|
2017-07-02 20:59:29 +00:00
|
|
|
/* 22 E> */ B(StackCheck),
|
2019-01-31 15:36:58 +00:00
|
|
|
/* 31 S> */ B(Mov), R(1), R(3),
|
2017-08-07 14:13:18 +00:00
|
|
|
/* 42 S> */ B(LdaFalse),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(Star), R(17),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Mov), R(0), R(15),
|
|
|
|
B(Mov), R(3), R(16),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_AsyncGeneratorYield), R(15), U8(3),
|
|
|
|
/* 42 E> */ B(SuspendGenerator), R(0), R(0), U8(15), U8(1),
|
|
|
|
B(ResumeGenerator), R(0), R(0), U8(15),
|
|
|
|
B(Star), R(15),
|
2019-01-31 15:36:58 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
|
2019-08-08 20:43:41 +00:00
|
|
|
B(SwitchOnSmiNoFeedback), U8(8), U8(2), I8(0),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Ldar), R(15),
|
2017-07-02 20:59:29 +00:00
|
|
|
/* 42 E> */ B(Throw),
|
2019-01-02 16:12:54 +00:00
|
|
|
B(LdaSmi), I8(1),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Star), R(11),
|
|
|
|
B(Mov), R(15), R(12),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(Jump), U8(20),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Ldar), R(15),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(JumpLoop), U8(84), I8(0),
|
2017-07-02 20:59:29 +00:00
|
|
|
B(LdaSmi), I8(-1),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Star), R(12),
|
|
|
|
B(Star), R(11),
|
2019-01-02 16:12:54 +00:00
|
|
|
B(Jump), U8(7),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Star), R(12),
|
2019-01-02 16:12:54 +00:00
|
|
|
B(LdaZero),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Star), R(11),
|
2017-07-02 20:59:29 +00:00
|
|
|
B(LdaTheHole),
|
|
|
|
B(SetPendingMessage),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Star), R(13),
|
|
|
|
B(Ldar), R(10),
|
2019-08-08 15:56:48 +00:00
|
|
|
B(JumpIfToBooleanTrue), U8(58),
|
2019-08-08 20:43:41 +00:00
|
|
|
B(LdaNamedProperty), R(9), U8(10), U8(13),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Star), R(15),
|
2019-08-08 15:56:48 +00:00
|
|
|
B(JumpIfUndefinedOrNull), U8(50),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Mov), R(context), R(16),
|
2017-11-07 09:26:56 +00:00
|
|
|
B(TestTypeOf), U8(6),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(JumpIfTrue), U8(18),
|
2019-10-15 14:34:02 +00:00
|
|
|
B(Wide), B(LdaSmi), I16(160),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Star), R(17),
|
2019-08-08 20:43:41 +00:00
|
|
|
B(LdaConstant), U8(11),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Star), R(18),
|
|
|
|
B(CallRuntime), U16(Runtime::kNewTypeError), R(17), U8(2),
|
2017-07-02 20:59:29 +00:00
|
|
|
B(Throw),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(CallProperty0), R(15), R(9), U8(15),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(JumpIfJSReceiver), U8(21),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Star), R(17),
|
|
|
|
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(17), U8(1),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(Jump), U8(12),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Star), R(16),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(LdaZero),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(TestReferenceEqual), R(11),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(JumpIfTrue), U8(5),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Ldar), R(16),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(ReThrow),
|
|
|
|
B(Ldar), R(13),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(SetPendingMessage),
|
|
|
|
B(Ldar), R(11),
|
2019-08-08 20:43:41 +00:00
|
|
|
B(SwitchOnSmiNoFeedback), U8(12), U8(2), I8(0),
|
2019-01-02 16:12:54 +00:00
|
|
|
B(Jump), U8(14),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Ldar), R(12),
|
2017-07-02 20:59:29 +00:00
|
|
|
B(ReThrow),
|
2019-01-02 16:12:54 +00:00
|
|
|
B(LdaSmi), I8(1),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(Star), R(4),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Mov), R(12), R(5),
|
2019-05-15 19:41:48 +00:00
|
|
|
B(Jump), U8(51),
|
|
|
|
B(Jump), U8(36),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(Star), R(8),
|
2019-08-08 20:43:41 +00:00
|
|
|
B(CreateCatchContext), R(8), U8(14),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(Star), R(7),
|
2017-07-02 20:59:29 +00:00
|
|
|
B(LdaTheHole),
|
|
|
|
B(SetPendingMessage),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(Ldar), R(7),
|
|
|
|
B(PushContext), R(8),
|
2019-10-17 15:58:38 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(3),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(Star), R(10),
|
2019-01-31 15:36:58 +00:00
|
|
|
B(Mov), R(0), R(9),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_AsyncGeneratorReject), R(9), U8(2),
|
|
|
|
B(PopContext), R(8),
|
|
|
|
B(Star), R(5),
|
2019-01-02 16:12:54 +00:00
|
|
|
B(LdaSmi), I8(2),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(Star), R(4),
|
2019-05-15 19:41:48 +00:00
|
|
|
B(Jump), U8(15),
|
|
|
|
B(LdaSmi), I8(-1),
|
|
|
|
B(Star), R(5),
|
|
|
|
B(Star), R(4),
|
2019-01-02 16:12:54 +00:00
|
|
|
B(Jump), U8(7),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(Star), R(5),
|
2019-01-02 16:12:54 +00:00
|
|
|
B(LdaZero),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(Star), R(4),
|
2017-07-02 20:59:29 +00:00
|
|
|
B(LdaTheHole),
|
|
|
|
B(SetPendingMessage),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(Star), R(6),
|
2019-01-31 15:36:58 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(0), U8(1),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(Ldar), R(6),
|
2017-07-02 20:59:29 +00:00
|
|
|
B(SetPendingMessage),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(Ldar), R(4),
|
2019-08-08 20:43:41 +00:00
|
|
|
B(SwitchOnSmiNoFeedback), U8(16), U8(3), I8(0),
|
2017-08-09 13:43:29 +00:00
|
|
|
B(Jump), U8(22),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(Ldar), R(5),
|
2019-01-02 16:12:54 +00:00
|
|
|
B(ReThrow),
|
2017-07-02 20:59:29 +00:00
|
|
|
B(LdaTrue),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(Star), R(9),
|
2019-01-31 15:36:58 +00:00
|
|
|
B(Mov), R(0), R(7),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(Mov), R(5), R(8),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_AsyncGeneratorResolve), R(7), U8(3),
|
2017-07-02 20:59:29 +00:00
|
|
|
/* 50 S> */ B(Return),
|
2019-01-14 14:15:52 +00:00
|
|
|
B(Ldar), R(5),
|
2017-07-02 20:59:29 +00:00
|
|
|
/* 50 S> */ B(Return),
|
|
|
|
B(LdaUndefined),
|
|
|
|
/* 50 S> */ B(Return),
|
|
|
|
]
|
|
|
|
constant pool: [
|
2018-01-23 13:51:38 +00:00
|
|
|
Smi [30],
|
2019-09-11 17:04:42 +00:00
|
|
|
Smi [136],
|
2019-01-02 16:12:54 +00:00
|
|
|
Smi [16],
|
2017-07-02 20:59:29 +00:00
|
|
|
Smi [7],
|
2018-07-05 18:34:09 +00:00
|
|
|
ARRAY_BOILERPLATE_DESCRIPTION_TYPE,
|
2017-07-02 20:59:29 +00:00
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"],
|
2019-01-02 16:12:54 +00:00
|
|
|
Smi [16],
|
2017-07-02 20:59:29 +00:00
|
|
|
Smi [7],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
|
2019-04-18 09:29:49 +00:00
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
|
2017-07-02 20:59:29 +00:00
|
|
|
Smi [6],
|
2019-01-02 16:12:54 +00:00
|
|
|
Smi [9],
|
2018-02-16 12:36:47 +00:00
|
|
|
SCOPE_INFO_TYPE,
|
2019-09-11 17:04:42 +00:00
|
|
|
Smi [262],
|
2017-07-02 20:59:29 +00:00
|
|
|
Smi [6],
|
2019-01-02 16:12:54 +00:00
|
|
|
Smi [9],
|
2017-08-09 13:43:29 +00:00
|
|
|
Smi [23],
|
2017-07-02 20:59:29 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
2019-09-11 17:04:42 +00:00
|
|
|
[20, 303, 311],
|
|
|
|
[23, 267, 269],
|
|
|
|
[80, 167, 175],
|
|
|
|
[199, 232, 234],
|
2017-07-02 20:59:29 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
function* g() { yield 42 }
|
|
|
|
async function* f() { yield* g() }
|
|
|
|
f();
|
|
|
|
"
|
2019-08-23 14:23:52 +00:00
|
|
|
frame size: 17
|
2017-07-02 20:59:29 +00:00
|
|
|
parameter count: 1
|
2019-09-06 12:41:00 +00:00
|
|
|
bytecode array length: 467
|
2017-07-02 20:59:29 +00:00
|
|
|
bytecodes: [
|
2019-05-15 19:41:48 +00:00
|
|
|
B(SwitchOnGeneratorState), R(0), U8(0), U8(5),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Mov), R(closure), R(1),
|
|
|
|
B(Mov), R(this), R(2),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(1), U8(2),
|
2017-07-02 20:59:29 +00:00
|
|
|
B(Star), R(0),
|
|
|
|
/* 44 E> */ B(StackCheck),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Mov), R(context), R(3),
|
2017-08-16 16:43:28 +00:00
|
|
|
B(Mov), R(context), R(4),
|
2017-07-25 18:37:36 +00:00
|
|
|
B(Ldar), R(0),
|
2018-01-23 13:51:38 +00:00
|
|
|
/* 44 E> */ B(SuspendGenerator), R(0), R(0), U8(5), U8(0),
|
|
|
|
B(ResumeGenerator), R(0), R(0), U8(5),
|
|
|
|
B(Star), R(5),
|
2017-08-11 15:16:31 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
|
2019-05-15 19:41:48 +00:00
|
|
|
B(SwitchOnSmiNoFeedback), U8(5), U8(2), I8(0),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Ldar), R(5),
|
2017-07-02 20:59:29 +00:00
|
|
|
/* 44 E> */ B(Throw),
|
2019-01-02 16:12:54 +00:00
|
|
|
B(LdaSmi), I8(1),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Star), R(1),
|
|
|
|
B(Mov), R(5), R(2),
|
2019-09-06 12:41:00 +00:00
|
|
|
B(JumpConstant), U8(18),
|
2019-05-15 19:41:48 +00:00
|
|
|
/* 49 S> */ B(LdaGlobal), U8(7), U8(0),
|
2019-01-02 16:12:54 +00:00
|
|
|
B(Star), R(9),
|
|
|
|
/* 56 E> */ B(CallUndefinedReceiver0), R(9), U8(2),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Star), R(10),
|
2019-05-15 19:41:48 +00:00
|
|
|
B(LdaNamedProperty), R(10), U8(8), U8(4),
|
2019-08-08 15:56:48 +00:00
|
|
|
B(JumpIfUndefinedOrNull), U8(15),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Star), R(11),
|
|
|
|
B(CallProperty0), R(11), R(10), U8(6),
|
2019-09-06 12:41:00 +00:00
|
|
|
B(JumpIfJSReceiver), U8(23),
|
2017-07-02 20:59:29 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kThrowSymbolAsyncIteratorInvalid), R(0), U8(0),
|
2019-09-06 12:41:00 +00:00
|
|
|
B(LdaNamedProperty), R(10), U8(9), U8(8),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Star), R(11),
|
|
|
|
B(CallProperty0), R(11), R(10), U8(10),
|
|
|
|
B(Star), R(11),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateAsyncFromSyncIterator), R(11), U8(1),
|
|
|
|
B(Star), R(7),
|
2019-09-06 12:41:00 +00:00
|
|
|
B(LdaNamedProperty), R(7), U8(10), U8(12),
|
2017-08-11 15:16:31 +00:00
|
|
|
B(Star), R(9),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(LdaUndefined),
|
|
|
|
B(Star), R(8),
|
2017-07-13 13:53:13 +00:00
|
|
|
B(LdaZero),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Star), R(6),
|
|
|
|
B(Ldar), R(6),
|
2019-09-06 12:41:00 +00:00
|
|
|
B(SwitchOnSmiNoFeedback), U8(11), U8(2), I8(1),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(CallProperty1), R(9), R(7), R(8), U8(14),
|
2019-08-08 15:56:48 +00:00
|
|
|
B(Jump), U8(140),
|
2019-09-06 12:41:00 +00:00
|
|
|
B(LdaNamedProperty), R(7), U8(13), U8(16),
|
2019-08-08 15:56:48 +00:00
|
|
|
B(JumpIfUndefinedOrNull), U8(11),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Star), R(10),
|
|
|
|
B(CallProperty1), R(10), R(7), R(8), U8(18),
|
2019-08-08 15:56:48 +00:00
|
|
|
B(Jump), U8(125),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Mov), R(0), R(10),
|
|
|
|
B(Mov), R(8), R(11),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_AsyncGeneratorAwaitUncaught), R(10), U8(2),
|
|
|
|
/* 49 E> */ B(SuspendGenerator), R(0), R(0), U8(10), U8(1),
|
|
|
|
B(ResumeGenerator), R(0), R(0), U8(10),
|
|
|
|
B(Star), R(10),
|
2017-08-11 15:16:31 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Star), R(11),
|
2017-07-13 13:53:13 +00:00
|
|
|
B(LdaZero),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(TestReferenceEqual), R(11),
|
2017-07-13 13:53:13 +00:00
|
|
|
B(JumpIfTrue), U8(5),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Ldar), R(10),
|
2017-07-02 20:59:29 +00:00
|
|
|
B(ReThrow),
|
2019-05-09 17:25:21 +00:00
|
|
|
B(LdaSmi), I8(1),
|
|
|
|
B(Star), R(1),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Mov), R(10), R(2),
|
2019-08-08 15:56:48 +00:00
|
|
|
B(Jump), U8(241),
|
2019-09-06 12:41:00 +00:00
|
|
|
B(LdaNamedProperty), R(7), U8(14), U8(20),
|
2019-08-08 15:56:48 +00:00
|
|
|
B(JumpIfUndefinedOrNull), U8(11),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Star), R(12),
|
|
|
|
B(CallProperty1), R(12), R(7), R(8), U8(22),
|
2019-08-08 15:56:48 +00:00
|
|
|
B(Jump), U8(66),
|
2019-09-06 12:41:00 +00:00
|
|
|
B(LdaNamedProperty), R(7), U8(13), U8(24),
|
2019-08-08 15:56:48 +00:00
|
|
|
B(JumpIfUndefinedOrNull), U8(55),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Star), R(12),
|
|
|
|
B(CallProperty0), R(12), R(7), U8(26),
|
2019-05-09 17:25:21 +00:00
|
|
|
B(Jump), U8(2),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Star), R(13),
|
|
|
|
B(Mov), R(0), R(12),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_AsyncGeneratorAwaitUncaught), R(12), U8(2),
|
|
|
|
/* 49 E> */ B(SuspendGenerator), R(0), R(0), U8(12), U8(2),
|
|
|
|
B(ResumeGenerator), R(0), R(0), U8(12),
|
|
|
|
B(Star), R(12),
|
2019-05-09 17:25:21 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Star), R(13),
|
2019-05-09 17:25:21 +00:00
|
|
|
B(LdaZero),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(TestReferenceEqual), R(13),
|
2019-05-09 17:25:21 +00:00
|
|
|
B(JumpIfTrue), U8(5),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Ldar), R(12),
|
2019-05-09 17:25:21 +00:00
|
|
|
B(ReThrow),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Ldar), R(12),
|
2019-05-09 17:25:21 +00:00
|
|
|
B(JumpIfJSReceiver), U8(9),
|
|
|
|
B(Star), R(14),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(14), U8(1),
|
|
|
|
B(CallRuntime), U16(Runtime::kThrowThrowMethodMissing), R(0), U8(0),
|
|
|
|
B(Star), R(13),
|
|
|
|
B(Mov), R(0), R(12),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_AsyncGeneratorAwaitUncaught), R(12), U8(2),
|
|
|
|
/* 49 E> */ B(SuspendGenerator), R(0), R(0), U8(12), U8(3),
|
|
|
|
B(ResumeGenerator), R(0), R(0), U8(12),
|
|
|
|
B(Star), R(12),
|
2018-01-11 17:24:11 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Star), R(13),
|
2017-07-13 13:53:13 +00:00
|
|
|
B(LdaZero),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(TestReferenceEqual), R(13),
|
2017-07-13 13:53:13 +00:00
|
|
|
B(JumpIfTrue), U8(5),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Ldar), R(12),
|
2017-07-02 20:59:29 +00:00
|
|
|
B(ReThrow),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Ldar), R(12),
|
|
|
|
B(Mov), R(12), R(5),
|
2017-08-16 16:43:28 +00:00
|
|
|
B(JumpIfJSReceiver), U8(7),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(5), U8(1),
|
2019-09-06 12:41:00 +00:00
|
|
|
B(LdaNamedProperty), R(5), U8(15), U8(28),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(JumpIfToBooleanTrue), U8(38),
|
2019-09-06 12:41:00 +00:00
|
|
|
B(LdaNamedProperty), R(5), U8(16), U8(30),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Star), R(15),
|
2018-01-11 17:24:11 +00:00
|
|
|
B(LdaFalse),
|
2019-08-23 14:23:52 +00:00
|
|
|
B(Star), R(16),
|
|
|
|
B(Mov), R(0), R(14),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_AsyncGeneratorYield), R(14), U8(3),
|
|
|
|
/* 49 E> */ B(SuspendGenerator), R(0), R(0), U8(14), U8(4),
|
|
|
|
B(ResumeGenerator), R(0), R(0), U8(14),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Star), R(8),
|
2017-08-11 15:16:31 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Star), R(6),
|
2019-08-08 15:56:48 +00:00
|
|
|
B(JumpLoop), U8(236), I8(0),
|
2019-09-06 12:41:00 +00:00
|
|
|
B(LdaNamedProperty), R(5), U8(16), U8(32),
|
2017-08-16 16:43:28 +00:00
|
|
|
B(Star), R(7),
|
|
|
|
B(LdaSmi), I8(1),
|
2018-04-18 00:04:34 +00:00
|
|
|
B(TestReferenceEqual), R(6),
|
2019-01-02 16:12:54 +00:00
|
|
|
B(JumpIfFalse), U8(11),
|
|
|
|
B(LdaSmi), I8(1),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Star), R(1),
|
|
|
|
B(Mov), R(7), R(2),
|
2019-05-15 19:41:48 +00:00
|
|
|
B(Jump), U8(53),
|
|
|
|
B(Ldar), R(7),
|
|
|
|
B(Jump), U8(36),
|
2017-08-16 16:43:28 +00:00
|
|
|
B(Star), R(5),
|
2019-09-06 12:41:00 +00:00
|
|
|
B(CreateCatchContext), R(5), U8(17),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Star), R(4),
|
2017-07-02 20:59:29 +00:00
|
|
|
B(LdaTheHole),
|
|
|
|
B(SetPendingMessage),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Ldar), R(4),
|
|
|
|
B(PushContext), R(5),
|
2019-10-17 15:58:38 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(3),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Star), R(7),
|
|
|
|
B(Mov), R(0), R(6),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_AsyncGeneratorReject), R(6), U8(2),
|
|
|
|
B(PopContext), R(5),
|
2017-08-16 16:43:28 +00:00
|
|
|
B(Star), R(2),
|
2019-01-02 16:12:54 +00:00
|
|
|
B(LdaSmi), I8(2),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Star), R(1),
|
2019-05-15 19:41:48 +00:00
|
|
|
B(Jump), U8(15),
|
|
|
|
B(LdaSmi), I8(-1),
|
|
|
|
B(Star), R(2),
|
|
|
|
B(Star), R(1),
|
2019-01-02 16:12:54 +00:00
|
|
|
B(Jump), U8(7),
|
2017-08-16 16:43:28 +00:00
|
|
|
B(Star), R(2),
|
2019-01-02 16:12:54 +00:00
|
|
|
B(LdaZero),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Star), R(1),
|
2017-07-02 20:59:29 +00:00
|
|
|
B(LdaTheHole),
|
|
|
|
B(SetPendingMessage),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Star), R(3),
|
2017-07-02 20:59:29 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(0), U8(1),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Ldar), R(3),
|
2017-07-02 20:59:29 +00:00
|
|
|
B(SetPendingMessage),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Ldar), R(1),
|
2019-09-06 12:41:00 +00:00
|
|
|
B(SwitchOnSmiNoFeedback), U8(19), U8(3), I8(0),
|
2017-08-09 13:43:29 +00:00
|
|
|
B(Jump), U8(22),
|
2019-01-02 16:12:54 +00:00
|
|
|
B(Ldar), R(2),
|
|
|
|
B(ReThrow),
|
2017-07-02 20:59:29 +00:00
|
|
|
B(LdaTrue),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Star), R(6),
|
|
|
|
B(Mov), R(0), R(4),
|
|
|
|
B(Mov), R(2), R(5),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_AsyncGeneratorResolve), R(4), U8(3),
|
2017-07-02 20:59:29 +00:00
|
|
|
/* 60 S> */ B(Return),
|
2018-01-23 13:51:38 +00:00
|
|
|
B(Ldar), R(2),
|
2017-07-02 20:59:29 +00:00
|
|
|
/* 60 S> */ B(Return),
|
|
|
|
B(LdaUndefined),
|
|
|
|
/* 60 S> */ B(Return),
|
|
|
|
]
|
|
|
|
constant pool: [
|
2018-01-23 13:51:38 +00:00
|
|
|
Smi [30],
|
2019-09-06 12:41:00 +00:00
|
|
|
Smi [158],
|
|
|
|
Smi [230],
|
|
|
|
Smi [280],
|
|
|
|
Smi [339],
|
2019-01-02 16:12:54 +00:00
|
|
|
Smi [16],
|
2017-07-02 20:59:29 +00:00
|
|
|
Smi [7],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["g"],
|
|
|
|
SYMBOL_TYPE,
|
2019-09-06 12:41:00 +00:00
|
|
|
SYMBOL_TYPE,
|
2017-07-02 20:59:29 +00:00
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"],
|
2018-01-11 17:24:11 +00:00
|
|
|
Smi [11],
|
2019-08-08 15:56:48 +00:00
|
|
|
Smi [70],
|
2017-07-02 20:59:29 +00:00
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["throw"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"],
|
2018-02-16 12:36:47 +00:00
|
|
|
SCOPE_INFO_TYPE,
|
2019-09-06 12:41:00 +00:00
|
|
|
Smi [372],
|
2017-07-02 20:59:29 +00:00
|
|
|
Smi [6],
|
2019-01-02 16:12:54 +00:00
|
|
|
Smi [9],
|
2017-08-09 13:43:29 +00:00
|
|
|
Smi [23],
|
2017-07-02 20:59:29 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
2019-09-06 12:41:00 +00:00
|
|
|
[20, 413, 421],
|
|
|
|
[23, 375, 379],
|
2017-07-02 20:59:29 +00:00
|
|
|
]
|
|
|
|
|