2016-02-25 12:07:07 +00:00
|
|
|
#
|
|
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
wrap: yes
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
class Person {
|
|
|
|
constructor(name) { this.name = name; }
|
|
|
|
speak() { console.log(this.name + ' is speaking.'); }
|
|
|
|
}
|
|
|
|
"
|
2017-11-27 16:19:28 +00:00
|
|
|
frame size: 7
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2017-11-27 16:19:28 +00:00
|
|
|
bytecode array length: 38
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2017-01-04 19:15:26 +00:00
|
|
|
B(LdaTheHole),
|
2017-11-27 16:19:28 +00:00
|
|
|
B(Star), R(5),
|
2017-11-16 16:45:46 +00:00
|
|
|
B(CreateClosure), U8(1), U8(0), U8(2),
|
|
|
|
B(Star), R(2),
|
2017-11-27 16:19:28 +00:00
|
|
|
B(LdaConstant), U8(0),
|
|
|
|
B(Star), R(3),
|
2017-11-10 16:00:13 +00:00
|
|
|
B(CreateClosure), U8(2), U8(1), U8(2),
|
2017-11-27 16:19:28 +00:00
|
|
|
B(Star), R(6),
|
|
|
|
B(Mov), R(2), R(4),
|
|
|
|
B(CallRuntime), U16(Runtime::kDefineClass), R(3), U8(4),
|
|
|
|
B(Star), R(3),
|
|
|
|
B(Mov), R(4), R(0),
|
|
|
|
B(Mov), R(0), R(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaUndefined),
|
|
|
|
/* 149 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2017-11-16 16:45:46 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
2016-09-06 16:10:19 +00:00
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
class person {
|
|
|
|
constructor(name) { this.name = name; }
|
|
|
|
speak() { console.log(this.name + ' is speaking.'); }
|
|
|
|
}
|
|
|
|
"
|
2017-11-27 16:19:28 +00:00
|
|
|
frame size: 7
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2017-11-27 16:19:28 +00:00
|
|
|
bytecode array length: 38
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2017-01-04 19:15:26 +00:00
|
|
|
B(LdaTheHole),
|
2017-11-27 16:19:28 +00:00
|
|
|
B(Star), R(5),
|
2017-11-16 16:45:46 +00:00
|
|
|
B(CreateClosure), U8(1), U8(0), U8(2),
|
|
|
|
B(Star), R(2),
|
2017-11-27 16:19:28 +00:00
|
|
|
B(LdaConstant), U8(0),
|
|
|
|
B(Star), R(3),
|
2017-11-10 16:00:13 +00:00
|
|
|
B(CreateClosure), U8(2), U8(1), U8(2),
|
2017-11-27 16:19:28 +00:00
|
|
|
B(Star), R(6),
|
|
|
|
B(Mov), R(2), R(4),
|
|
|
|
B(CallRuntime), U16(Runtime::kDefineClass), R(3), U8(4),
|
|
|
|
B(Star), R(3),
|
|
|
|
B(Mov), R(4), R(0),
|
|
|
|
B(Mov), R(0), R(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaUndefined),
|
|
|
|
/* 149 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2017-11-16 16:45:46 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
2016-09-06 16:10:19 +00:00
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var n0 = 'a';
|
|
|
|
var n1 = 'b';
|
|
|
|
class N {
|
|
|
|
[n0]() { return n0; }
|
|
|
|
static [n1]() { return n1; }
|
|
|
|
}
|
|
|
|
"
|
2017-11-27 16:19:28 +00:00
|
|
|
frame size: 11
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2017-11-27 16:19:28 +00:00
|
|
|
bytecode array length: 75
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-08-03 14:41:47 +00:00
|
|
|
B(CreateFunctionContext), U8(2),
|
2017-05-04 17:00:44 +00:00
|
|
|
B(PushContext), R(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 43 S> */ B(LdaConstant), U8(0),
|
2016-10-28 10:10:32 +00:00
|
|
|
/* 43 E> */ B(StaCurrentContextSlot), U8(4),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 57 S> */ B(LdaConstant), U8(1),
|
2016-10-28 10:10:32 +00:00
|
|
|
/* 57 E> */ B(StaCurrentContextSlot), U8(5),
|
2017-01-04 19:15:26 +00:00
|
|
|
B(LdaTheHole),
|
2017-11-27 16:19:28 +00:00
|
|
|
B(Star), R(6),
|
2017-11-16 16:45:46 +00:00
|
|
|
B(CreateClosure), U8(3), U8(0), U8(2),
|
|
|
|
B(Star), R(3),
|
2017-11-27 16:19:28 +00:00
|
|
|
B(LdaConstant), U8(2),
|
|
|
|
B(Star), R(4),
|
2017-02-07 20:42:03 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
2017-11-27 16:19:28 +00:00
|
|
|
/* 75 E> */ B(ToName), R(7),
|
2017-11-16 16:45:46 +00:00
|
|
|
B(CreateClosure), U8(4), U8(1), U8(2),
|
2017-11-27 16:19:28 +00:00
|
|
|
B(Star), R(8),
|
2017-02-07 20:42:03 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(5),
|
2017-11-27 16:19:28 +00:00
|
|
|
/* 106 E> */ B(ToName), R(9),
|
2017-11-16 16:45:46 +00:00
|
|
|
B(LdaConstant), U8(5),
|
2017-11-27 16:19:28 +00:00
|
|
|
B(TestEqualStrictNoFeedback), R(9),
|
|
|
|
B(Mov), R(3), R(5),
|
2017-04-05 15:40:27 +00:00
|
|
|
B(JumpIfFalse), U8(7),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kThrowStaticPrototypeError), R(0), U8(0),
|
2017-11-16 16:45:46 +00:00
|
|
|
B(CreateClosure), U8(6), U8(2), U8(2),
|
2017-11-27 16:19:28 +00:00
|
|
|
B(Star), R(10),
|
|
|
|
B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(7),
|
|
|
|
B(Star), R(4),
|
|
|
|
B(Mov), R(3), R(0),
|
|
|
|
B(Mov), R(0), R(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaUndefined),
|
|
|
|
/* 129 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["b"],
|
2017-11-16 16:45:46 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
2016-09-06 16:10:19 +00:00
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
2017-01-04 19:15:26 +00:00
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"],
|
2016-09-06 16:10:19 +00:00
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var count = 0;
|
|
|
|
class C { constructor() { count++; }}
|
|
|
|
return new C();
|
|
|
|
"
|
2017-11-27 16:19:28 +00:00
|
|
|
frame size: 7
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2017-11-27 16:19:28 +00:00
|
|
|
bytecode array length: 45
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-08-03 14:41:47 +00:00
|
|
|
B(CreateFunctionContext), U8(1),
|
2017-05-04 17:00:44 +00:00
|
|
|
B(PushContext), R(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 46 S> */ B(LdaZero),
|
2016-10-28 10:10:32 +00:00
|
|
|
/* 46 E> */ B(StaCurrentContextSlot), U8(4),
|
2017-01-04 19:15:26 +00:00
|
|
|
B(LdaTheHole),
|
2017-11-27 16:19:28 +00:00
|
|
|
B(Star), R(6),
|
2017-11-16 16:45:46 +00:00
|
|
|
B(CreateClosure), U8(1), U8(0), U8(2),
|
|
|
|
B(Star), R(3),
|
2017-11-27 16:19:28 +00:00
|
|
|
B(LdaConstant), U8(0),
|
|
|
|
B(Star), R(4),
|
|
|
|
B(Mov), R(3), R(5),
|
|
|
|
B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(3),
|
|
|
|
B(Star), R(4),
|
|
|
|
B(Mov), R(5), R(0),
|
|
|
|
B(Mov), R(0), R(1),
|
|
|
|
/* 87 S> */ B(Ldar), R(1),
|
|
|
|
/* 94 E> */ B(Construct), R(3), R(0), U8(0), U8(1),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 102 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2017-11-16 16:45:46 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
2016-09-06 16:10:19 +00:00
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
2016-12-07 10:34:15 +00:00
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
(class {})
|
|
|
|
class E { static name () {}}
|
|
|
|
"
|
2017-11-27 16:19:28 +00:00
|
|
|
frame size: 7
|
2016-12-07 10:34:15 +00:00
|
|
|
parameter count: 1
|
2017-11-27 16:19:28 +00:00
|
|
|
bytecode array length: 61
|
2016-12-07 10:34:15 +00:00
|
|
|
bytecodes: [
|
|
|
|
/* 30 E> */ B(StackCheck),
|
2017-11-16 16:45:46 +00:00
|
|
|
/* 34 S> */ B(LdaTheHole),
|
2017-11-27 16:19:28 +00:00
|
|
|
B(Star), R(5),
|
2017-11-16 16:45:46 +00:00
|
|
|
B(CreateClosure), U8(1), U8(0), U8(2),
|
2017-05-04 17:00:44 +00:00
|
|
|
B(Star), R(2),
|
2017-11-27 16:19:28 +00:00
|
|
|
B(LdaConstant), U8(0),
|
|
|
|
B(Star), R(3),
|
|
|
|
B(Mov), R(2), R(4),
|
|
|
|
B(CallRuntime), U16(Runtime::kDefineClass), R(3), U8(3),
|
|
|
|
B(Star), R(3),
|
2017-01-04 19:15:26 +00:00
|
|
|
B(LdaTheHole),
|
2017-11-27 16:19:28 +00:00
|
|
|
B(Star), R(5),
|
2017-11-16 16:45:46 +00:00
|
|
|
B(CreateClosure), U8(3), U8(1), U8(2),
|
|
|
|
B(Star), R(2),
|
2017-11-27 16:19:28 +00:00
|
|
|
B(LdaConstant), U8(2),
|
|
|
|
B(Star), R(3),
|
2017-11-16 16:45:46 +00:00
|
|
|
B(CreateClosure), U8(4), U8(2), U8(2),
|
2017-11-27 16:19:28 +00:00
|
|
|
B(Star), R(6),
|
|
|
|
B(Mov), R(2), R(4),
|
|
|
|
B(CallRuntime), U16(Runtime::kDefineClass), R(3), U8(4),
|
|
|
|
B(Star), R(3),
|
|
|
|
B(Mov), R(4), R(0),
|
|
|
|
B(Mov), R(0), R(1),
|
2016-12-07 10:34:15 +00:00
|
|
|
B(LdaUndefined),
|
|
|
|
/* 74 S> */ B(Return),
|
|
|
|
]
|
|
|
|
constant pool: [
|
2017-11-16 16:45:46 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
2016-12-07 10:34:15 +00:00
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
2017-11-16 16:45:46 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
2016-12-07 10:34:15 +00:00
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|