blob: 505d3e807816c038574123939c5ea977882eea93 [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: yes
9
10---
11snippet: "
12 const x = 10;
13"
14frame size: 1
15parameter count: 1
16bytecode array length: 10
17bytecodes: [
Ben Murdochc5610432016-08-08 18:44:38 +010018 B(LdaTheHole),
19 B(Star), R(0),
20 /* 30 E> */ B(StackCheck),
21 /* 44 S> */ B(LdaSmi), U8(10),
22 /* 44 E> */ B(Star), R(0),
23 B(LdaUndefined),
24 /* 48 S> */ B(Return),
Ben Murdochda12d292016-06-02 14:46:10 +010025]
26constant pool: [
27]
28handlers: [
29]
30
31---
32snippet: "
33 const x = 10; return x;
34"
35frame size: 2
36parameter count: 1
37bytecode array length: 20
38bytecodes: [
Ben Murdochc5610432016-08-08 18:44:38 +010039 B(LdaTheHole),
40 B(Star), R(0),
41 /* 30 E> */ B(StackCheck),
42 /* 44 S> */ B(LdaSmi), U8(10),
43 /* 44 E> */ B(Star), R(0),
44 /* 48 S> */ B(JumpIfNotHole), U8(11),
45 B(LdaConstant), U8(0),
46 B(Star), R(1),
47 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(1), U8(1),
48 /* 58 S> */ B(Return),
Ben Murdochda12d292016-06-02 14:46:10 +010049]
50constant pool: [
51 "x",
52]
53handlers: [
54]
55
56---
57snippet: "
58 const x = ( x = 20);
59"
60frame size: 3
61parameter count: 1
62bytecode array length: 32
63bytecodes: [
Ben Murdochc5610432016-08-08 18:44:38 +010064 B(LdaTheHole),
65 B(Star), R(0),
66 /* 30 E> */ B(StackCheck),
67 /* 48 S> */ B(LdaSmi), U8(20),
68 /* 48 E> */ B(Star), R(1),
69 B(Ldar), R(0),
70 B(JumpIfNotHole), U8(11),
71 B(LdaConstant), U8(0),
72 B(Star), R(2),
73 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1),
74 B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0),
75 B(Ldar), R(1),
76 B(Star), R(0),
77 /* 48 E> */ B(LdaUndefined),
78 /* 55 S> */ B(Return),
Ben Murdochda12d292016-06-02 14:46:10 +010079]
80constant pool: [
81 "x",
82]
83handlers: [
84]
85
86---
87snippet: "
88 const x = 10; x = 20;
89"
90frame size: 3
91parameter count: 1
92bytecode array length: 36
93bytecodes: [
Ben Murdochc5610432016-08-08 18:44:38 +010094 B(LdaTheHole),
95 B(Star), R(0),
96 /* 30 E> */ B(StackCheck),
97 /* 44 S> */ B(LdaSmi), U8(10),
98 /* 44 E> */ B(Star), R(0),
99 /* 48 S> */ B(LdaSmi), U8(20),
100 /* 50 E> */ B(Star), R(1),
101 B(Ldar), R(0),
102 B(JumpIfNotHole), U8(11),
103 B(LdaConstant), U8(0),
104 B(Star), R(2),
105 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1),
106 B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0),
107 B(Ldar), R(1),
108 B(Star), R(0),
109 B(LdaUndefined),
110 /* 56 S> */ B(Return),
Ben Murdochda12d292016-06-02 14:46:10 +0100111]
112constant pool: [
113 "x",
114]
115handlers: [
116]
117