2019-08-30 01:09:00 +00:00
|
|
|
#
|
|
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
wrap: no
|
|
|
|
test function name: test
|
|
|
|
private methods: yes
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
class A {
|
|
|
|
get #a() { return 1; }
|
|
|
|
set #a(val) { }
|
|
|
|
|
|
|
|
constructor() {
|
|
|
|
this.#a++;
|
|
|
|
this.#a = 1;
|
|
|
|
return this.#a;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var test = A;
|
|
|
|
new test;
|
|
|
|
"
|
2019-12-04 19:02:02 +00:00
|
|
|
frame size: 7
|
2019-08-30 01:09:00 +00:00
|
|
|
parameter count: 1
|
2020-02-10 16:09:27 +00:00
|
|
|
bytecode array length: 97
|
2019-08-30 01:09:00 +00:00
|
|
|
bytecodes: [
|
2020-05-08 06:52:01 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(3),
|
2019-08-30 01:09:00 +00:00
|
|
|
B(Star), R(1),
|
|
|
|
B(Mov), R(this), R(0),
|
2019-12-04 19:02:02 +00:00
|
|
|
B(Mov), R(context), R(2),
|
2020-02-10 16:09:27 +00:00
|
|
|
/* 67 E> */ B(CallRuntime), U16(Runtime::kAddPrivateBrand), R(0), U8(3),
|
2020-05-08 06:52:01 +00:00
|
|
|
/* 76 S> */ B(LdaImmutableCurrentContextSlot), U8(2),
|
2019-12-04 19:02:02 +00:00
|
|
|
B(Star), R(4),
|
2020-05-08 06:52:01 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(3),
|
2019-08-30 01:09:00 +00:00
|
|
|
/* 81 E> */ B(LdaKeyedProperty), R(this), U8(0),
|
2019-12-04 19:02:02 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kLoadPrivateGetter), R(4), U8(1),
|
|
|
|
B(Star), R(5),
|
|
|
|
B(CallProperty0), R(5), R(this), U8(2),
|
2019-08-30 01:09:00 +00:00
|
|
|
B(Inc), U8(4),
|
|
|
|
B(Star), R(5),
|
2019-12-04 19:02:02 +00:00
|
|
|
/* 83 E> */ B(CallRuntime), U16(Runtime::kLoadPrivateSetter), R(4), U8(1),
|
|
|
|
B(Star), R(6),
|
|
|
|
B(CallProperty1), R(6), R(this), R(5), U8(5),
|
2019-08-30 01:09:00 +00:00
|
|
|
/* 91 S> */ B(LdaSmi), I8(1),
|
2019-12-04 19:02:02 +00:00
|
|
|
B(Star), R(3),
|
2020-05-08 06:52:01 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(2),
|
2019-12-04 19:02:02 +00:00
|
|
|
B(Star), R(5),
|
2020-05-08 06:52:01 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(3),
|
2019-08-30 01:09:00 +00:00
|
|
|
/* 96 E> */ B(LdaKeyedProperty), R(this), U8(7),
|
2019-12-04 19:02:02 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kLoadPrivateSetter), R(5), U8(1),
|
|
|
|
B(Star), R(6),
|
|
|
|
B(CallProperty1), R(6), R(this), R(3), U8(9),
|
2020-05-08 06:52:01 +00:00
|
|
|
/* 108 S> */ B(LdaImmutableCurrentContextSlot), U8(2),
|
2019-12-04 19:02:02 +00:00
|
|
|
B(Star), R(4),
|
2020-05-08 06:52:01 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(3),
|
2019-08-30 01:09:00 +00:00
|
|
|
/* 120 E> */ B(LdaKeyedProperty), R(this), U8(11),
|
2019-12-04 19:02:02 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kLoadPrivateGetter), R(4), U8(1),
|
|
|
|
B(Star), R(5),
|
|
|
|
B(CallProperty0), R(5), R(this), U8(13),
|
2019-08-30 01:09:00 +00:00
|
|
|
/* 123 S> */ B(Return),
|
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
class B {
|
|
|
|
get #b() { return 1; }
|
|
|
|
constructor() { this.#b++; }
|
|
|
|
}
|
|
|
|
var test = B;
|
|
|
|
new test;
|
|
|
|
"
|
2019-12-04 19:02:02 +00:00
|
|
|
frame size: 5
|
2019-08-30 01:09:00 +00:00
|
|
|
parameter count: 1
|
2020-02-10 16:09:27 +00:00
|
|
|
bytecode array length: 31
|
2019-08-30 01:09:00 +00:00
|
|
|
bytecodes: [
|
2020-05-08 06:52:01 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(3),
|
2019-08-30 01:09:00 +00:00
|
|
|
B(Star), R(1),
|
|
|
|
B(Mov), R(this), R(0),
|
2019-12-04 19:02:02 +00:00
|
|
|
B(Mov), R(context), R(2),
|
2020-02-10 16:09:27 +00:00
|
|
|
/* 48 E> */ B(CallRuntime), U16(Runtime::kAddPrivateBrand), R(0), U8(3),
|
2020-10-17 01:27:26 +00:00
|
|
|
/* 53 S> */ B(Wide), B(LdaSmi), I16(270),
|
2019-08-30 01:09:00 +00:00
|
|
|
B(Star), R(3),
|
2019-12-04 19:02:02 +00:00
|
|
|
B(LdaConstant), U8(0),
|
|
|
|
B(Star), R(4),
|
|
|
|
B(CallRuntime), U16(Runtime::kNewTypeError), R(3), U8(2),
|
2019-08-30 01:09:00 +00:00
|
|
|
B(Throw),
|
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["#b"],
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
class C {
|
|
|
|
set #c(val) { }
|
|
|
|
constructor() { this.#c++; }
|
|
|
|
}
|
|
|
|
var test = C;
|
|
|
|
new test;
|
|
|
|
"
|
2019-12-04 19:02:02 +00:00
|
|
|
frame size: 5
|
2019-08-30 01:09:00 +00:00
|
|
|
parameter count: 1
|
2020-02-10 16:09:27 +00:00
|
|
|
bytecode array length: 31
|
2019-08-30 01:09:00 +00:00
|
|
|
bytecodes: [
|
2020-05-08 06:52:01 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(3),
|
2019-08-30 01:09:00 +00:00
|
|
|
B(Star), R(1),
|
|
|
|
B(Mov), R(this), R(0),
|
2019-12-04 19:02:02 +00:00
|
|
|
B(Mov), R(context), R(2),
|
2020-02-10 16:09:27 +00:00
|
|
|
/* 41 E> */ B(CallRuntime), U16(Runtime::kAddPrivateBrand), R(0), U8(3),
|
2020-10-17 01:27:26 +00:00
|
|
|
/* 46 S> */ B(Wide), B(LdaSmi), I16(269),
|
2019-08-30 01:09:00 +00:00
|
|
|
B(Star), R(3),
|
2019-12-04 19:02:02 +00:00
|
|
|
B(LdaConstant), U8(0),
|
|
|
|
B(Star), R(4),
|
|
|
|
B(CallRuntime), U16(Runtime::kNewTypeError), R(3), U8(2),
|
2019-08-30 01:09:00 +00:00
|
|
|
B(Throw),
|
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["#c"],
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
class D {
|
|
|
|
get #d() { return 1; }
|
|
|
|
constructor() { this.#d = 1; }
|
|
|
|
}
|
|
|
|
var test = D;
|
|
|
|
new test;
|
|
|
|
"
|
2019-12-04 19:02:02 +00:00
|
|
|
frame size: 5
|
2019-08-30 01:09:00 +00:00
|
|
|
parameter count: 1
|
2020-02-10 16:09:27 +00:00
|
|
|
bytecode array length: 31
|
2019-08-30 01:09:00 +00:00
|
|
|
bytecodes: [
|
2020-05-08 06:52:01 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(3),
|
2019-08-30 01:09:00 +00:00
|
|
|
B(Star), R(1),
|
|
|
|
B(Mov), R(this), R(0),
|
2019-12-04 19:02:02 +00:00
|
|
|
B(Mov), R(context), R(2),
|
2020-02-10 16:09:27 +00:00
|
|
|
/* 48 E> */ B(CallRuntime), U16(Runtime::kAddPrivateBrand), R(0), U8(3),
|
2020-10-17 01:27:26 +00:00
|
|
|
/* 53 S> */ B(Wide), B(LdaSmi), I16(270),
|
2019-08-30 01:09:00 +00:00
|
|
|
B(Star), R(3),
|
2019-12-04 19:02:02 +00:00
|
|
|
B(LdaConstant), U8(0),
|
|
|
|
B(Star), R(4),
|
|
|
|
/* 61 E> */ B(CallRuntime), U16(Runtime::kNewTypeError), R(3), U8(2),
|
2019-08-30 01:09:00 +00:00
|
|
|
B(Throw),
|
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["#d"],
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
class E {
|
|
|
|
set #e(val) { }
|
|
|
|
constructor() { this.#e; }
|
|
|
|
}
|
|
|
|
var test = E;
|
|
|
|
new test;
|
|
|
|
"
|
2019-12-04 19:02:02 +00:00
|
|
|
frame size: 6
|
2019-08-30 01:09:00 +00:00
|
|
|
parameter count: 1
|
2020-02-10 16:09:27 +00:00
|
|
|
bytecode array length: 31
|
2019-08-30 01:09:00 +00:00
|
|
|
bytecodes: [
|
2020-05-08 06:52:01 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(3),
|
2019-08-30 01:09:00 +00:00
|
|
|
B(Star), R(1),
|
|
|
|
B(Mov), R(this), R(0),
|
2019-12-04 19:02:02 +00:00
|
|
|
B(Mov), R(context), R(2),
|
2020-02-10 16:09:27 +00:00
|
|
|
/* 41 E> */ B(CallRuntime), U16(Runtime::kAddPrivateBrand), R(0), U8(3),
|
2020-10-17 01:27:26 +00:00
|
|
|
/* 46 S> */ B(Wide), B(LdaSmi), I16(269),
|
2019-08-30 01:09:00 +00:00
|
|
|
B(Star), R(4),
|
2019-12-04 19:02:02 +00:00
|
|
|
B(LdaConstant), U8(0),
|
|
|
|
B(Star), R(5),
|
|
|
|
B(CallRuntime), U16(Runtime::kNewTypeError), R(4), U8(2),
|
2019-08-30 01:09:00 +00:00
|
|
|
B(Throw),
|
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["#e"],
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|