2016-10-04 18:42:13 +00:00
|
|
|
#
|
|
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
wrap: no
|
|
|
|
module: yes
|
|
|
|
top level: yes
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
import \"bar\";
|
|
|
|
"
|
2017-05-18 19:45:52 +00:00
|
|
|
frame size: 8
|
2016-10-04 18:42:13 +00:00
|
|
|
parameter count: 2
|
2017-05-24 15:48:27 +00:00
|
|
|
bytecode array length: 130
|
2016-10-04 18:42:13 +00:00
|
|
|
bytecodes: [
|
|
|
|
B(Ldar), R(new_target),
|
2017-05-19 09:27:25 +00:00
|
|
|
B(JumpIfUndefined), U8(25),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_target), U8(1),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(PushContext), R(1),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(ResumeGenerator), R(new_target),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(0),
|
2017-05-15 16:31:05 +00:00
|
|
|
B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
|
2017-04-11 09:33:11 +00:00
|
|
|
B(LdaSmi), I8(79),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(2),
|
|
|
|
B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(-2),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(0),
|
2017-05-15 16:31:05 +00:00
|
|
|
B(LdaConstant), U8(1),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(4),
|
|
|
|
B(Mov), R(arg0), R(2),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(Mov), R(closure), R(3),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
|
|
|
|
B(PushContext), R(2),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(Mov), R(this), R(4),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(3), U8(2),
|
2016-10-28 10:10:32 +00:00
|
|
|
B(StaCurrentContextSlot), U8(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 0 E> */ B(StackCheck),
|
2017-02-07 20:42:03 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
2016-11-10 10:41:48 +00:00
|
|
|
B(Star), R(3),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
2017-01-17 13:44:10 +00:00
|
|
|
B(Star), R(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(LdaZero),
|
2017-05-18 19:45:52 +00:00
|
|
|
/* 0 E> */ B(SuspendGenerator), R(3), U8(0),
|
|
|
|
B(Ldar), R(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 13 S> */ B(Return),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(-2),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(0),
|
2017-05-19 09:27:25 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(3), U8(1),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(Star), R(4),
|
2017-05-19 09:27:25 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(3), U8(1),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(Star), R(5),
|
|
|
|
B(LdaZero),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(TestEqualStrictNoFeedback), R(5),
|
2017-05-09 16:49:04 +00:00
|
|
|
B(JumpIfTrue), U8(22),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(2),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(TestEqualStrictNoFeedback), R(5),
|
2017-05-09 16:49:04 +00:00
|
|
|
B(JumpIfTrue), U8(13),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(LdaTrue),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(Star), R(7),
|
|
|
|
B(Mov), R(4), R(6),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(6), U8(2),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 13 S> */ B(Return),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(Ldar), R(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 0 E> */ B(Throw),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(Ldar), R(4),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(StaCurrentContextSlot), U8(5),
|
|
|
|
B(LdaCurrentContextSlot), U8(5),
|
2017-02-28 10:11:54 +00:00
|
|
|
B(Star), R(3),
|
|
|
|
B(LdaTrue),
|
|
|
|
B(Star), R(4),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(3), U8(2),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 13 S> */ B(Return),
|
|
|
|
]
|
|
|
|
constant pool: [
|
2017-05-24 15:48:27 +00:00
|
|
|
Smi [59],
|
2016-10-04 18:42:13 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
import {foo} from \"bar\";
|
|
|
|
"
|
2017-05-18 19:45:52 +00:00
|
|
|
frame size: 8
|
2016-10-04 18:42:13 +00:00
|
|
|
parameter count: 2
|
2017-05-24 15:48:27 +00:00
|
|
|
bytecode array length: 130
|
2016-10-04 18:42:13 +00:00
|
|
|
bytecodes: [
|
|
|
|
B(Ldar), R(new_target),
|
2017-05-19 09:27:25 +00:00
|
|
|
B(JumpIfUndefined), U8(25),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_target), U8(1),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(PushContext), R(1),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(ResumeGenerator), R(new_target),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(0),
|
2017-05-15 16:31:05 +00:00
|
|
|
B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
|
2017-04-11 09:33:11 +00:00
|
|
|
B(LdaSmi), I8(79),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(2),
|
|
|
|
B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(-2),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(0),
|
2017-05-15 16:31:05 +00:00
|
|
|
B(LdaConstant), U8(1),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(4),
|
|
|
|
B(Mov), R(arg0), R(2),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(Mov), R(closure), R(3),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
|
|
|
|
B(PushContext), R(2),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(Mov), R(this), R(4),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(3), U8(2),
|
2016-10-28 10:10:32 +00:00
|
|
|
B(StaCurrentContextSlot), U8(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 0 E> */ B(StackCheck),
|
2017-02-07 20:42:03 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
2016-11-10 10:41:48 +00:00
|
|
|
B(Star), R(3),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
2017-01-17 13:44:10 +00:00
|
|
|
B(Star), R(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(LdaZero),
|
2017-05-18 19:45:52 +00:00
|
|
|
/* 0 E> */ B(SuspendGenerator), R(3), U8(0),
|
|
|
|
B(Ldar), R(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 24 S> */ B(Return),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(-2),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(0),
|
2017-05-19 09:27:25 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(3), U8(1),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(Star), R(4),
|
2017-05-19 09:27:25 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(3), U8(1),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(Star), R(5),
|
|
|
|
B(LdaZero),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(TestEqualStrictNoFeedback), R(5),
|
2017-05-09 16:49:04 +00:00
|
|
|
B(JumpIfTrue), U8(22),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(2),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(TestEqualStrictNoFeedback), R(5),
|
2017-05-09 16:49:04 +00:00
|
|
|
B(JumpIfTrue), U8(13),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(LdaTrue),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(Star), R(7),
|
|
|
|
B(Mov), R(4), R(6),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(6), U8(2),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 24 S> */ B(Return),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(Ldar), R(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 0 E> */ B(Throw),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(Ldar), R(4),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(StaCurrentContextSlot), U8(5),
|
|
|
|
B(LdaCurrentContextSlot), U8(5),
|
2017-02-28 10:11:54 +00:00
|
|
|
B(Star), R(3),
|
|
|
|
B(LdaTrue),
|
|
|
|
B(Star), R(4),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(3), U8(2),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 24 S> */ B(Return),
|
|
|
|
]
|
|
|
|
constant pool: [
|
2017-05-24 15:48:27 +00:00
|
|
|
Smi [59],
|
2016-10-04 18:42:13 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
import {foo as goo} from \"bar\";
|
|
|
|
goo(42);
|
|
|
|
{ let x; { goo(42) } };
|
|
|
|
"
|
2017-05-24 15:48:27 +00:00
|
|
|
frame size: 8
|
2016-10-04 18:42:13 +00:00
|
|
|
parameter count: 2
|
2017-05-24 15:48:27 +00:00
|
|
|
bytecode array length: 192
|
2016-10-04 18:42:13 +00:00
|
|
|
bytecodes: [
|
|
|
|
B(Ldar), R(new_target),
|
2017-05-19 09:27:25 +00:00
|
|
|
B(JumpIfUndefined), U8(25),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_target), U8(1),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(PushContext), R(1),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(ResumeGenerator), R(new_target),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(0),
|
2017-05-15 16:31:05 +00:00
|
|
|
B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
|
2017-04-11 09:33:11 +00:00
|
|
|
B(LdaSmi), I8(79),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(Star), R(2),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
|
|
|
|
B(LdaSmi), I8(-2),
|
|
|
|
B(Star), R(0),
|
2017-05-15 16:31:05 +00:00
|
|
|
B(LdaConstant), U8(1),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(4),
|
|
|
|
B(Mov), R(arg0), R(2),
|
|
|
|
B(Mov), R(closure), R(3),
|
|
|
|
B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
|
|
|
|
B(PushContext), R(2),
|
|
|
|
B(Mov), R(this), R(4),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(3), U8(2),
|
2016-10-28 10:10:32 +00:00
|
|
|
B(StaCurrentContextSlot), U8(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 0 E> */ B(StackCheck),
|
2017-02-07 20:42:03 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(3),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(LdaZero),
|
2017-05-24 15:48:27 +00:00
|
|
|
/* 0 E> */ B(SuspendGenerator), R(3), U8(0),
|
|
|
|
B(Ldar), R(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 64 S> */ B(Return),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(-2),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(0),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(3), U8(1),
|
|
|
|
B(Star), R(4),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(3), U8(1),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(Star), R(5),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(LdaZero),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(TestEqualStrictNoFeedback), R(5),
|
2017-05-09 16:49:04 +00:00
|
|
|
B(JumpIfTrue), U8(22),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(2),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(TestEqualStrictNoFeedback), R(5),
|
2017-05-09 16:49:04 +00:00
|
|
|
B(JumpIfTrue), U8(13),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(LdaTrue),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(7),
|
|
|
|
B(Mov), R(4), R(6),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(6), U8(2),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 64 S> */ B(Return),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Ldar), R(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 0 E> */ B(Throw),
|
2017-04-11 14:20:30 +00:00
|
|
|
/* 32 S> */ B(LdaModuleVariable), I8(-1), U8(0),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(JumpIfNotHole), U8(11),
|
2017-05-15 16:31:05 +00:00
|
|
|
B(LdaConstant), U8(2),
|
2017-01-17 13:44:10 +00:00
|
|
|
B(Star), R(4),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1),
|
|
|
|
B(Star), R(3),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(42),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(4),
|
|
|
|
/* 32 E> */ B(CallUndefinedReceiver1), R(3), R(4), U8(3),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(Ldar), R(closure),
|
2017-05-15 16:31:05 +00:00
|
|
|
B(CreateBlockContext), U8(3),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(PushContext), R(3),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(LdaTheHole),
|
2016-10-28 10:10:32 +00:00
|
|
|
B(StaCurrentContextSlot), U8(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 47 S> */ B(LdaUndefined),
|
2016-10-28 10:10:32 +00:00
|
|
|
/* 47 E> */ B(StaCurrentContextSlot), U8(4),
|
2017-04-11 14:20:30 +00:00
|
|
|
/* 52 S> */ B(LdaModuleVariable), I8(-1), U8(1),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(JumpIfNotHole), U8(11),
|
2017-05-15 16:31:05 +00:00
|
|
|
B(LdaConstant), U8(2),
|
2017-04-11 14:20:30 +00:00
|
|
|
B(Star), R(5),
|
|
|
|
B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1),
|
2017-01-17 13:44:10 +00:00
|
|
|
B(Star), R(4),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(42),
|
2017-04-11 14:20:30 +00:00
|
|
|
B(Star), R(5),
|
2017-05-09 21:45:33 +00:00
|
|
|
/* 52 E> */ B(CallUndefinedReceiver1), R(4), R(5), U8(5),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(StaContextSlot), R(3), U8(5), U8(0),
|
|
|
|
B(PopContext), R(3),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(LdaCurrentContextSlot), U8(5),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(3),
|
2017-02-28 10:11:54 +00:00
|
|
|
B(LdaTrue),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(4),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(3), U8(2),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 64 S> */ B(Return),
|
|
|
|
]
|
|
|
|
constant pool: [
|
2017-05-24 15:48:27 +00:00
|
|
|
Smi [59],
|
2016-10-04 18:42:13 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["goo"],
|
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
export var foo = 42;
|
|
|
|
foo++;
|
|
|
|
{ let x; { foo++ } };
|
|
|
|
"
|
2017-05-24 15:48:27 +00:00
|
|
|
frame size: 8
|
2016-10-04 18:42:13 +00:00
|
|
|
parameter count: 2
|
2017-05-24 15:48:27 +00:00
|
|
|
bytecode array length: 172
|
2016-10-04 18:42:13 +00:00
|
|
|
bytecodes: [
|
|
|
|
B(Ldar), R(new_target),
|
2017-05-19 09:27:25 +00:00
|
|
|
B(JumpIfUndefined), U8(25),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_target), U8(1),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(PushContext), R(1),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(ResumeGenerator), R(new_target),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(0),
|
2017-05-15 16:31:05 +00:00
|
|
|
B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
|
2017-04-11 09:33:11 +00:00
|
|
|
B(LdaSmi), I8(79),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(Star), R(2),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
|
|
|
|
B(LdaSmi), I8(-2),
|
|
|
|
B(Star), R(0),
|
2017-05-15 16:31:05 +00:00
|
|
|
B(LdaConstant), U8(1),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(4),
|
|
|
|
B(Mov), R(arg0), R(2),
|
|
|
|
B(Mov), R(closure), R(3),
|
|
|
|
B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
|
|
|
|
B(PushContext), R(2),
|
|
|
|
B(Mov), R(this), R(4),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(3), U8(2),
|
2016-10-28 10:10:32 +00:00
|
|
|
B(StaCurrentContextSlot), U8(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 0 E> */ B(StackCheck),
|
2017-02-07 20:42:03 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(3),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(LdaZero),
|
2017-05-24 15:48:27 +00:00
|
|
|
/* 0 E> */ B(SuspendGenerator), R(3), U8(0),
|
|
|
|
B(Ldar), R(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 49 S> */ B(Return),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(-2),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(0),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(3), U8(1),
|
|
|
|
B(Star), R(4),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(3), U8(1),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(Star), R(5),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(LdaZero),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(TestEqualStrictNoFeedback), R(5),
|
2017-05-09 16:49:04 +00:00
|
|
|
B(JumpIfTrue), U8(22),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(2),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(TestEqualStrictNoFeedback), R(5),
|
2017-05-09 16:49:04 +00:00
|
|
|
B(JumpIfTrue), U8(13),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(LdaTrue),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(7),
|
|
|
|
B(Mov), R(4), R(6),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(6), U8(2),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 49 S> */ B(Return),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Ldar), R(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 0 E> */ B(Throw),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 17 S> */ B(LdaSmi), I8(42),
|
|
|
|
/* 17 E> */ B(StaModuleVariable), I8(1), U8(0),
|
|
|
|
/* 21 S> */ B(LdaModuleVariable), I8(1), U8(0),
|
2017-05-09 21:45:33 +00:00
|
|
|
B(Inc), U8(3),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 24 E> */ B(StaModuleVariable), I8(1), U8(0),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(Ldar), R(closure),
|
2017-05-15 16:31:05 +00:00
|
|
|
B(CreateBlockContext), U8(2),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(PushContext), R(3),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(LdaTheHole),
|
2016-10-28 10:10:32 +00:00
|
|
|
B(StaCurrentContextSlot), U8(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 34 S> */ B(LdaUndefined),
|
2016-10-28 10:10:32 +00:00
|
|
|
/* 34 E> */ B(StaCurrentContextSlot), U8(4),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 39 S> */ B(LdaModuleVariable), I8(1), U8(1),
|
2017-05-09 21:45:33 +00:00
|
|
|
B(ToNumber), R(4), U8(4),
|
2017-02-28 10:11:54 +00:00
|
|
|
B(Ldar), R(4),
|
2017-05-09 21:45:33 +00:00
|
|
|
B(Inc), U8(4),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 42 E> */ B(StaModuleVariable), I8(1), U8(1),
|
2017-02-28 10:11:54 +00:00
|
|
|
B(Ldar), R(4),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(StaContextSlot), R(3), U8(5), U8(0),
|
|
|
|
B(PopContext), R(3),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(LdaCurrentContextSlot), U8(5),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(3),
|
2017-02-28 10:11:54 +00:00
|
|
|
B(LdaTrue),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(4),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(3), U8(2),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 49 S> */ B(Return),
|
|
|
|
]
|
|
|
|
constant pool: [
|
2017-05-24 15:48:27 +00:00
|
|
|
Smi [59],
|
2016-10-04 18:42:13 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
export let foo = 42;
|
|
|
|
foo++;
|
|
|
|
{ let x; { foo++ } };
|
|
|
|
"
|
2017-05-24 15:48:27 +00:00
|
|
|
frame size: 8
|
2016-10-04 18:42:13 +00:00
|
|
|
parameter count: 2
|
2017-05-24 15:48:27 +00:00
|
|
|
bytecode array length: 176
|
2016-10-04 18:42:13 +00:00
|
|
|
bytecodes: [
|
|
|
|
B(Ldar), R(new_target),
|
2017-05-19 09:27:25 +00:00
|
|
|
B(JumpIfUndefined), U8(25),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_target), U8(1),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(PushContext), R(1),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(ResumeGenerator), R(new_target),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(0),
|
2017-05-15 16:31:05 +00:00
|
|
|
B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
|
2017-04-11 09:33:11 +00:00
|
|
|
B(LdaSmi), I8(79),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(Star), R(2),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
|
|
|
|
B(LdaSmi), I8(-2),
|
|
|
|
B(Star), R(0),
|
2017-05-15 16:31:05 +00:00
|
|
|
B(LdaConstant), U8(1),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(4),
|
|
|
|
B(Mov), R(arg0), R(2),
|
|
|
|
B(Mov), R(closure), R(3),
|
|
|
|
B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
|
|
|
|
B(PushContext), R(2),
|
|
|
|
B(Mov), R(this), R(4),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(3), U8(2),
|
2016-10-28 10:10:32 +00:00
|
|
|
B(StaCurrentContextSlot), U8(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(LdaTheHole),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(StaModuleVariable), I8(1), U8(0),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 0 E> */ B(StackCheck),
|
2017-02-07 20:42:03 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(3),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(LdaZero),
|
2017-05-24 15:48:27 +00:00
|
|
|
/* 0 E> */ B(SuspendGenerator), R(3), U8(0),
|
|
|
|
B(Ldar), R(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 49 S> */ B(Return),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(-2),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(0),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(3), U8(1),
|
|
|
|
B(Star), R(4),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(3), U8(1),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(Star), R(5),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(LdaZero),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(TestEqualStrictNoFeedback), R(5),
|
2017-05-09 16:49:04 +00:00
|
|
|
B(JumpIfTrue), U8(22),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(2),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(TestEqualStrictNoFeedback), R(5),
|
2017-05-09 16:49:04 +00:00
|
|
|
B(JumpIfTrue), U8(13),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(LdaTrue),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(7),
|
|
|
|
B(Mov), R(4), R(6),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(6), U8(2),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 49 S> */ B(Return),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Ldar), R(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 0 E> */ B(Throw),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 17 S> */ B(LdaSmi), I8(42),
|
|
|
|
/* 17 E> */ B(StaModuleVariable), I8(1), U8(0),
|
|
|
|
/* 21 S> */ B(LdaModuleVariable), I8(1), U8(0),
|
2017-05-09 21:45:33 +00:00
|
|
|
B(Inc), U8(3),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 24 E> */ B(StaModuleVariable), I8(1), U8(0),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(Ldar), R(closure),
|
2017-05-15 16:31:05 +00:00
|
|
|
B(CreateBlockContext), U8(2),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(PushContext), R(3),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(LdaTheHole),
|
2016-10-28 10:10:32 +00:00
|
|
|
B(StaCurrentContextSlot), U8(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 34 S> */ B(LdaUndefined),
|
2016-10-28 10:10:32 +00:00
|
|
|
/* 34 E> */ B(StaCurrentContextSlot), U8(4),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 39 S> */ B(LdaModuleVariable), I8(1), U8(1),
|
2017-05-09 21:45:33 +00:00
|
|
|
B(ToNumber), R(4), U8(4),
|
2017-02-28 10:11:54 +00:00
|
|
|
B(Ldar), R(4),
|
2017-05-09 21:45:33 +00:00
|
|
|
B(Inc), U8(4),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 42 E> */ B(StaModuleVariable), I8(1), U8(1),
|
2017-02-28 10:11:54 +00:00
|
|
|
B(Ldar), R(4),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(StaContextSlot), R(3), U8(5), U8(0),
|
|
|
|
B(PopContext), R(3),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(LdaCurrentContextSlot), U8(5),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(3),
|
2017-02-28 10:11:54 +00:00
|
|
|
B(LdaTrue),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(4),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(3), U8(2),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 49 S> */ B(Return),
|
|
|
|
]
|
|
|
|
constant pool: [
|
2017-05-24 15:48:27 +00:00
|
|
|
Smi [63],
|
2016-10-04 18:42:13 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
export const foo = 42;
|
|
|
|
foo++;
|
|
|
|
{ let x; { foo++ } };
|
|
|
|
"
|
2017-05-24 15:48:27 +00:00
|
|
|
frame size: 8
|
2016-10-04 18:42:13 +00:00
|
|
|
parameter count: 2
|
2017-05-24 15:48:27 +00:00
|
|
|
bytecode array length: 180
|
2016-10-04 18:42:13 +00:00
|
|
|
bytecodes: [
|
|
|
|
B(Ldar), R(new_target),
|
2017-05-19 09:27:25 +00:00
|
|
|
B(JumpIfUndefined), U8(25),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_target), U8(1),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(PushContext), R(1),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(ResumeGenerator), R(new_target),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(0),
|
2017-05-15 16:31:05 +00:00
|
|
|
B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
|
2017-04-11 09:33:11 +00:00
|
|
|
B(LdaSmi), I8(79),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(Star), R(2),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
|
|
|
|
B(LdaSmi), I8(-2),
|
|
|
|
B(Star), R(0),
|
2017-05-15 16:31:05 +00:00
|
|
|
B(LdaConstant), U8(1),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(4),
|
|
|
|
B(Mov), R(arg0), R(2),
|
|
|
|
B(Mov), R(closure), R(3),
|
|
|
|
B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
|
|
|
|
B(PushContext), R(2),
|
|
|
|
B(Mov), R(this), R(4),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(3), U8(2),
|
2016-10-28 10:10:32 +00:00
|
|
|
B(StaCurrentContextSlot), U8(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(LdaTheHole),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(StaModuleVariable), I8(1), U8(0),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 0 E> */ B(StackCheck),
|
2017-02-07 20:42:03 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(3),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(LdaZero),
|
2017-05-24 15:48:27 +00:00
|
|
|
/* 0 E> */ B(SuspendGenerator), R(3), U8(0),
|
|
|
|
B(Ldar), R(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 51 S> */ B(Return),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(-2),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(0),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(3), U8(1),
|
|
|
|
B(Star), R(4),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(3), U8(1),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(Star), R(5),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(LdaZero),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(TestEqualStrictNoFeedback), R(5),
|
2017-05-09 16:49:04 +00:00
|
|
|
B(JumpIfTrue), U8(22),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(2),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(TestEqualStrictNoFeedback), R(5),
|
2017-05-09 16:49:04 +00:00
|
|
|
B(JumpIfTrue), U8(13),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(LdaTrue),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(7),
|
|
|
|
B(Mov), R(4), R(6),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(6), U8(2),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 51 S> */ B(Return),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Ldar), R(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 0 E> */ B(Throw),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 19 S> */ B(LdaSmi), I8(42),
|
|
|
|
/* 19 E> */ B(StaModuleVariable), I8(1), U8(0),
|
|
|
|
/* 23 S> */ B(LdaModuleVariable), I8(1), U8(0),
|
2017-05-09 21:45:33 +00:00
|
|
|
B(Inc), U8(3),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 26 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0),
|
|
|
|
B(Ldar), R(closure),
|
2017-05-15 16:31:05 +00:00
|
|
|
B(CreateBlockContext), U8(2),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(PushContext), R(3),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(LdaTheHole),
|
2016-10-28 10:10:32 +00:00
|
|
|
B(StaCurrentContextSlot), U8(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 36 S> */ B(LdaUndefined),
|
2016-10-28 10:10:32 +00:00
|
|
|
/* 36 E> */ B(StaCurrentContextSlot), U8(4),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 41 S> */ B(LdaModuleVariable), I8(1), U8(1),
|
2017-05-09 21:45:33 +00:00
|
|
|
B(ToNumber), R(4), U8(4),
|
2017-02-28 10:11:54 +00:00
|
|
|
B(Ldar), R(4),
|
2017-05-09 21:45:33 +00:00
|
|
|
B(Inc), U8(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 44 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0),
|
2017-02-28 10:11:54 +00:00
|
|
|
B(Ldar), R(4),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(StaContextSlot), R(3), U8(5), U8(0),
|
|
|
|
B(PopContext), R(3),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(LdaCurrentContextSlot), U8(5),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(3),
|
2017-02-28 10:11:54 +00:00
|
|
|
B(LdaTrue),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(4),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(3), U8(2),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 51 S> */ B(Return),
|
|
|
|
]
|
|
|
|
constant pool: [
|
2017-05-24 15:48:27 +00:00
|
|
|
Smi [63],
|
2016-10-04 18:42:13 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
export default (function () {});
|
|
|
|
"
|
2017-05-18 19:45:52 +00:00
|
|
|
frame size: 8
|
2016-10-04 18:42:13 +00:00
|
|
|
parameter count: 2
|
2017-05-24 15:48:27 +00:00
|
|
|
bytecode array length: 141
|
2016-10-04 18:42:13 +00:00
|
|
|
bytecodes: [
|
|
|
|
B(Ldar), R(new_target),
|
2017-05-19 09:27:25 +00:00
|
|
|
B(JumpIfUndefined), U8(25),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_target), U8(1),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(PushContext), R(1),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(ResumeGenerator), R(new_target),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(0),
|
2017-05-15 16:31:05 +00:00
|
|
|
B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
|
2017-04-11 09:33:11 +00:00
|
|
|
B(LdaSmi), I8(79),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(2),
|
|
|
|
B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(-2),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(0),
|
2017-05-15 16:31:05 +00:00
|
|
|
B(LdaConstant), U8(1),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(4),
|
|
|
|
B(Mov), R(arg0), R(2),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(Mov), R(closure), R(3),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
|
|
|
|
B(PushContext), R(2),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(Mov), R(this), R(4),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(3), U8(2),
|
2016-10-28 10:10:32 +00:00
|
|
|
B(StaCurrentContextSlot), U8(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(LdaTheHole),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(StaModuleVariable), I8(1), U8(0),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 0 E> */ B(StackCheck),
|
2017-02-07 20:42:03 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
2016-11-10 10:41:48 +00:00
|
|
|
B(Star), R(3),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
2017-01-17 13:44:10 +00:00
|
|
|
B(Star), R(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(LdaZero),
|
2017-05-18 19:45:52 +00:00
|
|
|
/* 0 E> */ B(SuspendGenerator), R(3), U8(0),
|
|
|
|
B(Ldar), R(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 32 S> */ B(Return),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(-2),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(0),
|
2017-05-19 09:27:25 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(3), U8(1),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(Star), R(4),
|
2017-05-19 09:27:25 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(3), U8(1),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(Star), R(5),
|
|
|
|
B(LdaZero),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(TestEqualStrictNoFeedback), R(5),
|
2017-05-09 16:49:04 +00:00
|
|
|
B(JumpIfTrue), U8(22),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(2),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(TestEqualStrictNoFeedback), R(5),
|
2017-05-09 16:49:04 +00:00
|
|
|
B(JumpIfTrue), U8(13),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(LdaTrue),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(Star), R(7),
|
|
|
|
B(Mov), R(4), R(6),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(6), U8(2),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 32 S> */ B(Return),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(Ldar), R(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 0 E> */ B(Throw),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(Ldar), R(4),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(StaCurrentContextSlot), U8(5),
|
2017-05-15 16:31:05 +00:00
|
|
|
B(CreateClosure), U8(2), U8(3), U8(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(StaModuleVariable), I8(1), U8(0),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(LdaCurrentContextSlot), U8(5),
|
2017-02-28 10:11:54 +00:00
|
|
|
B(Star), R(3),
|
|
|
|
B(LdaTrue),
|
|
|
|
B(Star), R(4),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(3), U8(2),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 32 S> */ B(Return),
|
|
|
|
]
|
|
|
|
constant pool: [
|
2017-05-24 15:48:27 +00:00
|
|
|
Smi [63],
|
2016-10-04 18:42:13 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
export default (class {});
|
|
|
|
"
|
2017-05-18 19:45:52 +00:00
|
|
|
frame size: 8
|
2016-10-04 18:42:13 +00:00
|
|
|
parameter count: 2
|
2017-05-24 15:48:27 +00:00
|
|
|
bytecode array length: 174
|
2016-10-04 18:42:13 +00:00
|
|
|
bytecodes: [
|
|
|
|
B(Ldar), R(new_target),
|
2017-05-19 09:27:25 +00:00
|
|
|
B(JumpIfUndefined), U8(25),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_target), U8(1),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(PushContext), R(1),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(ResumeGenerator), R(new_target),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(0),
|
2017-05-15 16:31:05 +00:00
|
|
|
B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
|
2017-04-11 09:33:11 +00:00
|
|
|
B(LdaSmi), I8(79),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(2),
|
|
|
|
B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(-2),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(0),
|
2017-05-15 16:31:05 +00:00
|
|
|
B(LdaConstant), U8(1),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(4),
|
|
|
|
B(Mov), R(arg0), R(2),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(Mov), R(closure), R(3),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
|
|
|
|
B(PushContext), R(2),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(Mov), R(this), R(4),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(3), U8(2),
|
2016-10-28 10:10:32 +00:00
|
|
|
B(StaCurrentContextSlot), U8(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(LdaTheHole),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(StaModuleVariable), I8(1), U8(0),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 0 E> */ B(StackCheck),
|
2017-02-07 20:42:03 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
2016-11-10 10:41:48 +00:00
|
|
|
B(Star), R(3),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
2017-01-17 13:44:10 +00:00
|
|
|
B(Star), R(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(LdaZero),
|
2017-05-18 19:45:52 +00:00
|
|
|
/* 0 E> */ B(SuspendGenerator), R(3), U8(0),
|
|
|
|
B(Ldar), R(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 26 S> */ B(Return),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(-2),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(0),
|
2017-05-19 09:27:25 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(3), U8(1),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(Star), R(4),
|
2017-05-19 09:27:25 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(3), U8(1),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(Star), R(5),
|
|
|
|
B(LdaZero),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(TestEqualStrictNoFeedback), R(5),
|
2017-05-09 16:49:04 +00:00
|
|
|
B(JumpIfTrue), U8(22),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(2),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(TestEqualStrictNoFeedback), R(5),
|
2017-05-09 16:49:04 +00:00
|
|
|
B(JumpIfTrue), U8(13),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(LdaTrue),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(Star), R(7),
|
|
|
|
B(Mov), R(4), R(6),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(6), U8(2),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 26 S> */ B(Return),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(Ldar), R(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 0 E> */ B(Throw),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(Ldar), R(4),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(StaCurrentContextSlot), U8(5),
|
2017-05-15 16:31:05 +00:00
|
|
|
B(CreateClosure), U8(2), U8(3), U8(0),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(Star), R(3),
|
2017-01-17 13:44:10 +00:00
|
|
|
B(LdaTheHole),
|
|
|
|
B(Star), R(4),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(16),
|
2017-01-04 19:15:26 +00:00
|
|
|
B(Star), R(6),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(24),
|
2017-01-17 13:44:10 +00:00
|
|
|
B(Star), R(7),
|
|
|
|
B(Mov), R(3), R(5),
|
|
|
|
B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4),
|
|
|
|
B(Star), R(4),
|
|
|
|
B(CallRuntime), U16(Runtime::kInstallClassNameAccessor), R(3), U8(1),
|
|
|
|
B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1),
|
2017-05-04 17:00:44 +00:00
|
|
|
B(StaModuleVariable), I8(1), U8(0),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(LdaCurrentContextSlot), U8(5),
|
2017-02-28 10:11:54 +00:00
|
|
|
B(Star), R(3),
|
|
|
|
B(LdaTrue),
|
|
|
|
B(Star), R(4),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(3), U8(2),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 26 S> */ B(Return),
|
|
|
|
]
|
|
|
|
constant pool: [
|
2017-05-24 15:48:27 +00:00
|
|
|
Smi [63],
|
2016-10-04 18:42:13 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
export {foo as goo} from \"bar\"
|
|
|
|
"
|
2017-05-18 19:45:52 +00:00
|
|
|
frame size: 8
|
2016-10-04 18:42:13 +00:00
|
|
|
parameter count: 2
|
2017-05-24 15:48:27 +00:00
|
|
|
bytecode array length: 130
|
2016-10-04 18:42:13 +00:00
|
|
|
bytecodes: [
|
|
|
|
B(Ldar), R(new_target),
|
2017-05-19 09:27:25 +00:00
|
|
|
B(JumpIfUndefined), U8(25),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_target), U8(1),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(PushContext), R(1),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(ResumeGenerator), R(new_target),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(0),
|
2017-05-15 16:31:05 +00:00
|
|
|
B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
|
2017-04-11 09:33:11 +00:00
|
|
|
B(LdaSmi), I8(79),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(2),
|
|
|
|
B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(-2),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(0),
|
2017-05-15 16:31:05 +00:00
|
|
|
B(LdaConstant), U8(1),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(4),
|
|
|
|
B(Mov), R(arg0), R(2),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(Mov), R(closure), R(3),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
|
|
|
|
B(PushContext), R(2),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(Mov), R(this), R(4),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(3), U8(2),
|
2016-10-28 10:10:32 +00:00
|
|
|
B(StaCurrentContextSlot), U8(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 0 E> */ B(StackCheck),
|
2017-02-07 20:42:03 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
2016-11-10 10:41:48 +00:00
|
|
|
B(Star), R(3),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
2017-01-17 13:44:10 +00:00
|
|
|
B(Star), R(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(LdaZero),
|
2017-05-18 19:45:52 +00:00
|
|
|
/* 0 E> */ B(SuspendGenerator), R(3), U8(0),
|
|
|
|
B(Ldar), R(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 30 S> */ B(Return),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(-2),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(0),
|
2017-05-19 09:27:25 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(3), U8(1),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(Star), R(4),
|
2017-05-19 09:27:25 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(3), U8(1),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(Star), R(5),
|
|
|
|
B(LdaZero),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(TestEqualStrictNoFeedback), R(5),
|
2017-05-09 16:49:04 +00:00
|
|
|
B(JumpIfTrue), U8(22),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(2),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(TestEqualStrictNoFeedback), R(5),
|
2017-05-09 16:49:04 +00:00
|
|
|
B(JumpIfTrue), U8(13),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(LdaTrue),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(Star), R(7),
|
|
|
|
B(Mov), R(4), R(6),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(6), U8(2),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 30 S> */ B(Return),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(Ldar), R(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 0 E> */ B(Throw),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(Ldar), R(4),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(StaCurrentContextSlot), U8(5),
|
|
|
|
B(LdaCurrentContextSlot), U8(5),
|
2017-02-28 10:11:54 +00:00
|
|
|
B(Star), R(3),
|
|
|
|
B(LdaTrue),
|
|
|
|
B(Star), R(4),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(3), U8(2),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 30 S> */ B(Return),
|
|
|
|
]
|
|
|
|
constant pool: [
|
2017-05-24 15:48:27 +00:00
|
|
|
Smi [59],
|
2016-10-04 18:42:13 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
export * from \"bar\"
|
|
|
|
"
|
2017-05-18 19:45:52 +00:00
|
|
|
frame size: 8
|
2016-10-04 18:42:13 +00:00
|
|
|
parameter count: 2
|
2017-05-24 15:48:27 +00:00
|
|
|
bytecode array length: 130
|
2016-10-04 18:42:13 +00:00
|
|
|
bytecodes: [
|
|
|
|
B(Ldar), R(new_target),
|
2017-05-19 09:27:25 +00:00
|
|
|
B(JumpIfUndefined), U8(25),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_target), U8(1),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(PushContext), R(1),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(ResumeGenerator), R(new_target),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(0),
|
2017-05-15 16:31:05 +00:00
|
|
|
B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
|
2017-04-11 09:33:11 +00:00
|
|
|
B(LdaSmi), I8(79),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(2),
|
|
|
|
B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(-2),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(0),
|
2017-05-15 16:31:05 +00:00
|
|
|
B(LdaConstant), U8(1),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(4),
|
|
|
|
B(Mov), R(arg0), R(2),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(Mov), R(closure), R(3),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
|
|
|
|
B(PushContext), R(2),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(Mov), R(this), R(4),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(3), U8(2),
|
2016-10-28 10:10:32 +00:00
|
|
|
B(StaCurrentContextSlot), U8(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 0 E> */ B(StackCheck),
|
2017-02-07 20:42:03 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
2016-11-10 10:41:48 +00:00
|
|
|
B(Star), R(3),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
2017-01-17 13:44:10 +00:00
|
|
|
B(Star), R(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(LdaZero),
|
2017-05-18 19:45:52 +00:00
|
|
|
/* 0 E> */ B(SuspendGenerator), R(3), U8(0),
|
|
|
|
B(Ldar), R(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 19 S> */ B(Return),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(-2),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(0),
|
2017-05-19 09:27:25 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(3), U8(1),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(Star), R(4),
|
2017-05-19 09:27:25 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(3), U8(1),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(Star), R(5),
|
|
|
|
B(LdaZero),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(TestEqualStrictNoFeedback), R(5),
|
2017-05-09 16:49:04 +00:00
|
|
|
B(JumpIfTrue), U8(22),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(2),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(TestEqualStrictNoFeedback), R(5),
|
2017-05-09 16:49:04 +00:00
|
|
|
B(JumpIfTrue), U8(13),
|
2016-10-04 18:42:13 +00:00
|
|
|
B(LdaTrue),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(Star), R(7),
|
|
|
|
B(Mov), R(4), R(6),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(6), U8(2),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 19 S> */ B(Return),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(Ldar), R(4),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 0 E> */ B(Throw),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(Ldar), R(4),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(StaCurrentContextSlot), U8(5),
|
|
|
|
B(LdaCurrentContextSlot), U8(5),
|
2017-02-28 10:11:54 +00:00
|
|
|
B(Star), R(3),
|
|
|
|
B(LdaTrue),
|
|
|
|
B(Star), R(4),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(3), U8(2),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 19 S> */ B(Return),
|
|
|
|
]
|
|
|
|
constant pool: [
|
2017-05-24 15:48:27 +00:00
|
|
|
Smi [59],
|
2016-10-04 18:42:13 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
2016-11-02 09:30:24 +00:00
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
import * as foo from \"bar\"
|
|
|
|
foo.f(foo, foo.x);
|
|
|
|
"
|
2017-05-18 19:45:52 +00:00
|
|
|
frame size: 8
|
2016-11-02 09:30:24 +00:00
|
|
|
parameter count: 2
|
2017-05-24 15:48:27 +00:00
|
|
|
bytecode array length: 168
|
2016-11-02 09:30:24 +00:00
|
|
|
bytecodes: [
|
|
|
|
B(Ldar), R(new_target),
|
2017-05-19 09:27:25 +00:00
|
|
|
B(JumpIfUndefined), U8(25),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_target), U8(1),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(PushContext), R(1),
|
2016-11-02 09:30:24 +00:00
|
|
|
B(ResumeGenerator), R(new_target),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(0),
|
2017-05-15 16:31:05 +00:00
|
|
|
B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
|
2017-04-11 09:33:11 +00:00
|
|
|
B(LdaSmi), I8(79),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(2),
|
|
|
|
B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(-2),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(0),
|
2017-05-15 16:31:05 +00:00
|
|
|
B(LdaConstant), U8(1),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(4),
|
|
|
|
B(Mov), R(arg0), R(2),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(Mov), R(closure), R(3),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
|
|
|
|
B(PushContext), R(2),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(Mov), R(this), R(4),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(3), U8(2),
|
2016-11-02 09:30:24 +00:00
|
|
|
B(StaCurrentContextSlot), U8(4),
|
|
|
|
B(LdaZero),
|
2017-01-17 13:44:10 +00:00
|
|
|
B(Star), R(3),
|
|
|
|
B(CallRuntime), U16(Runtime::kGetModuleNamespace), R(3), U8(1),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(StaCurrentContextSlot), U8(5),
|
2016-11-02 09:30:24 +00:00
|
|
|
/* 0 E> */ B(StackCheck),
|
2017-02-07 20:42:03 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
2016-11-10 10:41:48 +00:00
|
|
|
B(Star), R(3),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
2017-01-17 13:44:10 +00:00
|
|
|
B(Star), R(4),
|
2016-11-02 09:30:24 +00:00
|
|
|
B(LdaZero),
|
2017-05-18 19:45:52 +00:00
|
|
|
/* 0 E> */ B(SuspendGenerator), R(3), U8(0),
|
|
|
|
B(Ldar), R(4),
|
2016-11-02 09:30:24 +00:00
|
|
|
/* 45 S> */ B(Return),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(-2),
|
2017-05-24 15:48:27 +00:00
|
|
|
B(Star), R(0),
|
2017-05-19 09:27:25 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(3), U8(1),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(Star), R(4),
|
2017-05-19 09:27:25 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(3), U8(1),
|
2016-11-02 09:30:24 +00:00
|
|
|
B(Star), R(5),
|
|
|
|
B(LdaZero),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(TestEqualStrictNoFeedback), R(5),
|
2017-05-09 16:49:04 +00:00
|
|
|
B(JumpIfTrue), U8(22),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(2),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(TestEqualStrictNoFeedback), R(5),
|
2017-05-09 16:49:04 +00:00
|
|
|
B(JumpIfTrue), U8(13),
|
2016-11-02 09:30:24 +00:00
|
|
|
B(LdaTrue),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(Star), R(7),
|
|
|
|
B(Mov), R(4), R(6),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(6), U8(2),
|
2016-11-02 09:30:24 +00:00
|
|
|
/* 45 S> */ B(Return),
|
2017-05-18 19:45:52 +00:00
|
|
|
B(Ldar), R(4),
|
2016-11-02 09:30:24 +00:00
|
|
|
/* 0 E> */ B(Throw),
|
2017-05-12 17:29:53 +00:00
|
|
|
/* 27 S> */ B(LdaImmutableCurrentContextSlot), U8(5),
|
2016-11-10 10:41:48 +00:00
|
|
|
B(Star), R(4),
|
2017-05-15 16:31:05 +00:00
|
|
|
/* 30 E> */ B(LdaNamedProperty), R(4), U8(2), U8(5),
|
2017-01-17 13:44:10 +00:00
|
|
|
B(Star), R(3),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(5),
|
2016-12-15 10:59:57 +00:00
|
|
|
B(Star), R(5),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(5),
|
2017-01-17 13:44:10 +00:00
|
|
|
B(Star), R(6),
|
2017-05-15 16:31:05 +00:00
|
|
|
/* 41 E> */ B(LdaNamedProperty), R(6), U8(3), U8(7),
|
2017-01-17 13:44:10 +00:00
|
|
|
B(Star), R(6),
|
2017-05-09 21:45:33 +00:00
|
|
|
/* 31 E> */ B(CallProperty2), R(3), R(4), R(5), R(6), U8(3),
|
2017-05-12 17:29:53 +00:00
|
|
|
B(StaCurrentContextSlot), U8(6),
|
|
|
|
B(LdaCurrentContextSlot), U8(6),
|
2017-02-28 10:11:54 +00:00
|
|
|
B(Star), R(3),
|
|
|
|
B(LdaTrue),
|
|
|
|
B(Star), R(4),
|
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(3), U8(2),
|
2016-11-02 09:30:24 +00:00
|
|
|
/* 45 S> */ B(Return),
|
|
|
|
]
|
|
|
|
constant pool: [
|
2017-05-24 15:48:27 +00:00
|
|
|
Smi [69],
|
2016-11-02 09:30:24 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["f"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|