blob: 42a2c5b15be9dc018654f77b1cfc2bbbe2763d04 [file] [log] [blame]
Ben Murdochda12d292016-06-02 14:46:10 +01001#
2# Autogenerated by generate-bytecode-expectations.
3#
4
5---
6pool type: string
7execute: yes
8wrap: no
9test function name: f
10
11---
12snippet: "
13 var global = 1;
14 function f() { return global &= 1; }
15 f();
16"
17frame size: 1
18parameter count: 1
19bytecode array length: 14
20bytecodes: [
21 B(StackCheck),
22 B(LdaGlobal), U8(0), U8(1),
23 B(Star), R(0),
24 B(LdaSmi), U8(1),
25 B(BitwiseAnd), R(0),
26 B(StaGlobalSloppy), U8(0), U8(3),
27 B(Return),
28]
29constant pool: [
30 "global",
31]
32handlers: [
33]
34
35---
36snippet: "
37 unallocated = 1;
38 function f() { return unallocated += 1; }
39 f();
40"
41frame size: 1
42parameter count: 1
43bytecode array length: 14
44bytecodes: [
45 B(StackCheck),
46 B(LdaGlobal), U8(0), U8(1),
47 B(Star), R(0),
48 B(LdaSmi), U8(1),
49 B(Add), R(0),
50 B(StaGlobalSloppy), U8(0), U8(3),
51 B(Return),
52]
53constant pool: [
54 "unallocated",
55]
56handlers: [
57]
58