2016-03-16 14:41:05 +00:00
|
|
|
#
|
|
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
pool type: mixed
|
|
|
|
execute: yes
|
|
|
|
wrap: no
|
|
|
|
test function name: test
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var test;
|
|
|
|
(function() {
|
|
|
|
class A {
|
|
|
|
method() { return 2; }
|
|
|
|
}
|
|
|
|
class B extends A {
|
|
|
|
method() { return super.method() + 1; }
|
|
|
|
}
|
|
|
|
test = new B().method;
|
|
|
|
test();
|
|
|
|
})();
|
|
|
|
"
|
|
|
|
frame size: 7
|
|
|
|
parameter count: 1
|
2016-05-27 15:57:35 +00:00
|
|
|
bytecode array length: 55
|
2016-03-16 14:41:05 +00:00
|
|
|
bytecodes: [
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(closure), R(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 99 E> */ B(StackCheck),
|
2016-05-27 15:57:35 +00:00
|
|
|
/* 104 S> */ B(Nop),
|
2016-06-04 09:46:55 +00:00
|
|
|
/* 111 E> */ B(Mov), R(this), R(3),
|
|
|
|
B(Ldar), R(closure),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfNotHole), U8(11),
|
|
|
|
B(LdaConstant), U8(0),
|
|
|
|
B(Star), R(6),
|
|
|
|
B(CallRuntime), U16(Runtime::kThrowReferenceError), R(6), U8(1),
|
|
|
|
B(Star), R(6),
|
|
|
|
/* 111 E> */ B(LdaConstant), U8(1),
|
2016-05-25 09:55:26 +00:00
|
|
|
B(LdrKeyedProperty), R(6), U8(3), R(4),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaConstant), U8(2),
|
|
|
|
B(Star), R(5),
|
|
|
|
B(CallRuntime), U16(Runtime::kLoadFromSuper), R(3), U8(3),
|
|
|
|
B(Mov), R(3), R(2),
|
|
|
|
B(Star), R(1),
|
|
|
|
/* 117 E> */ B(Call), R(1), R(2), U8(1), U8(1),
|
|
|
|
B(Star), R(3),
|
|
|
|
B(LdaSmi), U8(1),
|
|
|
|
B(Add), R(3),
|
|
|
|
/* 131 S> */ B(Return),
|
2016-03-16 14:41:05 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
InstanceType::SYMBOL_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var test;
|
|
|
|
(function() {
|
|
|
|
class A {
|
|
|
|
get x() { return 1; }
|
|
|
|
set x(val) { return; }
|
|
|
|
}
|
|
|
|
class B extends A {
|
|
|
|
method() { super.x = 2; return super.x; }
|
|
|
|
}
|
|
|
|
test = new B().method;
|
|
|
|
test();
|
|
|
|
})();
|
|
|
|
"
|
|
|
|
frame size: 6
|
|
|
|
parameter count: 1
|
2016-05-27 15:57:35 +00:00
|
|
|
bytecode array length: 77
|
2016-03-16 14:41:05 +00:00
|
|
|
bytecodes: [
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(closure), R(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 125 E> */ B(StackCheck),
|
2016-05-27 15:57:35 +00:00
|
|
|
/* 130 S> */ B(Nop),
|
2016-06-04 09:46:55 +00:00
|
|
|
/* 130 E> */ B(Mov), R(this), R(1),
|
|
|
|
B(Ldar), R(closure),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfNotHole), U8(11),
|
|
|
|
B(LdaConstant), U8(0),
|
|
|
|
B(Star), R(5),
|
|
|
|
B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1),
|
|
|
|
B(Star), R(5),
|
|
|
|
/* 130 E> */ B(LdaConstant), U8(1),
|
2016-05-25 09:55:26 +00:00
|
|
|
B(LdrKeyedProperty), R(5), U8(1), R(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaConstant), U8(2),
|
|
|
|
B(Star), R(3),
|
|
|
|
B(LdaSmi), U8(2),
|
|
|
|
/* 138 E> */ B(Star), R(4),
|
|
|
|
B(CallRuntime), U16(Runtime::kStoreToSuper_Strict), R(1), U8(4),
|
2016-05-27 15:57:35 +00:00
|
|
|
/* 143 S> */ B(Nop),
|
2016-06-04 09:46:55 +00:00
|
|
|
/* 150 E> */ B(Mov), R(this), R(1),
|
|
|
|
B(Ldar), R(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfNotHole), U8(11),
|
|
|
|
B(LdaConstant), U8(0),
|
|
|
|
B(Star), R(4),
|
|
|
|
B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1),
|
|
|
|
B(Star), R(4),
|
|
|
|
/* 150 E> */ B(LdaConstant), U8(1),
|
2016-05-25 09:55:26 +00:00
|
|
|
B(LdrKeyedProperty), R(4), U8(3), R(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaConstant), U8(2),
|
|
|
|
B(Star), R(3),
|
|
|
|
B(CallRuntime), U16(Runtime::kLoadFromSuper), R(1), U8(3),
|
|
|
|
/* 159 S> */ B(Return),
|
2016-03-16 14:41:05 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
InstanceType::SYMBOL_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var test;
|
|
|
|
(function() {
|
|
|
|
class A {
|
|
|
|
constructor(x) { this.x_ = x; }
|
|
|
|
}
|
|
|
|
class B extends A {
|
|
|
|
constructor() { super(1); this.y_ = 2; }
|
|
|
|
}
|
|
|
|
test = new B().constructor;
|
|
|
|
})();
|
|
|
|
"
|
|
|
|
frame size: 5
|
|
|
|
parameter count: 1
|
2016-05-27 15:57:35 +00:00
|
|
|
bytecode array length: 105
|
2016-03-16 14:41:05 +00:00
|
|
|
bytecodes: [
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(closure), R(1),
|
|
|
|
B(Mov), R(new_target), R(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 113 E> */ B(StackCheck),
|
2016-05-27 15:57:35 +00:00
|
|
|
/* 118 S> */ B(Ldar), R(closure),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfNotHole), U8(11),
|
|
|
|
B(LdaConstant), U8(0),
|
|
|
|
B(Star), R(3),
|
|
|
|
B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
|
|
|
|
B(Star), R(2),
|
|
|
|
B(CallRuntime), U16(Runtime::k_GetSuperConstructor), R(2), U8(1),
|
|
|
|
B(Star), R(2),
|
|
|
|
B(LdaSmi), U8(1),
|
|
|
|
B(Star), R(3),
|
|
|
|
/* 118 E> */ B(Ldar), R(0),
|
|
|
|
B(JumpIfNotHole), U8(11),
|
|
|
|
B(LdaConstant), U8(1),
|
|
|
|
B(Star), R(4),
|
|
|
|
B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1),
|
|
|
|
/* 118 E> */ B(New), R(2), R(3), U8(1),
|
|
|
|
/* 118 E> */ B(Star), R(2),
|
|
|
|
B(Ldar), R(this),
|
|
|
|
B(JumpIfNotHole), U8(4),
|
|
|
|
B(Jump), U8(11),
|
|
|
|
B(LdaConstant), U8(2),
|
|
|
|
B(Star), R(3),
|
|
|
|
B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(2), R(this),
|
|
|
|
/* 128 S> */ B(Ldar), R(this),
|
|
|
|
B(JumpIfNotHole), U8(11),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaConstant), U8(2),
|
|
|
|
B(Star), R(2),
|
|
|
|
B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1),
|
|
|
|
B(Star), R(2),
|
|
|
|
B(LdaSmi), U8(2),
|
2016-05-25 10:45:14 +00:00
|
|
|
/* 136 E> */ B(StaNamedPropertyStrict), R(2), U8(3), U8(4),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Ldar), R(this),
|
|
|
|
B(JumpIfNotHole), U8(11),
|
|
|
|
B(LdaConstant), U8(2),
|
|
|
|
B(Star), R(2),
|
|
|
|
B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1),
|
|
|
|
/* 141 S> */ B(Return),
|
2016-03-16 14:41:05 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var test;
|
|
|
|
(function() {
|
|
|
|
class A {
|
|
|
|
constructor() { this.x_ = 1; }
|
|
|
|
}
|
|
|
|
class B extends A {
|
|
|
|
constructor() { super(); this.y_ = 2; }
|
|
|
|
}
|
|
|
|
test = new B().constructor;
|
|
|
|
})();
|
|
|
|
"
|
|
|
|
frame size: 4
|
|
|
|
parameter count: 1
|
2016-05-27 15:57:35 +00:00
|
|
|
bytecode array length: 101
|
2016-03-16 14:41:05 +00:00
|
|
|
bytecodes: [
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(closure), R(1),
|
|
|
|
B(Mov), R(new_target), R(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 112 E> */ B(StackCheck),
|
2016-05-27 15:57:35 +00:00
|
|
|
/* 117 S> */ B(Ldar), R(closure),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfNotHole), U8(11),
|
|
|
|
B(LdaConstant), U8(0),
|
|
|
|
B(Star), R(3),
|
|
|
|
B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
|
|
|
|
B(Star), R(2),
|
|
|
|
B(CallRuntime), U16(Runtime::k_GetSuperConstructor), R(2), U8(1),
|
|
|
|
B(Star), R(2),
|
|
|
|
/* 117 E> */ B(Ldar), R(0),
|
|
|
|
B(JumpIfNotHole), U8(11),
|
|
|
|
B(LdaConstant), U8(1),
|
|
|
|
B(Star), R(3),
|
|
|
|
B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
|
|
|
|
/* 117 E> */ B(New), R(2), R(0), U8(0),
|
|
|
|
/* 117 E> */ B(Star), R(2),
|
|
|
|
B(Ldar), R(this),
|
|
|
|
B(JumpIfNotHole), U8(4),
|
|
|
|
B(Jump), U8(11),
|
|
|
|
B(LdaConstant), U8(2),
|
|
|
|
B(Star), R(3),
|
|
|
|
B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(2), R(this),
|
|
|
|
/* 126 S> */ B(Ldar), R(this),
|
|
|
|
B(JumpIfNotHole), U8(11),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaConstant), U8(2),
|
|
|
|
B(Star), R(2),
|
|
|
|
B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1),
|
|
|
|
B(Star), R(2),
|
|
|
|
B(LdaSmi), U8(2),
|
2016-05-25 10:45:14 +00:00
|
|
|
/* 134 E> */ B(StaNamedPropertyStrict), R(2), U8(3), U8(4),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Ldar), R(this),
|
|
|
|
B(JumpIfNotHole), U8(11),
|
|
|
|
B(LdaConstant), U8(2),
|
|
|
|
B(Star), R(2),
|
|
|
|
B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1),
|
|
|
|
/* 139 S> */ B(Return),
|
2016-03-16 14:41:05 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|