2016-10-04 18:42:13 +00:00
|
|
|
#
|
|
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
wrap: no
|
|
|
|
module: yes
|
|
|
|
top level: yes
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
import \"bar\";
|
|
|
|
"
|
2020-02-03 19:04:44 +00:00
|
|
|
frame size: 4
|
|
|
|
parameter count: 1
|
2020-02-10 16:09:27 +00:00
|
|
|
bytecode array length: 47
|
2016-10-04 18:42:13 +00:00
|
|
|
bytecodes: [
|
2018-01-23 13:51:38 +00:00
|
|
|
B(SwitchOnGeneratorState), R(0), U8(0), U8(1),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Mov), R(closure), R(2),
|
|
|
|
B(Mov), R(this), R(3),
|
2020-02-10 16:09:27 +00:00
|
|
|
/* 0 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(2), U8(2),
|
2017-12-07 09:45:45 +00:00
|
|
|
B(Star), R(0),
|
2020-02-03 19:04:44 +00:00
|
|
|
/* 0 E> */ B(SuspendGenerator), R(0), R(0), U8(2), U8(0),
|
|
|
|
B(ResumeGenerator), R(0), R(0), U8(2),
|
|
|
|
B(Star), R(2),
|
2017-12-07 09:45:45 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(SwitchOnSmiNoFeedback), U8(1), U8(2), I8(0),
|
|
|
|
B(Ldar), R(2),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 0 E> */ B(Throw),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Ldar), R(2),
|
2018-06-12 21:57:52 +00:00
|
|
|
/* 14 S> */ B(Return),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Mov), R(2), R(1),
|
2017-12-07 09:45:45 +00:00
|
|
|
B(Ldar), R(1),
|
2018-06-12 21:57:52 +00:00
|
|
|
/* 14 S> */ B(Return),
|
2016-10-04 18:42:13 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2020-02-03 19:04:44 +00:00
|
|
|
Smi [21],
|
2017-06-05 19:54:14 +00:00
|
|
|
Smi [10],
|
2017-06-05 13:23:20 +00:00
|
|
|
Smi [7],
|
2016-10-04 18:42:13 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
import {foo} from \"bar\";
|
|
|
|
"
|
2020-02-03 19:04:44 +00:00
|
|
|
frame size: 4
|
|
|
|
parameter count: 1
|
2020-02-10 16:09:27 +00:00
|
|
|
bytecode array length: 47
|
2016-10-04 18:42:13 +00:00
|
|
|
bytecodes: [
|
2018-01-23 13:51:38 +00:00
|
|
|
B(SwitchOnGeneratorState), R(0), U8(0), U8(1),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Mov), R(closure), R(2),
|
|
|
|
B(Mov), R(this), R(3),
|
2020-02-10 16:09:27 +00:00
|
|
|
/* 0 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(2), U8(2),
|
2017-12-07 09:45:45 +00:00
|
|
|
B(Star), R(0),
|
2020-02-03 19:04:44 +00:00
|
|
|
/* 0 E> */ B(SuspendGenerator), R(0), R(0), U8(2), U8(0),
|
|
|
|
B(ResumeGenerator), R(0), R(0), U8(2),
|
|
|
|
B(Star), R(2),
|
2017-12-07 09:45:45 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(SwitchOnSmiNoFeedback), U8(1), U8(2), I8(0),
|
|
|
|
B(Ldar), R(2),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 0 E> */ B(Throw),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Ldar), R(2),
|
2018-06-12 21:57:52 +00:00
|
|
|
/* 25 S> */ B(Return),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Mov), R(2), R(1),
|
2017-12-07 09:45:45 +00:00
|
|
|
B(Ldar), R(1),
|
2018-06-12 21:57:52 +00:00
|
|
|
/* 25 S> */ B(Return),
|
2016-10-04 18:42:13 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2020-02-03 19:04:44 +00:00
|
|
|
Smi [21],
|
2017-06-05 19:54:14 +00:00
|
|
|
Smi [10],
|
2017-06-05 13:23:20 +00:00
|
|
|
Smi [7],
|
2016-10-04 18:42:13 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
import {foo as goo} from \"bar\";
|
|
|
|
goo(42);
|
|
|
|
{ let x; { goo(42) } };
|
|
|
|
"
|
2020-02-03 19:04:44 +00:00
|
|
|
frame size: 5
|
|
|
|
parameter count: 1
|
2020-02-10 16:09:27 +00:00
|
|
|
bytecode array length: 77
|
2016-10-04 18:42:13 +00:00
|
|
|
bytecodes: [
|
2019-01-31 15:36:58 +00:00
|
|
|
B(SwitchOnGeneratorState), R(0), U8(0), U8(1),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Mov), R(closure), R(3),
|
|
|
|
B(Mov), R(this), R(4),
|
2020-02-10 16:09:27 +00:00
|
|
|
/* 0 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(3), U8(2),
|
2019-01-31 15:36:58 +00:00
|
|
|
B(Star), R(0),
|
2020-02-03 19:04:44 +00:00
|
|
|
/* 0 E> */ B(SuspendGenerator), R(0), R(0), U8(3), U8(0),
|
|
|
|
B(ResumeGenerator), R(0), R(0), U8(3),
|
|
|
|
B(Star), R(3),
|
2019-01-31 15:36:58 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(SwitchOnSmiNoFeedback), U8(1), U8(2), I8(0),
|
|
|
|
B(Ldar), R(3),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 0 E> */ B(Throw),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Ldar), R(3),
|
2018-06-12 21:57:52 +00:00
|
|
|
/* 65 S> */ B(Return),
|
2017-04-11 14:20:30 +00:00
|
|
|
/* 32 S> */ B(LdaModuleVariable), I8(-1), U8(0),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(ThrowReferenceErrorIfHole), U8(3),
|
|
|
|
B(Star), R(3),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(42),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Star), R(4),
|
|
|
|
/* 32 E> */ B(CallUndefinedReceiver1), R(3), R(4), U8(0),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 47 S> */ B(LdaUndefined),
|
2019-01-31 15:36:58 +00:00
|
|
|
B(Star), R(2),
|
2017-12-07 09:45:45 +00:00
|
|
|
/* 52 S> */ B(LdaModuleVariable), I8(-1), U8(0),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(ThrowReferenceErrorIfHole), U8(3),
|
|
|
|
B(Star), R(3),
|
2017-12-07 09:45:45 +00:00
|
|
|
B(LdaSmi), I8(42),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Star), R(4),
|
|
|
|
/* 52 E> */ B(CallUndefinedReceiver1), R(3), R(4), U8(2),
|
2019-01-31 15:36:58 +00:00
|
|
|
B(Star), R(1),
|
2018-06-12 21:57:52 +00:00
|
|
|
/* 65 S> */ B(Return),
|
2016-10-04 18:42:13 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2020-02-03 19:04:44 +00:00
|
|
|
Smi [21],
|
2017-06-05 19:54:14 +00:00
|
|
|
Smi [10],
|
2017-06-05 13:23:20 +00:00
|
|
|
Smi [7],
|
2016-10-04 18:42:13 +00:00
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["goo"],
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
export var foo = 42;
|
|
|
|
foo++;
|
|
|
|
{ let x; { foo++ } };
|
|
|
|
"
|
2020-02-03 19:04:44 +00:00
|
|
|
frame size: 5
|
|
|
|
parameter count: 1
|
2020-02-10 16:09:27 +00:00
|
|
|
bytecode array length: 75
|
2016-10-04 18:42:13 +00:00
|
|
|
bytecodes: [
|
2019-01-31 15:36:58 +00:00
|
|
|
B(SwitchOnGeneratorState), R(0), U8(0), U8(1),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Mov), R(closure), R(3),
|
|
|
|
B(Mov), R(this), R(4),
|
2020-02-10 16:09:27 +00:00
|
|
|
/* 0 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(3), U8(2),
|
2019-01-31 15:36:58 +00:00
|
|
|
B(Star), R(0),
|
2020-02-03 19:04:44 +00:00
|
|
|
/* 0 E> */ B(SuspendGenerator), R(0), R(0), U8(3), U8(0),
|
|
|
|
B(ResumeGenerator), R(0), R(0), U8(3),
|
|
|
|
B(Star), R(3),
|
2019-01-31 15:36:58 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(SwitchOnSmiNoFeedback), U8(1), U8(2), I8(0),
|
|
|
|
B(Ldar), R(3),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 0 E> */ B(Throw),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Ldar), R(3),
|
2018-06-12 21:57:52 +00:00
|
|
|
/* 50 S> */ B(Return),
|
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-07-27 12:45:00 +00:00
|
|
|
B(Inc), U8(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 24 E> */ B(StaModuleVariable), I8(1), U8(0),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 34 S> */ B(LdaUndefined),
|
2019-01-31 15:36:58 +00:00
|
|
|
B(Star), R(2),
|
2017-12-07 09:45:45 +00:00
|
|
|
/* 39 S> */ B(LdaModuleVariable), I8(1), U8(0),
|
2017-10-12 00:50:06 +00:00
|
|
|
B(ToNumeric), U8(1),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Star), R(3),
|
2017-07-27 12:45:00 +00:00
|
|
|
B(Inc), U8(1),
|
2017-12-07 09:45:45 +00:00
|
|
|
/* 42 E> */ B(StaModuleVariable), I8(1), U8(0),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Mov), R(3), R(1),
|
2019-01-31 15:36:58 +00:00
|
|
|
B(Ldar), R(1),
|
2018-06-12 21:57:52 +00:00
|
|
|
/* 50 S> */ B(Return),
|
2016-10-04 18:42:13 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2020-02-03 19:04:44 +00:00
|
|
|
Smi [21],
|
2017-06-05 19:54:14 +00:00
|
|
|
Smi [10],
|
2017-06-05 13:23:20 +00:00
|
|
|
Smi [7],
|
2016-10-04 18:42:13 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
export let foo = 42;
|
|
|
|
foo++;
|
|
|
|
{ let x; { foo++ } };
|
|
|
|
"
|
2020-02-03 19:04:44 +00:00
|
|
|
frame size: 5
|
|
|
|
parameter count: 1
|
2020-02-10 16:09:27 +00:00
|
|
|
bytecode array length: 89
|
2016-10-04 18:42:13 +00:00
|
|
|
bytecodes: [
|
2019-01-31 15:36:58 +00:00
|
|
|
B(SwitchOnGeneratorState), R(0), U8(0), U8(1),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Mov), R(closure), R(3),
|
|
|
|
B(Mov), R(this), R(4),
|
2020-02-10 16:09:27 +00:00
|
|
|
/* 0 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(3), U8(2),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Star), R(0),
|
2017-05-15 16:31:05 +00:00
|
|
|
B(LdaConstant), U8(1),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Star), R(3),
|
2018-05-02 13:57:26 +00:00
|
|
|
B(Mov), R(closure), R(4),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kDeclareModuleExports), R(3), U8(2),
|
2019-01-31 15:36:58 +00:00
|
|
|
B(Ldar), R(0),
|
2020-02-03 19:04:44 +00:00
|
|
|
/* 0 E> */ B(SuspendGenerator), R(0), R(0), U8(3), U8(0),
|
|
|
|
B(ResumeGenerator), R(0), R(0), U8(3),
|
|
|
|
B(Star), R(3),
|
2019-01-31 15:36:58 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
|
2017-06-05 13:23:20 +00:00
|
|
|
B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Ldar), R(3),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 0 E> */ B(Throw),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Ldar), R(3),
|
2018-06-12 21:57:52 +00:00
|
|
|
/* 50 S> */ B(Return),
|
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-07-27 12:45:00 +00:00
|
|
|
B(Inc), U8(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 24 E> */ B(StaModuleVariable), I8(1), U8(0),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 34 S> */ B(LdaUndefined),
|
2019-01-31 15:36:58 +00:00
|
|
|
B(Star), R(2),
|
2017-12-07 09:45:45 +00:00
|
|
|
/* 39 S> */ B(LdaModuleVariable), I8(1), U8(0),
|
2017-10-12 00:50:06 +00:00
|
|
|
B(ToNumeric), U8(1),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Star), R(3),
|
2017-07-27 12:45:00 +00:00
|
|
|
B(Inc), U8(1),
|
2017-12-07 09:45:45 +00:00
|
|
|
/* 42 E> */ B(StaModuleVariable), I8(1), U8(0),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Mov), R(3), R(1),
|
2019-01-31 15:36:58 +00:00
|
|
|
B(Ldar), R(1),
|
2018-06-12 21:57:52 +00:00
|
|
|
/* 50 S> */ B(Return),
|
2016-10-04 18:42:13 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2020-02-03 19:04:44 +00:00
|
|
|
Smi [35],
|
|
|
|
FIXED_ARRAY_TYPE,
|
2017-06-05 19:54:14 +00:00
|
|
|
Smi [10],
|
2017-06-05 13:23:20 +00:00
|
|
|
Smi [7],
|
2016-10-04 18:42:13 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
export const foo = 42;
|
|
|
|
foo++;
|
|
|
|
{ let x; { foo++ } };
|
|
|
|
"
|
2020-02-03 19:04:44 +00:00
|
|
|
frame size: 5
|
|
|
|
parameter count: 1
|
2020-02-10 16:09:27 +00:00
|
|
|
bytecode array length: 93
|
2016-10-04 18:42:13 +00:00
|
|
|
bytecodes: [
|
2019-01-31 15:36:58 +00:00
|
|
|
B(SwitchOnGeneratorState), R(0), U8(0), U8(1),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Mov), R(closure), R(3),
|
|
|
|
B(Mov), R(this), R(4),
|
2020-02-10 16:09:27 +00:00
|
|
|
/* 0 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(3), U8(2),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Star), R(0),
|
2017-05-15 16:31:05 +00:00
|
|
|
B(LdaConstant), U8(1),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Star), R(3),
|
2018-05-02 13:57:26 +00:00
|
|
|
B(Mov), R(closure), R(4),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kDeclareModuleExports), R(3), U8(2),
|
2019-01-31 15:36:58 +00:00
|
|
|
B(Ldar), R(0),
|
2020-02-03 19:04:44 +00:00
|
|
|
/* 0 E> */ B(SuspendGenerator), R(0), R(0), U8(3), U8(0),
|
|
|
|
B(ResumeGenerator), R(0), R(0), U8(3),
|
|
|
|
B(Star), R(3),
|
2019-01-31 15:36:58 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
|
2017-06-05 13:23:20 +00:00
|
|
|
B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Ldar), R(3),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 0 E> */ B(Throw),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Ldar), R(3),
|
2018-06-12 21:57:52 +00:00
|
|
|
/* 52 S> */ B(Return),
|
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-07-27 12:45:00 +00:00
|
|
|
B(Inc), U8(0),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 26 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0),
|
|
|
|
/* 36 S> */ B(LdaUndefined),
|
2019-01-31 15:36:58 +00:00
|
|
|
B(Star), R(2),
|
2017-12-07 09:45:45 +00:00
|
|
|
/* 41 S> */ B(LdaModuleVariable), I8(1), U8(0),
|
2017-10-12 00:50:06 +00:00
|
|
|
B(ToNumeric), U8(1),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Star), R(3),
|
2017-07-27 12:45:00 +00:00
|
|
|
B(Inc), U8(1),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 44 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Mov), R(3), R(1),
|
2019-01-31 15:36:58 +00:00
|
|
|
B(Ldar), R(1),
|
2018-06-12 21:57:52 +00:00
|
|
|
/* 52 S> */ B(Return),
|
2016-10-04 18:42:13 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2020-02-03 19:04:44 +00:00
|
|
|
Smi [35],
|
|
|
|
FIXED_ARRAY_TYPE,
|
2017-06-05 19:54:14 +00:00
|
|
|
Smi [10],
|
2017-06-05 13:23:20 +00:00
|
|
|
Smi [7],
|
2016-10-04 18:42:13 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
export default (function () {});
|
|
|
|
"
|
2020-02-03 19:04:44 +00:00
|
|
|
frame size: 4
|
|
|
|
parameter count: 1
|
2020-02-10 16:09:27 +00:00
|
|
|
bytecode array length: 68
|
2016-10-04 18:42:13 +00:00
|
|
|
bytecodes: [
|
2018-01-23 13:51:38 +00:00
|
|
|
B(SwitchOnGeneratorState), R(0), U8(0), U8(1),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Mov), R(closure), R(2),
|
|
|
|
B(Mov), R(this), R(3),
|
2020-02-10 16:09:27 +00:00
|
|
|
/* 0 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(2), U8(2),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Star), R(0),
|
2017-12-12 14:08:14 +00:00
|
|
|
B(LdaConstant), U8(1),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Star), R(2),
|
2018-05-02 13:57:26 +00:00
|
|
|
B(Mov), R(closure), R(3),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kDeclareModuleExports), R(2), U8(2),
|
2017-12-07 09:45:45 +00:00
|
|
|
B(Ldar), R(0),
|
2020-02-03 19:04:44 +00:00
|
|
|
/* 0 E> */ B(SuspendGenerator), R(0), R(0), U8(2), U8(0),
|
|
|
|
B(ResumeGenerator), R(0), R(0), U8(2),
|
|
|
|
B(Star), R(2),
|
2017-12-07 09:45:45 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
|
2017-06-05 13:23:20 +00:00
|
|
|
B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Ldar), R(2),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 0 E> */ B(Throw),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Ldar), R(2),
|
2018-06-12 21:57:52 +00:00
|
|
|
/* 33 S> */ B(Return),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Mov), R(2), R(1),
|
2017-07-27 12:45:00 +00:00
|
|
|
B(CreateClosure), U8(4), U8(0), U8(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(StaModuleVariable), I8(1), U8(0),
|
2017-12-07 09:45:45 +00:00
|
|
|
B(Ldar), R(1),
|
2018-06-12 21:57:52 +00:00
|
|
|
/* 33 S> */ B(Return),
|
2016-10-04 18:42:13 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2020-02-03 19:04:44 +00:00
|
|
|
Smi [35],
|
|
|
|
FIXED_ARRAY_TYPE,
|
2017-06-05 19:54:14 +00:00
|
|
|
Smi [10],
|
2017-06-05 13:23:20 +00:00
|
|
|
Smi [7],
|
2016-10-04 18:42:13 +00:00
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
export default (class {});
|
|
|
|
"
|
2020-02-03 19:04:44 +00:00
|
|
|
frame size: 6
|
|
|
|
parameter count: 1
|
2020-02-10 16:09:27 +00:00
|
|
|
bytecode array length: 89
|
2016-10-04 18:42:13 +00:00
|
|
|
bytecodes: [
|
2018-01-23 13:51:38 +00:00
|
|
|
B(SwitchOnGeneratorState), R(0), U8(0), U8(1),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Mov), R(closure), R(2),
|
|
|
|
B(Mov), R(this), R(3),
|
2020-02-10 16:09:27 +00:00
|
|
|
/* 0 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(2), U8(2),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Star), R(0),
|
2017-12-12 14:08:14 +00:00
|
|
|
B(LdaConstant), U8(1),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Star), R(2),
|
2018-05-02 13:57:26 +00:00
|
|
|
B(Mov), R(closure), R(3),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kDeclareModuleExports), R(2), U8(2),
|
2017-12-07 09:45:45 +00:00
|
|
|
B(Ldar), R(0),
|
2020-02-03 19:04:44 +00:00
|
|
|
/* 0 E> */ B(SuspendGenerator), R(0), R(0), U8(2), U8(0),
|
|
|
|
B(ResumeGenerator), R(0), R(0), U8(2),
|
|
|
|
B(Star), R(2),
|
2017-12-07 09:45:45 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
|
2017-06-05 13:23:20 +00:00
|
|
|
B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Ldar), R(2),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 0 E> */ B(Throw),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Ldar), R(2),
|
2018-06-12 21:57:52 +00:00
|
|
|
/* 27 S> */ B(Return),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Mov), R(2), R(1),
|
2017-06-02 11:55:48 +00:00
|
|
|
B(LdaTheHole),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Star), R(5),
|
2017-11-16 16:45:46 +00:00
|
|
|
B(CreateClosure), U8(5), U8(0), U8(0),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Star), R(2),
|
2017-12-07 09:45:45 +00:00
|
|
|
B(LdaConstant), U8(4),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Star), R(3),
|
|
|
|
B(Mov), R(2), R(4),
|
|
|
|
B(CallRuntime), U16(Runtime::kDefineClass), R(3), U8(3),
|
|
|
|
B(Star), R(3),
|
|
|
|
B(Ldar), R(4),
|
2017-05-04 17:00:44 +00:00
|
|
|
B(StaModuleVariable), I8(1), U8(0),
|
2017-12-07 09:45:45 +00:00
|
|
|
B(Ldar), R(1),
|
2018-06-12 21:57:52 +00:00
|
|
|
/* 27 S> */ B(Return),
|
2016-10-04 18:42:13 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2020-02-03 19:04:44 +00:00
|
|
|
Smi [35],
|
|
|
|
FIXED_ARRAY_TYPE,
|
2017-06-05 19:54:14 +00:00
|
|
|
Smi [10],
|
2017-06-05 13:23:20 +00:00
|
|
|
Smi [7],
|
2017-11-16 16:45:46 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
2016-10-04 18:42:13 +00:00
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
export {foo as goo} from \"bar\"
|
|
|
|
"
|
2020-02-03 19:04:44 +00:00
|
|
|
frame size: 4
|
|
|
|
parameter count: 1
|
2020-02-10 16:09:27 +00:00
|
|
|
bytecode array length: 47
|
2016-10-04 18:42:13 +00:00
|
|
|
bytecodes: [
|
2018-01-23 13:51:38 +00:00
|
|
|
B(SwitchOnGeneratorState), R(0), U8(0), U8(1),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Mov), R(closure), R(2),
|
|
|
|
B(Mov), R(this), R(3),
|
2020-02-10 16:09:27 +00:00
|
|
|
/* 0 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(2), U8(2),
|
2017-12-07 09:45:45 +00:00
|
|
|
B(Star), R(0),
|
2020-02-03 19:04:44 +00:00
|
|
|
/* 0 E> */ B(SuspendGenerator), R(0), R(0), U8(2), U8(0),
|
|
|
|
B(ResumeGenerator), R(0), R(0), U8(2),
|
|
|
|
B(Star), R(2),
|
2017-12-07 09:45:45 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(SwitchOnSmiNoFeedback), U8(1), U8(2), I8(0),
|
|
|
|
B(Ldar), R(2),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 0 E> */ B(Throw),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Ldar), R(2),
|
2018-06-12 21:57:52 +00:00
|
|
|
/* 31 S> */ B(Return),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Mov), R(2), R(1),
|
2017-12-07 09:45:45 +00:00
|
|
|
B(Ldar), R(1),
|
2018-06-12 21:57:52 +00:00
|
|
|
/* 31 S> */ B(Return),
|
2016-10-04 18:42:13 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2020-02-03 19:04:44 +00:00
|
|
|
Smi [21],
|
2017-06-05 19:54:14 +00:00
|
|
|
Smi [10],
|
2017-06-05 13:23:20 +00:00
|
|
|
Smi [7],
|
2016-10-04 18:42:13 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
export * from \"bar\"
|
|
|
|
"
|
2020-02-03 19:04:44 +00:00
|
|
|
frame size: 4
|
|
|
|
parameter count: 1
|
2020-02-10 16:09:27 +00:00
|
|
|
bytecode array length: 47
|
2016-10-04 18:42:13 +00:00
|
|
|
bytecodes: [
|
2018-01-23 13:51:38 +00:00
|
|
|
B(SwitchOnGeneratorState), R(0), U8(0), U8(1),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Mov), R(closure), R(2),
|
|
|
|
B(Mov), R(this), R(3),
|
2020-02-10 16:09:27 +00:00
|
|
|
/* 0 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(2), U8(2),
|
2017-12-07 09:45:45 +00:00
|
|
|
B(Star), R(0),
|
2020-02-03 19:04:44 +00:00
|
|
|
/* 0 E> */ B(SuspendGenerator), R(0), R(0), U8(2), U8(0),
|
|
|
|
B(ResumeGenerator), R(0), R(0), U8(2),
|
|
|
|
B(Star), R(2),
|
2017-12-07 09:45:45 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(SwitchOnSmiNoFeedback), U8(1), U8(2), I8(0),
|
|
|
|
B(Ldar), R(2),
|
2016-10-04 18:42:13 +00:00
|
|
|
/* 0 E> */ B(Throw),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Ldar), R(2),
|
2018-06-12 21:57:52 +00:00
|
|
|
/* 20 S> */ B(Return),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Mov), R(2), R(1),
|
2017-12-07 09:45:45 +00:00
|
|
|
B(Ldar), R(1),
|
2018-06-12 21:57:52 +00:00
|
|
|
/* 20 S> */ B(Return),
|
2016-10-04 18:42:13 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2020-02-03 19:04:44 +00:00
|
|
|
Smi [21],
|
2017-06-05 19:54:14 +00:00
|
|
|
Smi [10],
|
2017-06-05 13:23:20 +00:00
|
|
|
Smi [7],
|
2016-10-04 18:42:13 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
2016-11-02 09:30:24 +00:00
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
import * as foo from \"bar\"
|
|
|
|
foo.f(foo, foo.x);
|
|
|
|
"
|
2020-02-03 19:04:44 +00:00
|
|
|
frame size: 7
|
|
|
|
parameter count: 1
|
2020-02-10 16:09:27 +00:00
|
|
|
bytecode array length: 74
|
2016-11-02 09:30:24 +00:00
|
|
|
bytecodes: [
|
2018-01-23 13:51:38 +00:00
|
|
|
B(SwitchOnGeneratorState), R(0), U8(0), U8(1),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Mov), R(closure), R(3),
|
|
|
|
B(Mov), R(this), R(4),
|
2020-02-10 16:09:27 +00:00
|
|
|
/* 0 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(3), U8(2),
|
2017-12-07 09:45:45 +00:00
|
|
|
B(Star), R(0),
|
2017-12-12 14:08:14 +00:00
|
|
|
B(LdaZero),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Star), R(3),
|
|
|
|
B(CallRuntime), U16(Runtime::kGetModuleNamespace), R(3), U8(1),
|
2017-12-07 09:45:45 +00:00
|
|
|
B(Star), R(1),
|
|
|
|
B(Ldar), R(0),
|
2020-02-03 19:04:44 +00:00
|
|
|
/* 0 E> */ B(SuspendGenerator), R(0), R(0), U8(3), U8(0),
|
|
|
|
B(ResumeGenerator), R(0), R(0), U8(3),
|
|
|
|
B(Star), R(3),
|
2017-12-07 09:45:45 +00:00
|
|
|
B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(0), U8(1),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(SwitchOnSmiNoFeedback), U8(1), U8(2), I8(0),
|
|
|
|
B(Ldar), R(3),
|
2016-11-02 09:30:24 +00:00
|
|
|
/* 0 E> */ B(Throw),
|
2020-02-03 19:04:44 +00:00
|
|
|
B(Ldar), R(3),
|
2018-06-12 21:57:52 +00:00
|
|
|
/* 46 S> */ B(Return),
|
2020-02-03 19:04:44 +00:00
|
|
|
/* 31 S> */ B(LdaNamedProperty), R(1), U8(3), U8(0),
|
|
|
|
B(Star), R(3),
|
|
|
|
/* 42 E> */ B(LdaNamedProperty), R(1), U8(4), U8(2),
|
|
|
|
B(Star), R(6),
|
|
|
|
/* 31 E> */ B(CallProperty2), R(3), R(1), R(1), R(6), U8(4),
|
2017-12-07 09:45:45 +00:00
|
|
|
B(Star), R(2),
|
2018-06-12 21:57:52 +00:00
|
|
|
/* 46 S> */ B(Return),
|
2016-11-02 09:30:24 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2020-02-03 19:04:44 +00:00
|
|
|
Smi [33],
|
2017-06-05 19:54:14 +00:00
|
|
|
Smi [10],
|
2017-06-05 13:23:20 +00:00
|
|
|
Smi [7],
|
2016-11-02 09:30:24 +00:00
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["f"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|