diff options
Diffstat (limited to 'deps/v8/test/cctest/interpreter/bytecode_expectations/PrivateClassFieldAccess.golden')
-rw-r--r-- | deps/v8/test/cctest/interpreter/bytecode_expectations/PrivateClassFieldAccess.golden | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/deps/v8/test/cctest/interpreter/bytecode_expectations/PrivateClassFieldAccess.golden b/deps/v8/test/cctest/interpreter/bytecode_expectations/PrivateClassFieldAccess.golden new file mode 100644 index 00000000000..0c3eefef905 --- /dev/null +++ b/deps/v8/test/cctest/interpreter/bytecode_expectations/PrivateClassFieldAccess.golden @@ -0,0 +1,84 @@ +# +# Autogenerated by generate-bytecode-expectations. +# + +--- +wrap: no +test function name: test +private methods: yes + +--- +snippet: " + class A { + #a; + #b; + constructor() { + this.#a = this.#b; + } + } + + var test = A; + new test; +" +frame size: 4 +parameter count: 1 +bytecode array length: 30 +bytecodes: [ + /* 35 E> */ B(LdaNamedProperty), R(closure), U8(0), U8(0), + B(JumpIfUndefined), U8(11), + B(Star), R(1), + B(CallProperty0), R(1), R(this), U8(2), + B(Mov), R(this), R(0), + /* 44 S> */ B(LdaImmutableCurrentContextSlot), U8(2), + B(Star), R(3), + B(LdaImmutableCurrentContextSlot), U8(3), + /* 59 E> */ B(LdaKeyedProperty), R(this), U8(4), + /* 52 E> */ B(StaKeyedProperty), 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: 30 +bytecodes: [ + /* 35 E> */ B(LdaNamedProperty), R(closure), U8(0), U8(0), + B(JumpIfUndefined), U8(11), + B(Star), R(1), + B(CallProperty0), R(1), R(this), U8(2), + B(Mov), R(this), R(0), + /* 44 S> */ B(LdaImmutableCurrentContextSlot), U8(2), + B(Star), R(3), + B(LdaImmutableCurrentContextSlot), U8(3), + /* 59 E> */ B(LdaKeyedProperty), R(this), U8(4), + /* 52 E> */ B(StaKeyedProperty), R(this), R(3), U8(6), + B(LdaUndefined), + /* 65 S> */ B(Return), +] +constant pool: [ + SYMBOL_TYPE, +] +handlers: [ +] + |