b3d004aaf9
... /interpreter. This CL moves cctest/interpreter/{bytecode-expectations-printer, test-bytecode-generator, test-interpreter-intrinsics, interpreter-tester, test-interpreter, test-source-positions, source-position-matcher} to unittests/interpreter/{ bytecode-expectations-printer, bytecode-generator-unittest, interpreter-intrinsics-unittest, interpreter-tester, interpreter-unittest, source-positions-unittest, source-position-matcher}. Bug: v8:12781 Change-Id: I187583bd34f709dd0d7dfc0f92e18f191da0e30f Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3609752 Reviewed-by: Leszek Swirski <leszeks@chromium.org> Commit-Queue: 王澳 <wangao.james@bytedance.com> Reviewed-by: Toon Verwaest <verwaest@chromium.org> Cr-Commit-Position: refs/heads/main@{#81057}
84 lines
1.7 KiB
Plaintext
84 lines
1.7 KiB
Plaintext
#
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
#
|
|
|
|
---
|
|
wrap: no
|
|
test function name: test
|
|
|
|
---
|
|
snippet: "
|
|
class A {
|
|
#a;
|
|
#b;
|
|
constructor() {
|
|
this.#a = this.#b;
|
|
}
|
|
}
|
|
|
|
var test = A;
|
|
new test;
|
|
"
|
|
frame size: 4
|
|
parameter count: 1
|
|
bytecode array length: 28
|
|
bytecodes: [
|
|
/* 35 E> */ B(GetNamedProperty), R(closure), U8(0), U8(0),
|
|
B(JumpIfUndefined), U8(10),
|
|
B(Star1),
|
|
B(CallProperty0), R(1), R(this), U8(2),
|
|
B(Mov), R(this), R(0),
|
|
/* 44 S> */ B(LdaImmutableCurrentContextSlot), U8(2),
|
|
B(Star3),
|
|
B(LdaImmutableCurrentContextSlot), U8(3),
|
|
/* 59 E> */ B(GetKeyedProperty), R(this), U8(4),
|
|
/* 52 E> */ B(SetKeyedProperty), R(this), R(3), U8(6),
|
|
B(LdaUndefined),
|
|
/* 65 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
SYMBOL_TYPE,
|
|
]
|
|
handlers: [
|
|
]
|
|
|
|
---
|
|
snippet: "
|
|
class B {
|
|
#a;
|
|
#b;
|
|
constructor() {
|
|
this.#a = this.#b;
|
|
}
|
|
force(str) {
|
|
eval(str);
|
|
}
|
|
}
|
|
|
|
var test = B;
|
|
new test;
|
|
"
|
|
frame size: 4
|
|
parameter count: 1
|
|
bytecode array length: 28
|
|
bytecodes: [
|
|
/* 35 E> */ B(GetNamedProperty), R(closure), U8(0), U8(0),
|
|
B(JumpIfUndefined), U8(10),
|
|
B(Star1),
|
|
B(CallProperty0), R(1), R(this), U8(2),
|
|
B(Mov), R(this), R(0),
|
|
/* 44 S> */ B(LdaImmutableCurrentContextSlot), U8(2),
|
|
B(Star3),
|
|
B(LdaImmutableCurrentContextSlot), U8(3),
|
|
/* 59 E> */ B(GetKeyedProperty), R(this), U8(4),
|
|
/* 52 E> */ B(SetKeyedProperty), R(this), R(3), U8(6),
|
|
B(LdaUndefined),
|
|
/* 65 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
SYMBOL_TYPE,
|
|
]
|
|
handlers: [
|
|
]
|
|
|