blob: 89d31eed6137c440af4688404f409790a3362fd7 [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: [
Ben Murdochc5610432016-08-08 18:44:38 +010021 /* 26 E> */ B(StackCheck),
22 /* 31 S> */ B(LdaGlobal), U8(0), U8(1),
23 B(Star), R(0),
24 B(LdaSmi), U8(1),
25 B(BitwiseAnd), R(0),
26 /* 45 E> */ B(StaGlobalSloppy), U8(0), U8(3),
27 /* 51 S> */ B(Return),
Ben Murdochda12d292016-06-02 14:46:10 +010028]
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: [
Ben Murdochc5610432016-08-08 18:44:38 +010045 /* 27 E> */ B(StackCheck),
46 /* 32 S> */ B(LdaGlobal), U8(0), U8(1),
47 B(Star), R(0),
48 B(LdaSmi), U8(1),
49 B(Add), R(0),
50 /* 51 E> */ B(StaGlobalSloppy), U8(0), U8(3),
51 /* 57 S> */ B(Return),
Ben Murdochda12d292016-06-02 14:46:10 +010052]
53constant pool: [
54 "unallocated",
55]
56handlers: [
57]
58