Files
Kmake/deps/v8/test/unittests/interpreter/bytecode_expectations/GlobalCompoundExpressions.golden
2026-05-26 23:36:42 -07:00

55 lines
1010 B
Plaintext

#
# Autogenerated by generate-bytecode-expectations.
#
---
wrap: no
test function name: f
---
snippet: "
var global = 1;
function f() { return global &= 1; }
f();
"
frame size: 1
parameter count: 1
bytecode array length: 13
bytecodes: [
/* 31 S> */ B(LdaGlobal), U8(0), U8(0),
B(BitwiseAndSmi), I8(1), U8(2),
B(Star0),
/* 45 E> */ B(StaGlobal), U8(0), U8(3),
B(Ldar), R(0),
/* 50 S> */ B(Return),
]
constant pool: [
INTERNALIZED_ONE_BYTE_STRING_TYPE ["global"],
]
handlers: [
]
---
snippet: "
unallocated = 1;
function f() { return unallocated += 1; }
f();
"
frame size: 1
parameter count: 1
bytecode array length: 13
bytecodes: [
/* 32 S> */ B(LdaGlobal), U8(0), U8(0),
B(AddSmi), I8(1), U8(2),
B(Star0),
/* 51 E> */ B(StaGlobal), U8(0), U8(3),
B(Ldar), R(0),
/* 56 S> */ B(Return),
]
constant pool: [
INTERNALIZED_ONE_BYTE_STRING_TYPE ["unallocated"],
]
handlers: [
]