summaryrefslogtreecommitdiff
path: root/deps/v8/test/cctest/interpreter/bytecode_expectations/GlobalCompoundExpressions.golden
blob: f222e9034b90d4ee1a52f6cd17041a858a3a3293 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#
# 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: 12
bytecodes: [
  /*   26 E> */ B(StackCheck),
  /*   31 S> */ B(LdrGlobal), U8(2), R(0),
                B(BitwiseAndSmi), U8(1), R(0), U8(4),
  /*   45 E> */ B(StaGlobalSloppy), U8(0), U8(5),
  /*   51 S> */ B(Return),
]
constant pool: [
  ONE_BYTE_INTERNALIZED_STRING_TYPE ["global"],
]
handlers: [
]

---
snippet: "
  unallocated = 1;
  function f() { return unallocated += 1; }
  f();
"
frame size: 1
parameter count: 1
bytecode array length: 12
bytecodes: [
  /*   27 E> */ B(StackCheck),
  /*   32 S> */ B(LdrGlobal), U8(2), R(0),
                B(AddSmi), U8(1), R(0), U8(4),
  /*   51 E> */ B(StaGlobalSloppy), U8(0), U8(5),
  /*   57 S> */ B(Return),
]
constant pool: [
  ONE_BYTE_INTERNALIZED_STRING_TYPE ["unallocated"],
]
handlers: [
]