blob: 7d64503a0cb3809aa1b34372d99beaa9de552584 [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; }
15 f();
16"
17frame size: 0
18parameter count: 1
19bytecode array length: 10
20bytecodes: [
21 B(StackCheck),
22 B(LdaGlobal), U8(0), U8(1),
23 B(ToNumber),
24 B(Inc),
25 B(StaGlobalSloppy), U8(0), U8(3),
26 B(Return),
27]
28constant pool: [
29 "global",
30]
31handlers: [
32]
33
34---
35snippet: "
36 var global = 1;
37 function f() { return global--; }
38 f();
39"
40frame size: 1
41parameter count: 1
42bytecode array length: 14
43bytecodes: [
44 B(StackCheck),
45 B(LdaGlobal), U8(0), U8(1),
46 B(ToNumber),
47 B(Star), R(0),
48 B(Dec),
49 B(StaGlobalSloppy), U8(0), U8(3),
50 B(Ldar), R(0),
51 B(Return),
52]
53constant pool: [
54 "global",
55]
56handlers: [
57]
58
59---
60snippet: "
61 unallocated = 1;
62 function f() { 'use strict'; return --unallocated; }
63 f();
64"
65frame size: 0
66parameter count: 1
67bytecode array length: 10
68bytecodes: [
69 B(StackCheck),
70 B(LdaGlobal), U8(0), U8(1),
71 B(ToNumber),
72 B(Dec),
73 B(StaGlobalStrict), U8(0), U8(3),
74 B(Return),
75]
76constant pool: [
77 "unallocated",
78]
79handlers: [
80]
81
82---
83snippet: "
84 unallocated = 1;
85 function f() { return unallocated++; }
86 f();
87"
88frame size: 1
89parameter count: 1
90bytecode array length: 14
91bytecodes: [
92 B(StackCheck),
93 B(LdaGlobal), U8(0), U8(1),
94 B(ToNumber),
95 B(Star), R(0),
96 B(Inc),
97 B(StaGlobalSloppy), U8(0), U8(3),
98 B(Ldar), R(0),
99 B(Return),
100]
101constant pool: [
102 "unallocated",
103]
104handlers: [
105]
106