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-01-05 07:30:01 +00:00
|
|
|
frame size: 9
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2017-01-09 15:31:00 +00:00
|
|
|
bytecode array length: 75
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaTheHole),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(Star), R(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
B(LdaTheHole),
|
|
|
|
B(Star), R(0),
|
2017-01-09 15:31:00 +00:00
|
|
|
/* 34 S> */ B(CreateClosure), U8(0), U8(2), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(3),
|
2017-01-04 19:15:26 +00:00
|
|
|
B(LdaTheHole),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(4),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(34),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(Star), R(6),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(Wide), B(LdaSmi), I16(148),
|
2017-01-04 19:15:26 +00:00
|
|
|
B(Star), R(7),
|
|
|
|
B(Mov), R(3), R(5),
|
|
|
|
B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4),
|
2016-11-09 13:16:01 +00:00
|
|
|
B(Star), R(4),
|
2017-01-04 19:15:26 +00:00
|
|
|
B(LdaConstant), U8(1),
|
2017-01-05 18:25:25 +00:00
|
|
|
B(Star), R(6),
|
2017-01-09 15:31:00 +00:00
|
|
|
B(CreateClosure), U8(2), U8(3), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(7),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(2),
|
2017-01-05 07:30:01 +00:00
|
|
|
B(Star), R(8),
|
|
|
|
B(Ldar), R(7),
|
2017-01-09 15:31:00 +00:00
|
|
|
B(StaDataPropertyInLiteral), R(4), R(6), U8(1), U8(4),
|
2016-12-07 10:34:15 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kInstallClassNameAccessor), R(3), U8(1),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(0),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(1),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(Star), R(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaUndefined),
|
|
|
|
/* 149 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["speak"],
|
|
|
|
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-01-05 07:30:01 +00:00
|
|
|
frame size: 9
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2017-01-09 15:31:00 +00:00
|
|
|
bytecode array length: 75
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaTheHole),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(Star), R(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
B(LdaTheHole),
|
|
|
|
B(Star), R(0),
|
2017-01-09 15:31:00 +00:00
|
|
|
/* 34 S> */ B(CreateClosure), U8(0), U8(2), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(3),
|
2017-01-04 19:15:26 +00:00
|
|
|
B(LdaTheHole),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(4),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(34),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(Star), R(6),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(Wide), B(LdaSmi), I16(148),
|
2017-01-04 19:15:26 +00:00
|
|
|
B(Star), R(7),
|
|
|
|
B(Mov), R(3), R(5),
|
|
|
|
B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4),
|
2016-11-09 13:16:01 +00:00
|
|
|
B(Star), R(4),
|
2017-01-04 19:15:26 +00:00
|
|
|
B(LdaConstant), U8(1),
|
2017-01-05 18:25:25 +00:00
|
|
|
B(Star), R(6),
|
2017-01-09 15:31:00 +00:00
|
|
|
B(CreateClosure), U8(2), U8(3), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(7),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(2),
|
2017-01-05 07:30:01 +00:00
|
|
|
B(Star), R(8),
|
|
|
|
B(Ldar), R(7),
|
2017-01-09 15:31:00 +00:00
|
|
|
B(StaDataPropertyInLiteral), R(4), R(6), U8(1), U8(4),
|
2016-12-07 10:34:15 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kInstallClassNameAccessor), R(3), U8(1),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(0),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(1),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(Star), R(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaUndefined),
|
|
|
|
/* 149 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["speak"],
|
|
|
|
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; }
|
|
|
|
}
|
|
|
|
"
|
2016-11-18 12:13:30 +00:00
|
|
|
frame size: 10
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2017-03-22 11:08:18 +00:00
|
|
|
bytecode array length: 116
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-08-03 14:41:47 +00:00
|
|
|
B(CreateFunctionContext), U8(2),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(PushContext), R(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaTheHole),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(Star), 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),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaTheHole),
|
|
|
|
B(Star), R(0),
|
2017-01-09 15:31:00 +00:00
|
|
|
/* 62 S> */ B(CreateClosure), U8(2), U8(2), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(4),
|
2017-01-04 19:15:26 +00:00
|
|
|
B(LdaTheHole),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(5),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(62),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(Star), R(7),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(Wide), B(LdaSmi), I16(128),
|
2017-01-04 19:15:26 +00:00
|
|
|
B(Star), R(8),
|
|
|
|
B(Mov), R(4), R(6),
|
|
|
|
B(CallRuntime), U16(Runtime::kDefineClass), R(5), U8(4),
|
2016-11-09 13:16:01 +00:00
|
|
|
B(Star), R(5),
|
2017-02-07 20:42:03 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
2016-11-10 10:41:48 +00:00
|
|
|
/* 75 E> */ B(ToName), R(7),
|
2017-01-09 15:31:00 +00:00
|
|
|
B(CreateClosure), U8(3), U8(3), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(8),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(9),
|
2017-01-05 07:30:01 +00:00
|
|
|
B(Ldar), R(8),
|
2017-01-09 15:31:00 +00:00
|
|
|
B(StaDataPropertyInLiteral), R(5), R(7), U8(3), U8(5),
|
2017-02-07 20:42:03 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(5),
|
2016-11-10 10:41:48 +00:00
|
|
|
/* 106 E> */ B(ToName), R(7),
|
2017-01-04 19:15:26 +00:00
|
|
|
B(LdaConstant), U8(4),
|
2017-03-22 11:08:18 +00:00
|
|
|
B(TestEqualStrictNoFeedback), R(7),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(Mov), R(4), R(6),
|
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-01-09 15:31:00 +00:00
|
|
|
B(CreateClosure), U8(5), U8(4), U8(2),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(Star), R(8),
|
2017-01-09 15:31:00 +00:00
|
|
|
B(StaDataPropertyInLiteral), R(6), R(7), U8(3), U8(7),
|
2016-12-07 10:34:15 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kInstallClassNameAccessorWithCheck), R(4), U8(1),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kToFastProperties), R(4), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(0),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(1),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(Star), R(2),
|
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"],
|
|
|
|
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-01-04 19:15:26 +00:00
|
|
|
frame size: 9
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2017-01-09 15:31:00 +00:00
|
|
|
bytecode array length: 64
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-08-03 14:41:47 +00:00
|
|
|
B(CreateFunctionContext), U8(1),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(PushContext), R(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaTheHole),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(Star), 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),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaTheHole),
|
|
|
|
B(Star), R(0),
|
2017-01-09 15:31:00 +00:00
|
|
|
/* 49 S> */ B(CreateClosure), U8(0), U8(2), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(4),
|
2017-01-04 19:15:26 +00:00
|
|
|
B(LdaTheHole),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(5),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(49),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(Star), R(7),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(86),
|
2017-01-04 19:15:26 +00:00
|
|
|
B(Star), R(8),
|
|
|
|
B(Mov), R(4), R(6),
|
|
|
|
B(CallRuntime), U16(Runtime::kDefineClass), R(5), U8(4),
|
2016-11-09 13:16:01 +00:00
|
|
|
B(Star), R(5),
|
2016-12-07 10:34:15 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kInstallClassNameAccessor), R(4), U8(1),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kToFastProperties), R(4), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(0),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(1),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(Star), R(2),
|
2016-10-20 17:31:36 +00:00
|
|
|
/* 87 S> */ B(Nop),
|
2017-02-01 09:04:04 +00:00
|
|
|
/* 94 E> */ B(Construct), R(2), R(0), U8(0), U8(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 103 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
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-01-05 07:30:01 +00:00
|
|
|
frame size: 10
|
2016-12-07 10:34:15 +00:00
|
|
|
parameter count: 1
|
2017-01-09 15:31:00 +00:00
|
|
|
bytecode array length: 102
|
2016-12-07 10:34:15 +00:00
|
|
|
bytecodes: [
|
|
|
|
B(LdaTheHole),
|
|
|
|
B(Star), R(3),
|
|
|
|
/* 30 E> */ B(StackCheck),
|
2017-01-09 15:31:00 +00:00
|
|
|
/* 35 S> */ B(CreateClosure), U8(0), U8(2), U8(2),
|
2016-12-07 10:34:15 +00:00
|
|
|
B(Star), R(4),
|
2017-01-04 19:15:26 +00:00
|
|
|
B(LdaTheHole),
|
2016-12-07 10:34:15 +00:00
|
|
|
B(Star), R(5),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(35),
|
2016-12-07 10:34:15 +00:00
|
|
|
B(Star), R(7),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(43),
|
2017-01-04 19:15:26 +00:00
|
|
|
B(Star), R(8),
|
|
|
|
B(Mov), R(4), R(6),
|
|
|
|
B(CallRuntime), U16(Runtime::kDefineClass), R(5), U8(4),
|
2016-12-07 10:34:15 +00:00
|
|
|
B(Star), R(5),
|
|
|
|
B(CallRuntime), U16(Runtime::kToFastProperties), R(4), U8(1),
|
|
|
|
B(Star), R(1),
|
|
|
|
B(LdaTheHole),
|
|
|
|
B(Star), R(0),
|
2017-01-09 15:31:00 +00:00
|
|
|
/* 45 S> */ B(CreateClosure), U8(1), U8(3), U8(2),
|
2016-12-07 10:34:15 +00:00
|
|
|
B(Star), R(4),
|
2017-01-04 19:15:26 +00:00
|
|
|
B(LdaTheHole),
|
2016-12-07 10:34:15 +00:00
|
|
|
B(Star), R(5),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(45),
|
2016-12-07 10:34:15 +00:00
|
|
|
B(Star), R(7),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(73),
|
2017-01-04 19:15:26 +00:00
|
|
|
B(Star), R(8),
|
|
|
|
B(Mov), R(4), R(6),
|
|
|
|
B(CallRuntime), U16(Runtime::kDefineClass), R(5), U8(4),
|
2016-12-07 10:34:15 +00:00
|
|
|
B(Star), R(5),
|
2017-01-04 19:15:26 +00:00
|
|
|
B(LdaConstant), U8(2),
|
2017-01-05 18:25:25 +00:00
|
|
|
B(Star), R(7),
|
2017-01-09 15:31:00 +00:00
|
|
|
B(CreateClosure), U8(3), U8(4), U8(2),
|
2016-12-07 10:34:15 +00:00
|
|
|
B(Star), R(8),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(2),
|
2017-01-05 07:30:01 +00:00
|
|
|
B(Star), R(9),
|
|
|
|
B(Ldar), R(8),
|
2017-01-09 15:31:00 +00:00
|
|
|
B(StaDataPropertyInLiteral), R(6), R(7), U8(1), U8(5),
|
2016-12-07 10:34:15 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kToFastProperties), R(4), U8(1),
|
|
|
|
B(Star), R(0),
|
|
|
|
B(Star), R(2),
|
|
|
|
B(Star), R(3),
|
|
|
|
B(LdaUndefined),
|
|
|
|
/* 74 S> */ B(Return),
|
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"],
|
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|