61ea32436d
This is a reland of 5b44ba0e34
Original change's description:
> (Reland) [parser] moved load property position after dot
>
> Currently LdaNamedProperty bytecode for expressions like a.b has position before dot. This CL moves this location after dot.
> It's important for later removing of Nop bytecodes in expressions like a.b() where a is local variable, property call and property load should have the same position.
>
> R=jgruber@chromium.org
> TBR=marja@chromium.org
>
> Bug: v8:6425
> Change-Id: I05c21ca5e018da9c432c6bc963c7a96799336d1c
> Reviewed-on: https://chromium-review.googlesource.com/562879
> Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
> Reviewed-by: Jakob Gruber <jgruber@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#46484}
TBR=marja@chromium.org,jgruber@chromium.org
Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng
Bug: v8:6425
Change-Id: I5eba5fe43ad31c5c781ffcc8c604cd9c98baa57e
Reviewed-on: https://chromium-review.googlesource.com/565907
Reviewed-by: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#46542}
832 lines
29 KiB
Plaintext
832 lines
29 KiB
Plaintext
#
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
#
|
|
|
|
---
|
|
wrap: no
|
|
module: yes
|
|
top level: yes
|
|
|
|
---
|
|
snippet: "
|
|
import \"bar\";
|
|
"
|
|
frame size: 5
|
|
parameter count: 2
|
|
bytecode array length: 111
|
|
bytecodes: [
|
|
B(Mov), R(new_target), R(0),
|
|
B(Ldar), R(new_target),
|
|
B(JumpIfUndefined), U8(25),
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(0), U8(1),
|
|
B(PushContext), R(2),
|
|
B(RestoreGeneratorState), R(0),
|
|
B(Star), R(1),
|
|
B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
|
|
B(LdaSmi), I8(81),
|
|
B(Star), R(2),
|
|
B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
|
|
B(LdaSmi), I8(-2),
|
|
B(Star), R(1),
|
|
B(LdaConstant), U8(1),
|
|
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),
|
|
B(StaCurrentContextSlot), U8(4),
|
|
/* 0 E> */ B(StackCheck),
|
|
B(Star), R(0),
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
|
B(Star), R(3),
|
|
B(LdaZero),
|
|
/* 0 E> */ B(SuspendGenerator), R(0), R(0), U8(3), U8(0),
|
|
B(Ldar), R(3),
|
|
/* 13 S> */ B(Return),
|
|
B(RestoreGeneratorRegisters), R(0), R(0), U8(3),
|
|
B(LdaSmi), I8(-2),
|
|
B(Star), R(1),
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(0), U8(1),
|
|
B(Star), R(3),
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
|
|
B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0),
|
|
B(Ldar), R(3),
|
|
/* 0 E> */ B(Throw),
|
|
B(Ldar), R(3),
|
|
/* 13 S> */ B(Return),
|
|
B(Ldar), R(3),
|
|
B(StaCurrentContextSlot), U8(5),
|
|
B(LdaCurrentContextSlot), U8(5),
|
|
/* 13 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
Smi [59],
|
|
FIXED_ARRAY_TYPE,
|
|
Smi [10],
|
|
Smi [7],
|
|
]
|
|
handlers: [
|
|
]
|
|
|
|
---
|
|
snippet: "
|
|
import {foo} from \"bar\";
|
|
"
|
|
frame size: 5
|
|
parameter count: 2
|
|
bytecode array length: 111
|
|
bytecodes: [
|
|
B(Mov), R(new_target), R(0),
|
|
B(Ldar), R(new_target),
|
|
B(JumpIfUndefined), U8(25),
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(0), U8(1),
|
|
B(PushContext), R(2),
|
|
B(RestoreGeneratorState), R(0),
|
|
B(Star), R(1),
|
|
B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
|
|
B(LdaSmi), I8(81),
|
|
B(Star), R(2),
|
|
B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
|
|
B(LdaSmi), I8(-2),
|
|
B(Star), R(1),
|
|
B(LdaConstant), U8(1),
|
|
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),
|
|
B(StaCurrentContextSlot), U8(4),
|
|
/* 0 E> */ B(StackCheck),
|
|
B(Star), R(0),
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
|
B(Star), R(3),
|
|
B(LdaZero),
|
|
/* 0 E> */ B(SuspendGenerator), R(0), R(0), U8(3), U8(0),
|
|
B(Ldar), R(3),
|
|
/* 24 S> */ B(Return),
|
|
B(RestoreGeneratorRegisters), R(0), R(0), U8(3),
|
|
B(LdaSmi), I8(-2),
|
|
B(Star), R(1),
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(0), U8(1),
|
|
B(Star), R(3),
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
|
|
B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0),
|
|
B(Ldar), R(3),
|
|
/* 0 E> */ B(Throw),
|
|
B(Ldar), R(3),
|
|
/* 24 S> */ B(Return),
|
|
B(Ldar), R(3),
|
|
B(StaCurrentContextSlot), U8(5),
|
|
B(LdaCurrentContextSlot), U8(5),
|
|
/* 24 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
Smi [59],
|
|
FIXED_ARRAY_TYPE,
|
|
Smi [10],
|
|
Smi [7],
|
|
]
|
|
handlers: [
|
|
]
|
|
|
|
---
|
|
snippet: "
|
|
import {foo as goo} from \"bar\";
|
|
goo(42);
|
|
{ let x; { goo(42) } };
|
|
"
|
|
frame size: 6
|
|
parameter count: 2
|
|
bytecode array length: 155
|
|
bytecodes: [
|
|
B(Mov), R(new_target), R(0),
|
|
B(Ldar), R(new_target),
|
|
B(JumpIfUndefined), U8(25),
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(0), U8(1),
|
|
B(PushContext), R(2),
|
|
B(RestoreGeneratorState), R(0),
|
|
B(Star), R(1),
|
|
B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
|
|
B(LdaSmi), I8(81),
|
|
B(Star), R(2),
|
|
B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
|
|
B(LdaSmi), I8(-2),
|
|
B(Star), R(1),
|
|
B(LdaConstant), U8(1),
|
|
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),
|
|
B(StaCurrentContextSlot), U8(4),
|
|
/* 0 E> */ B(StackCheck),
|
|
B(Star), R(0),
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
|
B(Star), R(3),
|
|
B(LdaZero),
|
|
/* 0 E> */ B(SuspendGenerator), R(0), R(0), U8(3), U8(0),
|
|
B(Ldar), R(3),
|
|
/* 64 S> */ B(Return),
|
|
B(RestoreGeneratorRegisters), R(0), R(0), U8(3),
|
|
B(LdaSmi), I8(-2),
|
|
B(Star), R(1),
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(0), U8(1),
|
|
B(Star), R(3),
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
|
|
B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0),
|
|
B(Ldar), R(3),
|
|
/* 0 E> */ B(Throw),
|
|
B(Ldar), R(3),
|
|
/* 64 S> */ B(Return),
|
|
/* 32 S> */ B(LdaModuleVariable), I8(-1), U8(0),
|
|
B(ThrowReferenceErrorIfHole), U8(4),
|
|
B(Star), R(3),
|
|
B(LdaSmi), I8(42),
|
|
B(Star), R(4),
|
|
/* 32 E> */ B(CallUndefinedReceiver1), R(3), R(4), U8(4),
|
|
B(Ldar), R(closure),
|
|
B(CreateBlockContext), U8(5),
|
|
B(PushContext), R(3),
|
|
B(LdaTheHole),
|
|
B(StaCurrentContextSlot), U8(4),
|
|
/* 47 S> */ B(LdaUndefined),
|
|
/* 47 E> */ B(StaCurrentContextSlot), U8(4),
|
|
/* 52 S> */ B(LdaModuleVariable), I8(-1), U8(1),
|
|
B(ThrowReferenceErrorIfHole), U8(4),
|
|
B(Star), R(4),
|
|
B(LdaSmi), I8(42),
|
|
B(Star), R(5),
|
|
/* 52 E> */ B(CallUndefinedReceiver1), R(4), R(5), U8(6),
|
|
B(StaContextSlot), R(3), U8(5), U8(0),
|
|
B(PopContext), R(3),
|
|
B(LdaCurrentContextSlot), U8(5),
|
|
/* 64 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
Smi [59],
|
|
FIXED_ARRAY_TYPE,
|
|
Smi [10],
|
|
Smi [7],
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["goo"],
|
|
FIXED_ARRAY_TYPE,
|
|
]
|
|
handlers: [
|
|
]
|
|
|
|
---
|
|
snippet: "
|
|
export var foo = 42;
|
|
foo++;
|
|
{ let x; { foo++ } };
|
|
"
|
|
frame size: 5
|
|
parameter count: 2
|
|
bytecode array length: 153
|
|
bytecodes: [
|
|
B(Mov), R(new_target), R(0),
|
|
B(Ldar), R(new_target),
|
|
B(JumpIfUndefined), U8(25),
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(0), U8(1),
|
|
B(PushContext), R(2),
|
|
B(RestoreGeneratorState), R(0),
|
|
B(Star), R(1),
|
|
B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
|
|
B(LdaSmi), I8(81),
|
|
B(Star), R(2),
|
|
B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
|
|
B(LdaSmi), I8(-2),
|
|
B(Star), R(1),
|
|
B(LdaConstant), U8(1),
|
|
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),
|
|
B(StaCurrentContextSlot), U8(4),
|
|
/* 0 E> */ B(StackCheck),
|
|
B(Star), R(0),
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
|
B(Star), R(3),
|
|
B(LdaZero),
|
|
/* 0 E> */ B(SuspendGenerator), R(0), R(0), U8(3), U8(0),
|
|
B(Ldar), R(3),
|
|
/* 49 S> */ B(Return),
|
|
B(RestoreGeneratorRegisters), R(0), R(0), U8(3),
|
|
B(LdaSmi), I8(-2),
|
|
B(Star), R(1),
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(0), U8(1),
|
|
B(Star), R(3),
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
|
|
B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0),
|
|
B(Ldar), R(3),
|
|
/* 0 E> */ B(Throw),
|
|
B(Ldar), R(3),
|
|
/* 49 S> */ B(Return),
|
|
/* 17 S> */ B(LdaSmi), I8(42),
|
|
/* 17 E> */ B(StaModuleVariable), I8(1), U8(0),
|
|
/* 21 S> */ B(LdaModuleVariable), I8(1), U8(0),
|
|
B(Inc), U8(4),
|
|
/* 24 E> */ B(StaModuleVariable), I8(1), U8(0),
|
|
B(Ldar), R(closure),
|
|
B(CreateBlockContext), U8(4),
|
|
B(PushContext), R(3),
|
|
B(LdaTheHole),
|
|
B(StaCurrentContextSlot), U8(4),
|
|
/* 34 S> */ B(LdaUndefined),
|
|
/* 34 E> */ B(StaCurrentContextSlot), U8(4),
|
|
/* 39 S> */ B(LdaModuleVariable), I8(1), U8(1),
|
|
B(ToNumber), R(4), U8(5),
|
|
B(Ldar), R(4),
|
|
B(Inc), U8(5),
|
|
/* 42 E> */ B(StaModuleVariable), I8(1), U8(1),
|
|
B(Ldar), R(4),
|
|
B(StaContextSlot), R(3), U8(5), U8(0),
|
|
B(PopContext), R(3),
|
|
B(LdaCurrentContextSlot), U8(5),
|
|
/* 49 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
Smi [59],
|
|
FIXED_ARRAY_TYPE,
|
|
Smi [10],
|
|
Smi [7],
|
|
FIXED_ARRAY_TYPE,
|
|
]
|
|
handlers: [
|
|
]
|
|
|
|
---
|
|
snippet: "
|
|
export let foo = 42;
|
|
foo++;
|
|
{ let x; { foo++ } };
|
|
"
|
|
frame size: 5
|
|
parameter count: 2
|
|
bytecode array length: 157
|
|
bytecodes: [
|
|
B(Mov), R(new_target), R(0),
|
|
B(Ldar), R(new_target),
|
|
B(JumpIfUndefined), U8(25),
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(0), U8(1),
|
|
B(PushContext), R(2),
|
|
B(RestoreGeneratorState), R(0),
|
|
B(Star), R(1),
|
|
B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
|
|
B(LdaSmi), I8(81),
|
|
B(Star), R(2),
|
|
B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
|
|
B(LdaSmi), I8(-2),
|
|
B(Star), R(1),
|
|
B(LdaConstant), U8(1),
|
|
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),
|
|
B(StaCurrentContextSlot), U8(4),
|
|
B(Star), R(0),
|
|
B(LdaTheHole),
|
|
B(StaModuleVariable), I8(1), U8(0),
|
|
/* 0 E> */ B(StackCheck),
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
|
B(Star), R(3),
|
|
B(LdaZero),
|
|
/* 0 E> */ B(SuspendGenerator), R(0), R(0), U8(3), U8(0),
|
|
B(Ldar), R(3),
|
|
/* 49 S> */ B(Return),
|
|
B(RestoreGeneratorRegisters), R(0), R(0), U8(3),
|
|
B(LdaSmi), I8(-2),
|
|
B(Star), R(1),
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(0), U8(1),
|
|
B(Star), R(3),
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
|
|
B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0),
|
|
B(Ldar), R(3),
|
|
/* 0 E> */ B(Throw),
|
|
B(Ldar), R(3),
|
|
/* 49 S> */ B(Return),
|
|
/* 17 S> */ B(LdaSmi), I8(42),
|
|
/* 17 E> */ B(StaModuleVariable), I8(1), U8(0),
|
|
/* 21 S> */ B(LdaModuleVariable), I8(1), U8(0),
|
|
B(Inc), U8(4),
|
|
/* 24 E> */ B(StaModuleVariable), I8(1), U8(0),
|
|
B(Ldar), R(closure),
|
|
B(CreateBlockContext), U8(4),
|
|
B(PushContext), R(3),
|
|
B(LdaTheHole),
|
|
B(StaCurrentContextSlot), U8(4),
|
|
/* 34 S> */ B(LdaUndefined),
|
|
/* 34 E> */ B(StaCurrentContextSlot), U8(4),
|
|
/* 39 S> */ B(LdaModuleVariable), I8(1), U8(1),
|
|
B(ToNumber), R(4), U8(5),
|
|
B(Ldar), R(4),
|
|
B(Inc), U8(5),
|
|
/* 42 E> */ B(StaModuleVariable), I8(1), U8(1),
|
|
B(Ldar), R(4),
|
|
B(StaContextSlot), R(3), U8(5), U8(0),
|
|
B(PopContext), R(3),
|
|
B(LdaCurrentContextSlot), U8(5),
|
|
/* 49 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
Smi [63],
|
|
FIXED_ARRAY_TYPE,
|
|
Smi [10],
|
|
Smi [7],
|
|
FIXED_ARRAY_TYPE,
|
|
]
|
|
handlers: [
|
|
]
|
|
|
|
---
|
|
snippet: "
|
|
export const foo = 42;
|
|
foo++;
|
|
{ let x; { foo++ } };
|
|
"
|
|
frame size: 5
|
|
parameter count: 2
|
|
bytecode array length: 161
|
|
bytecodes: [
|
|
B(Mov), R(new_target), R(0),
|
|
B(Ldar), R(new_target),
|
|
B(JumpIfUndefined), U8(25),
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(0), U8(1),
|
|
B(PushContext), R(2),
|
|
B(RestoreGeneratorState), R(0),
|
|
B(Star), R(1),
|
|
B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
|
|
B(LdaSmi), I8(81),
|
|
B(Star), R(2),
|
|
B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
|
|
B(LdaSmi), I8(-2),
|
|
B(Star), R(1),
|
|
B(LdaConstant), U8(1),
|
|
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),
|
|
B(StaCurrentContextSlot), U8(4),
|
|
B(Star), R(0),
|
|
B(LdaTheHole),
|
|
B(StaModuleVariable), I8(1), U8(0),
|
|
/* 0 E> */ B(StackCheck),
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
|
B(Star), R(3),
|
|
B(LdaZero),
|
|
/* 0 E> */ B(SuspendGenerator), R(0), R(0), U8(3), U8(0),
|
|
B(Ldar), R(3),
|
|
/* 51 S> */ B(Return),
|
|
B(RestoreGeneratorRegisters), R(0), R(0), U8(3),
|
|
B(LdaSmi), I8(-2),
|
|
B(Star), R(1),
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(0), U8(1),
|
|
B(Star), R(3),
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
|
|
B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0),
|
|
B(Ldar), R(3),
|
|
/* 0 E> */ B(Throw),
|
|
B(Ldar), R(3),
|
|
/* 51 S> */ B(Return),
|
|
/* 19 S> */ B(LdaSmi), I8(42),
|
|
/* 19 E> */ B(StaModuleVariable), I8(1), U8(0),
|
|
/* 23 S> */ B(LdaModuleVariable), I8(1), U8(0),
|
|
B(Inc), U8(4),
|
|
/* 26 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0),
|
|
B(Ldar), R(closure),
|
|
B(CreateBlockContext), U8(4),
|
|
B(PushContext), R(3),
|
|
B(LdaTheHole),
|
|
B(StaCurrentContextSlot), U8(4),
|
|
/* 36 S> */ B(LdaUndefined),
|
|
/* 36 E> */ B(StaCurrentContextSlot), U8(4),
|
|
/* 41 S> */ B(LdaModuleVariable), I8(1), U8(1),
|
|
B(ToNumber), R(4), U8(5),
|
|
B(Ldar), R(4),
|
|
B(Inc), U8(5),
|
|
/* 44 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0),
|
|
B(Ldar), R(4),
|
|
B(StaContextSlot), R(3), U8(5), U8(0),
|
|
B(PopContext), R(3),
|
|
B(LdaCurrentContextSlot), U8(5),
|
|
/* 51 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
Smi [63],
|
|
FIXED_ARRAY_TYPE,
|
|
Smi [10],
|
|
Smi [7],
|
|
FIXED_ARRAY_TYPE,
|
|
]
|
|
handlers: [
|
|
]
|
|
|
|
---
|
|
snippet: "
|
|
export default (function () {});
|
|
"
|
|
frame size: 5
|
|
parameter count: 2
|
|
bytecode array length: 122
|
|
bytecodes: [
|
|
B(Mov), R(new_target), R(0),
|
|
B(Ldar), R(new_target),
|
|
B(JumpIfUndefined), U8(25),
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(0), U8(1),
|
|
B(PushContext), R(2),
|
|
B(RestoreGeneratorState), R(0),
|
|
B(Star), R(1),
|
|
B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
|
|
B(LdaSmi), I8(81),
|
|
B(Star), R(2),
|
|
B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
|
|
B(LdaSmi), I8(-2),
|
|
B(Star), R(1),
|
|
B(LdaConstant), U8(1),
|
|
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),
|
|
B(StaCurrentContextSlot), U8(4),
|
|
B(Star), R(0),
|
|
B(LdaTheHole),
|
|
B(StaModuleVariable), I8(1), U8(0),
|
|
/* 0 E> */ B(StackCheck),
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
|
B(Star), R(3),
|
|
B(LdaZero),
|
|
/* 0 E> */ B(SuspendGenerator), R(0), R(0), U8(3), U8(0),
|
|
B(Ldar), R(3),
|
|
/* 32 S> */ B(Return),
|
|
B(RestoreGeneratorRegisters), R(0), R(0), U8(3),
|
|
B(LdaSmi), I8(-2),
|
|
B(Star), R(1),
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(0), U8(1),
|
|
B(Star), R(3),
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
|
|
B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0),
|
|
B(Ldar), R(3),
|
|
/* 0 E> */ B(Throw),
|
|
B(Ldar), R(3),
|
|
/* 32 S> */ B(Return),
|
|
B(Ldar), R(3),
|
|
B(StaCurrentContextSlot), U8(5),
|
|
B(CreateClosure), U8(4), U8(4), U8(0),
|
|
B(StaModuleVariable), I8(1), U8(0),
|
|
B(LdaCurrentContextSlot), U8(5),
|
|
/* 32 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
Smi [63],
|
|
FIXED_ARRAY_TYPE,
|
|
Smi [10],
|
|
Smi [7],
|
|
SHARED_FUNCTION_INFO_TYPE,
|
|
]
|
|
handlers: [
|
|
]
|
|
|
|
---
|
|
snippet: "
|
|
export default (class {});
|
|
"
|
|
frame size: 8
|
|
parameter count: 2
|
|
bytecode array length: 155
|
|
bytecodes: [
|
|
B(Mov), R(new_target), R(0),
|
|
B(Ldar), R(new_target),
|
|
B(JumpIfUndefined), U8(25),
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(0), U8(1),
|
|
B(PushContext), R(2),
|
|
B(RestoreGeneratorState), R(0),
|
|
B(Star), R(1),
|
|
B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
|
|
B(LdaSmi), I8(81),
|
|
B(Star), R(2),
|
|
B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
|
|
B(LdaSmi), I8(-2),
|
|
B(Star), R(1),
|
|
B(LdaConstant), U8(1),
|
|
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),
|
|
B(StaCurrentContextSlot), U8(4),
|
|
B(Star), R(0),
|
|
B(LdaTheHole),
|
|
B(StaModuleVariable), I8(1), U8(0),
|
|
/* 0 E> */ B(StackCheck),
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
|
B(Star), R(3),
|
|
B(LdaZero),
|
|
/* 0 E> */ B(SuspendGenerator), R(0), R(0), U8(3), U8(0),
|
|
B(Ldar), R(3),
|
|
/* 26 S> */ B(Return),
|
|
B(RestoreGeneratorRegisters), R(0), R(0), U8(3),
|
|
B(LdaSmi), I8(-2),
|
|
B(Star), R(1),
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(0), U8(1),
|
|
B(Star), R(3),
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
|
|
B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0),
|
|
B(Ldar), R(3),
|
|
/* 0 E> */ B(Throw),
|
|
B(Ldar), R(3),
|
|
/* 26 S> */ B(Return),
|
|
B(Ldar), R(3),
|
|
B(StaCurrentContextSlot), U8(5),
|
|
B(CreateClosure), U8(4), U8(4), U8(0),
|
|
B(Star), R(3),
|
|
B(LdaTheHole),
|
|
B(Star), R(4),
|
|
B(LdaSmi), I8(16),
|
|
B(Star), R(6),
|
|
B(LdaSmi), I8(24),
|
|
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),
|
|
B(StaModuleVariable), I8(1), U8(0),
|
|
B(LdaCurrentContextSlot), U8(5),
|
|
/* 26 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
Smi [63],
|
|
FIXED_ARRAY_TYPE,
|
|
Smi [10],
|
|
Smi [7],
|
|
SHARED_FUNCTION_INFO_TYPE,
|
|
]
|
|
handlers: [
|
|
]
|
|
|
|
---
|
|
snippet: "
|
|
export {foo as goo} from \"bar\"
|
|
"
|
|
frame size: 5
|
|
parameter count: 2
|
|
bytecode array length: 111
|
|
bytecodes: [
|
|
B(Mov), R(new_target), R(0),
|
|
B(Ldar), R(new_target),
|
|
B(JumpIfUndefined), U8(25),
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(0), U8(1),
|
|
B(PushContext), R(2),
|
|
B(RestoreGeneratorState), R(0),
|
|
B(Star), R(1),
|
|
B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
|
|
B(LdaSmi), I8(81),
|
|
B(Star), R(2),
|
|
B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
|
|
B(LdaSmi), I8(-2),
|
|
B(Star), R(1),
|
|
B(LdaConstant), U8(1),
|
|
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),
|
|
B(StaCurrentContextSlot), U8(4),
|
|
/* 0 E> */ B(StackCheck),
|
|
B(Star), R(0),
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
|
B(Star), R(3),
|
|
B(LdaZero),
|
|
/* 0 E> */ B(SuspendGenerator), R(0), R(0), U8(3), U8(0),
|
|
B(Ldar), R(3),
|
|
/* 30 S> */ B(Return),
|
|
B(RestoreGeneratorRegisters), R(0), R(0), U8(3),
|
|
B(LdaSmi), I8(-2),
|
|
B(Star), R(1),
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(0), U8(1),
|
|
B(Star), R(3),
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
|
|
B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0),
|
|
B(Ldar), R(3),
|
|
/* 0 E> */ B(Throw),
|
|
B(Ldar), R(3),
|
|
/* 30 S> */ B(Return),
|
|
B(Ldar), R(3),
|
|
B(StaCurrentContextSlot), U8(5),
|
|
B(LdaCurrentContextSlot), U8(5),
|
|
/* 30 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
Smi [59],
|
|
FIXED_ARRAY_TYPE,
|
|
Smi [10],
|
|
Smi [7],
|
|
]
|
|
handlers: [
|
|
]
|
|
|
|
---
|
|
snippet: "
|
|
export * from \"bar\"
|
|
"
|
|
frame size: 5
|
|
parameter count: 2
|
|
bytecode array length: 111
|
|
bytecodes: [
|
|
B(Mov), R(new_target), R(0),
|
|
B(Ldar), R(new_target),
|
|
B(JumpIfUndefined), U8(25),
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(0), U8(1),
|
|
B(PushContext), R(2),
|
|
B(RestoreGeneratorState), R(0),
|
|
B(Star), R(1),
|
|
B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
|
|
B(LdaSmi), I8(81),
|
|
B(Star), R(2),
|
|
B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
|
|
B(LdaSmi), I8(-2),
|
|
B(Star), R(1),
|
|
B(LdaConstant), U8(1),
|
|
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),
|
|
B(StaCurrentContextSlot), U8(4),
|
|
/* 0 E> */ B(StackCheck),
|
|
B(Star), R(0),
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
|
B(Star), R(3),
|
|
B(LdaZero),
|
|
/* 0 E> */ B(SuspendGenerator), R(0), R(0), U8(3), U8(0),
|
|
B(Ldar), R(3),
|
|
/* 19 S> */ B(Return),
|
|
B(RestoreGeneratorRegisters), R(0), R(0), U8(3),
|
|
B(LdaSmi), I8(-2),
|
|
B(Star), R(1),
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(0), U8(1),
|
|
B(Star), R(3),
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
|
|
B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0),
|
|
B(Ldar), R(3),
|
|
/* 0 E> */ B(Throw),
|
|
B(Ldar), R(3),
|
|
/* 19 S> */ B(Return),
|
|
B(Ldar), R(3),
|
|
B(StaCurrentContextSlot), U8(5),
|
|
B(LdaCurrentContextSlot), U8(5),
|
|
/* 19 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
Smi [59],
|
|
FIXED_ARRAY_TYPE,
|
|
Smi [10],
|
|
Smi [7],
|
|
]
|
|
handlers: [
|
|
]
|
|
|
|
---
|
|
snippet: "
|
|
import * as foo from \"bar\"
|
|
foo.f(foo, foo.x);
|
|
"
|
|
frame size: 7
|
|
parameter count: 2
|
|
bytecode array length: 149
|
|
bytecodes: [
|
|
B(Mov), R(new_target), R(0),
|
|
B(Ldar), R(new_target),
|
|
B(JumpIfUndefined), U8(25),
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(0), U8(1),
|
|
B(PushContext), R(2),
|
|
B(RestoreGeneratorState), R(0),
|
|
B(Star), R(1),
|
|
B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0),
|
|
B(LdaSmi), I8(81),
|
|
B(Star), R(2),
|
|
B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
|
|
B(LdaSmi), I8(-2),
|
|
B(Star), R(1),
|
|
B(LdaConstant), U8(1),
|
|
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),
|
|
B(StaCurrentContextSlot), U8(4),
|
|
B(Star), R(0),
|
|
B(LdaZero),
|
|
B(Star), R(3),
|
|
B(CallRuntime), U16(Runtime::kGetModuleNamespace), R(3), U8(1),
|
|
B(StaCurrentContextSlot), U8(5),
|
|
/* 0 E> */ B(StackCheck),
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
|
B(Star), R(3),
|
|
B(LdaZero),
|
|
/* 0 E> */ B(SuspendGenerator), R(0), R(0), U8(3), U8(0),
|
|
B(Ldar), R(3),
|
|
/* 45 S> */ B(Return),
|
|
B(RestoreGeneratorRegisters), R(0), R(0), U8(3),
|
|
B(LdaSmi), I8(-2),
|
|
B(Star), R(1),
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(0), U8(1),
|
|
B(Star), R(3),
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
|
|
B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0),
|
|
B(Ldar), R(3),
|
|
/* 0 E> */ B(Throw),
|
|
B(Ldar), R(3),
|
|
/* 45 S> */ B(Return),
|
|
/* 27 S> */ B(LdaImmutableCurrentContextSlot), U8(5),
|
|
B(Star), R(4),
|
|
/* 31 E> */ B(LdaNamedProperty), R(4), U8(4), U8(6),
|
|
B(Star), R(3),
|
|
B(LdaImmutableCurrentContextSlot), U8(5),
|
|
B(Star), R(5),
|
|
B(LdaImmutableCurrentContextSlot), U8(5),
|
|
B(Star), R(6),
|
|
/* 42 E> */ B(LdaNamedProperty), R(6), U8(5), U8(8),
|
|
B(Star), R(6),
|
|
/* 31 E> */ B(CallProperty2), R(3), R(4), R(5), R(6), U8(4),
|
|
B(StaCurrentContextSlot), U8(6),
|
|
B(LdaCurrentContextSlot), U8(6),
|
|
/* 45 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
Smi [69],
|
|
FIXED_ARRAY_TYPE,
|
|
Smi [10],
|
|
Smi [7],
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["f"],
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
|
|
]
|
|
handlers: [
|
|
]
|
|
|