GlobalCompoundExpressions.golden 958 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#
# Autogenerated by generate-bytecode-expectations.
#

---
wrap: no
test function name: f

---
snippet: "
  var global = 1;
  function f() { return global &= 1; }
  f();
"
15
frame size: 0
16
parameter count: 1
17
bytecode array length: 11
18
bytecodes: [
19
  /*   26 E> */ B(StackCheck),
20 21
  /*   31 S> */ B(LdaGlobal), U8(0), U8(0),
                B(BitwiseAndSmi), I8(1), U8(2),
22
  /*   45 E> */ B(StaGlobal), U8(0), U8(3),
23
  /*   50 S> */ B(Return),
24 25
]
constant pool: [
26
  ONE_BYTE_INTERNALIZED_STRING_TYPE ["global"],
27 28 29 30 31 32 33 34 35 36
]
handlers: [
]

---
snippet: "
  unallocated = 1;
  function f() { return unallocated += 1; }
  f();
"
37
frame size: 0
38
parameter count: 1
39
bytecode array length: 11
40
bytecodes: [
41
  /*   27 E> */ B(StackCheck),
42 43
  /*   32 S> */ B(LdaGlobal), U8(0), U8(0),
                B(AddSmi), I8(1), U8(2),
44
  /*   51 E> */ B(StaGlobal), U8(0), U8(3),
45
  /*   56 S> */ B(Return),
46 47
]
constant pool: [
48
  ONE_BYTE_INTERNALIZED_STRING_TYPE ["unallocated"],
49 50 51 52
]
handlers: [
]