2017-11-27 09:56:36 +00:00
|
|
|
#
|
|
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
wrap: yes
|
2017-11-28 09:42:57 +00:00
|
|
|
public fields: yes
|
2017-11-27 09:56:36 +00:00
|
|
|
|
2017-11-28 12:27:07 +00:00
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
{
|
|
|
|
class A {
|
|
|
|
a;
|
|
|
|
['b'];
|
|
|
|
}
|
|
|
|
|
|
|
|
class B {
|
|
|
|
a = 1;
|
|
|
|
['b'] = this.a;
|
|
|
|
}
|
|
|
|
new A;
|
|
|
|
new B;
|
|
|
|
}
|
|
|
|
"
|
2017-12-21 17:58:28 +00:00
|
|
|
frame size: 10
|
2017-11-28 12:27:07 +00:00
|
|
|
parameter count: 1
|
2017-12-21 17:58:28 +00:00
|
|
|
bytecode array length: 129
|
2017-11-28 12:27:07 +00:00
|
|
|
bytecodes: [
|
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
B(Ldar), R(closure),
|
|
|
|
B(CreateBlockContext), U8(0),
|
|
|
|
B(PushContext), R(4),
|
|
|
|
B(LdaTheHole),
|
|
|
|
B(StaCurrentContextSlot), U8(4),
|
|
|
|
B(LdaTheHole),
|
|
|
|
B(Star), R(8),
|
|
|
|
B(CreateClosure), U8(2), U8(0), U8(2),
|
|
|
|
B(Star), R(5),
|
|
|
|
B(LdaConstant), U8(1),
|
|
|
|
B(Star), R(6),
|
|
|
|
B(LdaConstant), U8(3),
|
|
|
|
B(StaCurrentContextSlot), U8(4),
|
|
|
|
B(Star), R(9),
|
|
|
|
B(Mov), R(5), R(7),
|
2017-12-21 17:58:28 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kDefineClass), R(6), U8(4),
|
2017-11-28 12:27:07 +00:00
|
|
|
B(Star), R(6),
|
2017-12-21 17:58:28 +00:00
|
|
|
B(Mov), R(7), R(1),
|
|
|
|
B(CreateClosure), U8(4), U8(1), U8(2),
|
2017-11-28 12:27:07 +00:00
|
|
|
B(Star), R(7),
|
2017-12-21 17:58:28 +00:00
|
|
|
B(StaNamedProperty), R(5), U8(5), U8(2),
|
2017-11-28 12:27:07 +00:00
|
|
|
B(PopContext), R(4),
|
|
|
|
B(Mov), R(1), R(2),
|
|
|
|
B(Ldar), R(closure),
|
2017-12-21 17:58:28 +00:00
|
|
|
/* 38 E> */ B(CreateBlockContext), U8(6),
|
2017-11-28 12:27:07 +00:00
|
|
|
B(PushContext), R(4),
|
|
|
|
B(LdaTheHole),
|
|
|
|
B(StaCurrentContextSlot), U8(4),
|
|
|
|
B(LdaTheHole),
|
|
|
|
B(Star), R(8),
|
2017-12-21 17:58:28 +00:00
|
|
|
B(CreateClosure), U8(8), U8(4), U8(2),
|
2017-11-28 12:27:07 +00:00
|
|
|
B(Star), R(5),
|
2017-12-21 17:58:28 +00:00
|
|
|
B(LdaConstant), U8(7),
|
2017-11-28 12:27:07 +00:00
|
|
|
B(Star), R(6),
|
|
|
|
B(LdaConstant), U8(3),
|
|
|
|
B(StaCurrentContextSlot), U8(4),
|
|
|
|
B(Star), R(9),
|
|
|
|
B(Mov), R(5), R(7),
|
2017-12-21 17:58:28 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kDefineClass), R(6), U8(4),
|
2017-11-28 12:27:07 +00:00
|
|
|
B(Star), R(6),
|
2017-12-21 17:58:28 +00:00
|
|
|
B(Mov), R(7), R(0),
|
|
|
|
B(CreateClosure), U8(9), U8(5), U8(2),
|
2017-11-28 12:27:07 +00:00
|
|
|
B(Star), R(7),
|
2017-12-21 17:58:28 +00:00
|
|
|
B(StaNamedProperty), R(5), U8(5), U8(6),
|
2017-11-28 12:27:07 +00:00
|
|
|
B(PopContext), R(4),
|
|
|
|
B(Mov), R(0), R(3),
|
2017-12-21 17:58:28 +00:00
|
|
|
/* 120 S> */ B(Ldar), R(1),
|
|
|
|
/* 120 E> */ B(Construct), R(1), R(0), U8(0), U8(8),
|
|
|
|
/* 129 S> */ B(Ldar), R(0),
|
|
|
|
/* 129 E> */ B(Construct), R(0), R(0), U8(0), U8(10),
|
2017-11-28 12:27:07 +00:00
|
|
|
B(LdaUndefined),
|
2017-12-21 17:58:28 +00:00
|
|
|
/* 138 S> */ B(Return),
|
2017-11-28 12:27:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["b"],
|
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
|
|
|
SYMBOL_TYPE,
|
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
2017-11-27 09:56:36 +00:00
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
{
|
|
|
|
class A extends class {} {
|
|
|
|
a;
|
2017-11-28 12:27:07 +00:00
|
|
|
['b'];
|
2017-11-27 09:56:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class B extends class {} {
|
|
|
|
a = 1;
|
2017-11-28 12:27:07 +00:00
|
|
|
['b'] = this.a;
|
|
|
|
foo() { return 1; }
|
2017-11-27 09:56:36 +00:00
|
|
|
constructor() {
|
|
|
|
super();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-28 12:27:07 +00:00
|
|
|
class C extends B {
|
2017-11-27 09:56:36 +00:00
|
|
|
a = 1;
|
2017-11-28 12:27:07 +00:00
|
|
|
['b'] = this.a;
|
2017-11-27 09:56:36 +00:00
|
|
|
constructor() {
|
|
|
|
(() => super())();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
new A;
|
|
|
|
new B;
|
|
|
|
new C;
|
|
|
|
}
|
|
|
|
"
|
2017-11-28 12:27:07 +00:00
|
|
|
frame size: 15
|
2017-11-27 09:56:36 +00:00
|
|
|
parameter count: 1
|
2017-12-21 17:58:28 +00:00
|
|
|
bytecode array length: 244
|
2017-11-27 09:56:36 +00:00
|
|
|
bytecodes: [
|
|
|
|
/* 30 E> */ B(StackCheck),
|
2017-11-28 12:27:07 +00:00
|
|
|
B(Ldar), R(closure),
|
|
|
|
B(CreateBlockContext), U8(0),
|
|
|
|
B(PushContext), R(6),
|
2017-11-27 09:56:36 +00:00
|
|
|
B(LdaTheHole),
|
2017-11-28 12:27:07 +00:00
|
|
|
B(StaCurrentContextSlot), U8(4),
|
|
|
|
B(LdaTheHole),
|
|
|
|
B(Star), R(14),
|
|
|
|
B(CreateClosure), U8(3), U8(0), U8(2),
|
2017-11-27 16:19:28 +00:00
|
|
|
B(Star), R(11),
|
2017-11-28 12:27:07 +00:00
|
|
|
B(LdaConstant), U8(2),
|
|
|
|
B(Star), R(12),
|
|
|
|
B(Mov), R(11), R(13),
|
|
|
|
B(CallRuntime), U16(Runtime::kDefineClass), R(12), U8(3),
|
|
|
|
B(Star), R(12),
|
|
|
|
B(CreateClosure), U8(4), U8(1), U8(2),
|
2017-11-27 09:56:36 +00:00
|
|
|
B(Star), R(7),
|
2017-11-28 12:27:07 +00:00
|
|
|
B(LdaConstant), U8(1),
|
2017-11-27 16:19:28 +00:00
|
|
|
B(Star), R(8),
|
2017-11-28 12:27:07 +00:00
|
|
|
B(LdaConstant), U8(5),
|
|
|
|
B(StaCurrentContextSlot), U8(4),
|
|
|
|
B(Star), R(11),
|
|
|
|
B(Mov), R(7), R(9),
|
2017-12-21 17:58:28 +00:00
|
|
|
B(Mov), R(13), R(10),
|
|
|
|
B(CallRuntime), U16(Runtime::kDefineClass), R(8), U8(4),
|
2017-11-28 12:27:07 +00:00
|
|
|
B(Star), R(8),
|
2017-12-21 17:58:28 +00:00
|
|
|
B(Mov), R(9), R(2),
|
|
|
|
B(CreateClosure), U8(6), U8(2), U8(2),
|
2017-11-28 12:27:07 +00:00
|
|
|
B(Star), R(9),
|
2017-12-21 17:58:28 +00:00
|
|
|
B(StaNamedProperty), R(7), U8(7), U8(3),
|
2017-11-28 12:27:07 +00:00
|
|
|
B(PopContext), R(6),
|
2017-11-27 09:56:36 +00:00
|
|
|
B(Mov), R(2), R(3),
|
2017-11-28 12:27:07 +00:00
|
|
|
B(Ldar), R(closure),
|
2017-12-21 17:58:28 +00:00
|
|
|
/* 38 E> */ B(CreateBlockContext), U8(8),
|
2017-11-28 12:27:07 +00:00
|
|
|
B(PushContext), R(6),
|
2017-11-27 09:56:36 +00:00
|
|
|
B(LdaTheHole),
|
2017-11-28 12:27:07 +00:00
|
|
|
B(StaCurrentContextSlot), U8(4),
|
|
|
|
B(LdaTheHole),
|
|
|
|
B(Star), R(14),
|
2017-12-21 17:58:28 +00:00
|
|
|
B(CreateClosure), U8(11), U8(5), U8(2),
|
2017-11-27 16:19:28 +00:00
|
|
|
B(Star), R(11),
|
2017-12-21 17:58:28 +00:00
|
|
|
B(LdaConstant), U8(10),
|
2017-11-28 12:27:07 +00:00
|
|
|
B(Star), R(12),
|
|
|
|
B(Mov), R(11), R(13),
|
|
|
|
B(CallRuntime), U16(Runtime::kDefineClass), R(12), U8(3),
|
|
|
|
B(Star), R(12),
|
2017-12-21 17:58:28 +00:00
|
|
|
B(CreateClosure), U8(12), U8(6), U8(2),
|
2017-11-28 12:27:07 +00:00
|
|
|
B(Star), R(7),
|
2017-12-21 17:58:28 +00:00
|
|
|
B(LdaConstant), U8(9),
|
2017-11-28 12:27:07 +00:00
|
|
|
B(Star), R(8),
|
|
|
|
B(LdaConstant), U8(5),
|
|
|
|
B(StaCurrentContextSlot), U8(4),
|
2017-11-27 16:19:28 +00:00
|
|
|
B(Star), R(11),
|
2017-12-21 17:58:28 +00:00
|
|
|
B(CreateClosure), U8(13), U8(7), U8(2),
|
2017-11-28 12:27:07 +00:00
|
|
|
B(Star), R(12),
|
|
|
|
B(Mov), R(7), R(9),
|
|
|
|
B(Mov), R(13), R(10),
|
2017-12-21 17:58:28 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kDefineClass), R(8), U8(5),
|
2017-11-27 16:19:28 +00:00
|
|
|
B(Star), R(8),
|
2017-12-21 17:58:28 +00:00
|
|
|
B(Mov), R(9), R(1),
|
|
|
|
B(CreateClosure), U8(14), U8(8), U8(2),
|
2017-11-28 12:27:07 +00:00
|
|
|
B(Star), R(9),
|
2017-12-21 17:58:28 +00:00
|
|
|
B(StaNamedProperty), R(7), U8(7), U8(9),
|
2017-11-28 12:27:07 +00:00
|
|
|
B(PopContext), R(6),
|
2017-11-27 09:56:36 +00:00
|
|
|
B(Mov), R(1), R(4),
|
2017-11-28 12:27:07 +00:00
|
|
|
B(Ldar), R(closure),
|
2017-12-21 17:58:28 +00:00
|
|
|
/* 90 E> */ B(CreateBlockContext), U8(15),
|
2017-11-28 12:27:07 +00:00
|
|
|
B(PushContext), R(6),
|
2017-11-27 09:56:36 +00:00
|
|
|
B(LdaTheHole),
|
2017-11-28 12:27:07 +00:00
|
|
|
B(StaCurrentContextSlot), U8(4),
|
2017-12-21 17:58:28 +00:00
|
|
|
/* 236 E> */ B(CreateClosure), U8(17), U8(11), U8(2),
|
2017-11-27 16:19:28 +00:00
|
|
|
B(Star), R(7),
|
2017-12-21 17:58:28 +00:00
|
|
|
B(LdaConstant), U8(16),
|
2017-11-27 16:19:28 +00:00
|
|
|
B(Star), R(8),
|
2017-11-28 12:27:07 +00:00
|
|
|
B(LdaConstant), U8(5),
|
|
|
|
B(StaCurrentContextSlot), U8(4),
|
|
|
|
B(Star), R(11),
|
|
|
|
B(Mov), R(7), R(9),
|
2017-12-21 17:58:28 +00:00
|
|
|
B(Mov), R(1), R(10),
|
|
|
|
B(CallRuntime), U16(Runtime::kDefineClass), R(8), U8(4),
|
2017-11-28 12:27:07 +00:00
|
|
|
B(Star), R(8),
|
2017-12-21 17:58:28 +00:00
|
|
|
B(Mov), R(9), R(0),
|
|
|
|
B(CreateClosure), U8(18), U8(12), U8(2),
|
2017-11-28 12:27:07 +00:00
|
|
|
B(Star), R(9),
|
2017-12-21 17:58:28 +00:00
|
|
|
B(StaNamedProperty), R(7), U8(7), U8(13),
|
2017-11-28 12:27:07 +00:00
|
|
|
B(PopContext), R(6),
|
2017-11-27 09:56:36 +00:00
|
|
|
B(Mov), R(0), R(5),
|
2017-12-21 17:58:28 +00:00
|
|
|
/* 329 S> */ B(Ldar), R(2),
|
|
|
|
/* 329 E> */ B(Construct), R(2), R(0), U8(0), U8(15),
|
|
|
|
/* 338 S> */ B(Ldar), R(1),
|
|
|
|
/* 338 E> */ B(Construct), R(1), R(0), U8(0), U8(17),
|
|
|
|
/* 347 S> */ B(Ldar), R(0),
|
|
|
|
/* 347 E> */ B(Construct), R(0), R(0), U8(0), U8(19),
|
2017-11-27 09:56:36 +00:00
|
|
|
B(LdaUndefined),
|
2017-12-21 17:58:28 +00:00
|
|
|
/* 356 S> */ B(Return),
|
2017-11-27 09:56:36 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2017-11-28 12:27:07 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
2017-11-27 09:56:36 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
2017-11-28 12:27:07 +00:00
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["b"],
|
2017-11-27 09:56:36 +00:00
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
|
|
|
SYMBOL_TYPE,
|
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
FIXED_ARRAY_TYPE,
|
2017-11-28 12:27:07 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
2017-11-27 09:56:36 +00:00
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|