summaryrefslogtreecommitdiff
path: root/deps/v8/test/cctest/interpreter/bytecode_expectations/GlobalCompoundExpressions.golden
blob: b085a663ea96736c253a3caab7221e018ecae77a (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: 0
parameter count: 1
bytecode array length: 11
bytecodes: [
  /*   26 E> */ B(StackCheck),
  /*   31 S> */ B(LdaGlobal), U8(0), U8(2),
                B(BitwiseAndSmi), I8(1), 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: 0
parameter count: 1
bytecode array length: 11
bytecodes: [
  /*   27 E> */ B(StackCheck),
  /*   32 S> */ B(LdaGlobal), U8(0), U8(2),
                B(AddSmi), I8(1), U8(4),
  /*   51 E> */ B(StaGlobalSloppy), U8(0), U8(5),
  /*   57 S> */ B(Return),
]
constant pool: [
  ONE_BYTE_INTERNALIZED_STRING_TYPE ["unallocated"],
]
handlers: [
]