2016-03-16 14:41:05 +00:00
|
|
|
#
|
|
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
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();
|
|
|
|
})();
|
|
|
|
"
|
2016-08-05 17:50:08 +00:00
|
|
|
frame size: 6
|
2016-03-16 14:41:05 +00:00
|
|
|
parameter count: 1
|
2017-04-11 14:20:30 +00:00
|
|
|
bytecode array length: 34
|
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-08-05 17:50:08 +00:00
|
|
|
/* 104 S> */ B(LdaConstant), U8(0),
|
2017-05-09 21:45:33 +00:00
|
|
|
/* 111 E> */ B(LdaKeyedProperty), R(closure), U8(5),
|
2016-11-09 13:16:01 +00:00
|
|
|
B(Star), R(4),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(LdaConstant), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(5),
|
2016-08-05 17:50:08 +00:00
|
|
|
B(Mov), R(this), R(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kLoadFromSuper), R(3), U8(3),
|
|
|
|
B(Star), R(1),
|
2017-05-09 21:45:33 +00:00
|
|
|
/* 117 E> */ B(CallAnyReceiver), R(1), R(this), U8(1), U8(3),
|
|
|
|
/* 126 E> */ B(AddSmi), I8(1), U8(9),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 131 S> */ B(Return),
|
2016-03-16 14:41:05 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
SYMBOL_TYPE,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["method"],
|
2016-03-16 14:41:05 +00:00
|
|
|
]
|
|
|
|
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();
|
|
|
|
})();
|
|
|
|
"
|
2016-08-05 17:50:08 +00:00
|
|
|
frame size: 5
|
2016-03-16 14:41:05 +00:00
|
|
|
parameter count: 1
|
2016-11-09 13:16:01 +00:00
|
|
|
bytecode array length: 47
|
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-08-05 17:50:08 +00:00
|
|
|
/* 130 S> */ B(LdaConstant), U8(0),
|
2017-05-09 21:45:33 +00:00
|
|
|
/* 130 E> */ B(LdaKeyedProperty), R(closure), U8(3),
|
2016-11-09 13:16:01 +00:00
|
|
|
B(Star), R(2),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(LdaConstant), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(3),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(2),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(4),
|
2016-08-05 17:50:08 +00:00
|
|
|
B(Mov), R(this), R(1),
|
2016-06-09 13:32:33 +00:00
|
|
|
/* 138 E> */ B(CallRuntime), U16(Runtime::kStoreToSuper_Strict), R(1), U8(4),
|
2016-08-05 17:50:08 +00:00
|
|
|
/* 143 S> */ B(LdaConstant), U8(0),
|
2017-05-09 21:45:33 +00:00
|
|
|
/* 150 E> */ B(LdaKeyedProperty), R(closure), U8(5),
|
2016-11-09 13:16:01 +00:00
|
|
|
B(Star), R(2),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(LdaConstant), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(3),
|
2016-08-05 17:50:08 +00:00
|
|
|
B(Mov), R(this), R(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kLoadFromSuper), R(1), U8(3),
|
|
|
|
/* 159 S> */ B(Return),
|
2016-03-16 14:41:05 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
SYMBOL_TYPE,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
|
2016-03-16 14:41:05 +00:00
|
|
|
]
|
|
|
|
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;
|
|
|
|
})();
|
|
|
|
"
|
2016-08-05 17:50:08 +00:00
|
|
|
frame size: 4
|
2016-03-16 14:41:05 +00:00
|
|
|
parameter count: 1
|
2017-03-27 19:30:07 +00:00
|
|
|
bytecode array length: 67
|
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-09-09 12:19:48 +00:00
|
|
|
B(Ldar), R(new_target),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 113 E> */ B(StackCheck),
|
2016-12-19 10:12:22 +00:00
|
|
|
/* 118 S> */ B(Ldar), R(1),
|
|
|
|
B(GetSuperConstructor), R(2),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(3),
|
2016-09-09 12:19:48 +00:00
|
|
|
B(Ldar), R(0),
|
2017-05-09 21:45:33 +00:00
|
|
|
/* 118 E> */ B(Construct), R(2), R(3), U8(1), U8(3),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Ldar), R(this),
|
|
|
|
B(JumpIfNotHole), U8(4),
|
2017-01-06 20:26:02 +00:00
|
|
|
B(Jump), U8(7),
|
|
|
|
/* 118 E> */ B(CallRuntime), U16(Runtime::kThrowSuperAlreadyCalledError), R(0), U8(0),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(2), R(this),
|
|
|
|
/* 128 S> */ B(Ldar), R(this),
|
2017-03-27 19:30:07 +00:00
|
|
|
B(JumpIfNotHole), U8(7),
|
|
|
|
B(CallRuntime), U16(Runtime::kThrowSuperNotCalled), R(0), U8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(2),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(2),
|
2017-05-09 21:45:33 +00:00
|
|
|
/* 136 E> */ B(StaNamedPropertyStrict), R(2), U8(0), U8(5),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Ldar), R(this),
|
2017-03-27 19:30:07 +00:00
|
|
|
B(JumpIfNotHole), U8(7),
|
|
|
|
B(CallRuntime), U16(Runtime::kThrowSuperNotCalled), R(0), U8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 141 S> */ B(Return),
|
2016-03-16 14:41:05 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["y_"],
|
2016-03-16 14:41:05 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var test;
|
|
|
|
(function() {
|
|
|
|
class A {
|
|
|
|
constructor() { this.x_ = 1; }
|
|
|
|
}
|
|
|
|
class B extends A {
|
|
|
|
constructor() { super(); this.y_ = 2; }
|
|
|
|
}
|
|
|
|
test = new B().constructor;
|
|
|
|
})();
|
|
|
|
"
|
2017-01-06 20:26:02 +00:00
|
|
|
frame size: 3
|
2016-03-16 14:41:05 +00:00
|
|
|
parameter count: 1
|
2017-03-27 19:30:07 +00:00
|
|
|
bytecode array length: 63
|
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-09-09 12:19:48 +00:00
|
|
|
B(Ldar), R(new_target),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 112 E> */ B(StackCheck),
|
2016-12-19 10:12:22 +00:00
|
|
|
/* 117 S> */ B(Ldar), R(1),
|
|
|
|
B(GetSuperConstructor), R(2),
|
2016-09-09 12:19:48 +00:00
|
|
|
B(Ldar), R(0),
|
2017-05-09 21:45:33 +00:00
|
|
|
/* 117 E> */ B(Construct), R(2), R(0), U8(0), U8(3),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Ldar), R(this),
|
|
|
|
B(JumpIfNotHole), U8(4),
|
2017-01-06 20:26:02 +00:00
|
|
|
B(Jump), U8(7),
|
|
|
|
/* 117 E> */ B(CallRuntime), U16(Runtime::kThrowSuperAlreadyCalledError), R(0), U8(0),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(2), R(this),
|
|
|
|
/* 126 S> */ B(Ldar), R(this),
|
2017-03-27 19:30:07 +00:00
|
|
|
B(JumpIfNotHole), U8(7),
|
|
|
|
B(CallRuntime), U16(Runtime::kThrowSuperNotCalled), R(0), U8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(2),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(2),
|
2017-05-09 21:45:33 +00:00
|
|
|
/* 134 E> */ B(StaNamedPropertyStrict), R(2), U8(0), U8(5),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Ldar), R(this),
|
2017-03-27 19:30:07 +00:00
|
|
|
B(JumpIfNotHole), U8(7),
|
|
|
|
B(CallRuntime), U16(Runtime::kThrowSuperNotCalled), R(0), U8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 139 S> */ B(Return),
|
2016-03-16 14:41:05 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["y_"],
|
2016-03-16 14:41:05 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|