2016-02-25 12:07:07 +00:00
|
|
|
#
|
|
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
execute: yes
|
|
|
|
wrap: yes
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
class Person {
|
|
|
|
constructor(name) { this.name = name; }
|
|
|
|
speak() { console.log(this.name + ' is speaking.'); }
|
|
|
|
}
|
|
|
|
"
|
2016-07-25 19:16:21 +00:00
|
|
|
frame size: 10
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-07-25 19:16:21 +00:00
|
|
|
bytecode array length: 74
|
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),
|
2016-07-25 19:16:21 +00:00
|
|
|
/* 34 S> */ B(LdaTheHole),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(3),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(CreateClosure), U8(0), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(4),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(LdaSmi), U8(34),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(5),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(Wide), B(LdaSmi), U16(148),
|
|
|
|
B(Star), R(6),
|
|
|
|
B(CallRuntime), U16(Runtime::kDefineClass), R(3), U8(4),
|
|
|
|
B(Star), R(3),
|
|
|
|
B(LdrNamedProperty), R(3), U8(1), U8(1), R(4),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaConstant), U8(2),
|
2016-08-11 15:11:31 +00:00
|
|
|
B(ToName), R(6),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(CreateClosure), U8(3), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(7),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(LdaSmi), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(8),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(9),
|
|
|
|
B(Mov), R(4), R(5),
|
|
|
|
B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(5), U8(5),
|
|
|
|
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 ["prototype"],
|
|
|
|
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.'); }
|
|
|
|
}
|
|
|
|
"
|
2016-07-25 19:16:21 +00:00
|
|
|
frame size: 10
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-07-25 19:16:21 +00:00
|
|
|
bytecode array length: 74
|
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),
|
2016-07-25 19:16:21 +00:00
|
|
|
/* 34 S> */ B(LdaTheHole),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(3),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(CreateClosure), U8(0), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(4),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(LdaSmi), U8(34),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(5),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(Wide), B(LdaSmi), U16(148),
|
|
|
|
B(Star), R(6),
|
|
|
|
B(CallRuntime), U16(Runtime::kDefineClass), R(3), U8(4),
|
|
|
|
B(Star), R(3),
|
|
|
|
B(LdrNamedProperty), R(3), U8(1), U8(1), R(4),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaConstant), U8(2),
|
2016-08-11 15:11:31 +00:00
|
|
|
B(ToName), R(6),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(CreateClosure), U8(3), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(7),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(LdaSmi), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(8),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(9),
|
|
|
|
B(Mov), R(4), R(5),
|
|
|
|
B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(5), U8(5),
|
|
|
|
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 ["prototype"],
|
|
|
|
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-07-25 19:16:21 +00:00
|
|
|
frame size: 11
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-09-13 11:09:00 +00:00
|
|
|
bytecode array length: 128
|
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-09-13 11:09:00 +00:00
|
|
|
/* 43 E> */ B(StaContextSlot), R(context), U8(4), U8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 57 S> */ B(LdaConstant), U8(1),
|
2016-09-13 11:09:00 +00:00
|
|
|
/* 57 E> */ B(StaContextSlot), R(context), U8(5), U8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaTheHole),
|
|
|
|
B(Star), R(0),
|
2016-07-25 19:16:21 +00:00
|
|
|
/* 62 S> */ B(LdaTheHole),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(4),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(CreateClosure), U8(2), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(5),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(LdaSmi), U8(62),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(6),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(Wide), B(LdaSmi), U16(128),
|
|
|
|
B(Star), R(7),
|
|
|
|
B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4),
|
|
|
|
B(Star), R(4),
|
|
|
|
B(LdrNamedProperty), R(4), U8(3), U8(1), R(5),
|
2016-09-13 11:09:00 +00:00
|
|
|
/* 75 E> */ B(LdaContextSlot), R(context), U8(4), U8(0),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(ToName), R(7),
|
2016-06-30 15:32:28 +00:00
|
|
|
B(CreateClosure), U8(4), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(8),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(LdaSmi), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(9),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(LdaSmi), U8(1),
|
|
|
|
B(Star), R(10),
|
|
|
|
B(Mov), R(5), R(6),
|
|
|
|
B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(6), U8(5),
|
2016-09-13 11:09:00 +00:00
|
|
|
/* 106 E> */ B(LdaContextSlot), R(context), U8(5), U8(0),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(ToName), R(7),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaConstant), U8(3),
|
2016-08-30 10:21:02 +00:00
|
|
|
B(TestEqualStrict), R(7), U8(0),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(Mov), R(4), R(6),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(JumpIfToBooleanFalse), U8(7),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kThrowStaticPrototypeError), R(0), U8(0),
|
2016-06-30 15:32:28 +00:00
|
|
|
B(CreateClosure), U8(5), U8(2),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(Star), R(8),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaSmi), U8(1),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(Star), R(10),
|
|
|
|
B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(6), U8(5),
|
|
|
|
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,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"],
|
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var count = 0;
|
|
|
|
class C { constructor() { count++; }}
|
|
|
|
return new C();
|
|
|
|
"
|
2016-07-25 19:16:21 +00:00
|
|
|
frame size: 8
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-09-13 11:09:00 +00:00
|
|
|
bytecode array length: 74
|
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-09-13 11:09:00 +00:00
|
|
|
/* 46 E> */ B(StaContextSlot), R(context), U8(4), U8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaTheHole),
|
|
|
|
B(Star), R(0),
|
2016-07-25 19:16:21 +00:00
|
|
|
/* 49 S> */ B(LdaTheHole),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(4),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(CreateClosure), U8(0), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(5),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(LdaSmi), U8(49),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(6),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(LdaSmi), U8(86),
|
|
|
|
B(Star), R(7),
|
|
|
|
B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4),
|
|
|
|
B(Star), R(4),
|
|
|
|
B(LdrNamedProperty), R(4), U8(1), U8(1), R(5),
|
|
|
|
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-05-11 12:21:56 +00:00
|
|
|
/* 87 S> */ B(JumpIfNotHole), U8(11),
|
|
|
|
B(LdaConstant), U8(2),
|
2016-07-25 19:16:21 +00:00
|
|
|
B(Star), R(5),
|
|
|
|
B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(4),
|
2016-09-02 08:26:36 +00:00
|
|
|
/* 94 E> */ B(New), R(4), 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,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["C"],
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|