blob: edd6f05bccab442c9861f1eb6682a54b7b9e2cc9 [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 function f() { return arguments; }
14 f();
15"
16frame size: 1
17parameter count: 1
Ben Murdoch61f157c2016-09-16 13:49:30 +010018bytecode array length: 6
Ben Murdochda12d292016-06-02 14:46:10 +010019bytecodes: [
Ben Murdochc5610432016-08-08 18:44:38 +010020 B(CreateMappedArguments),
21 B(Star), R(0),
22 /* 10 E> */ B(StackCheck),
Ben Murdoch61f157c2016-09-16 13:49:30 +010023 /* 15 S> */ B(Nop),
Ben Murdochc5610432016-08-08 18:44:38 +010024 /* 33 S> */ B(Return),
Ben Murdochda12d292016-06-02 14:46:10 +010025]
26constant pool: [
27]
28handlers: [
29]
30
31---
32snippet: "
33 function f() { return arguments[0]; }
34 f();
35"
Ben Murdoch61f157c2016-09-16 13:49:30 +010036frame size: 1
Ben Murdochda12d292016-06-02 14:46:10 +010037parameter count: 1
Ben Murdoch61f157c2016-09-16 13:49:30 +010038bytecode array length: 9
Ben Murdochda12d292016-06-02 14:46:10 +010039bytecodes: [
Ben Murdochc5610432016-08-08 18:44:38 +010040 B(CreateMappedArguments),
41 B(Star), R(0),
42 /* 10 E> */ B(StackCheck),
Ben Murdoch61f157c2016-09-16 13:49:30 +010043 /* 15 S> */ B(LdaZero),
44 /* 31 E> */ B(LdaKeyedProperty), R(0), U8(1),
Ben Murdochc5610432016-08-08 18:44:38 +010045 /* 36 S> */ B(Return),
Ben Murdochda12d292016-06-02 14:46:10 +010046]
47constant pool: [
48]
49handlers: [
50]
51
52---
53snippet: "
54 function f() { 'use strict'; return arguments; }
55 f();
56"
57frame size: 1
58parameter count: 1
Ben Murdoch61f157c2016-09-16 13:49:30 +010059bytecode array length: 6
Ben Murdochda12d292016-06-02 14:46:10 +010060bytecodes: [
Ben Murdochc5610432016-08-08 18:44:38 +010061 B(CreateUnmappedArguments),
62 B(Star), R(0),
63 /* 10 E> */ B(StackCheck),
Ben Murdoch61f157c2016-09-16 13:49:30 +010064 /* 29 S> */ B(Nop),
Ben Murdochc5610432016-08-08 18:44:38 +010065 /* 47 S> */ B(Return),
Ben Murdochda12d292016-06-02 14:46:10 +010066]
67constant pool: [
68]
69handlers: [
70]
71
72---
73snippet: "
74 function f(a) { return arguments[0]; }
75 f();
76"
Ben Murdoch61f157c2016-09-16 13:49:30 +010077frame size: 2
Ben Murdochda12d292016-06-02 14:46:10 +010078parameter count: 2
Ben Murdoch61f157c2016-09-16 13:49:30 +010079bytecode array length: 21
Ben Murdochda12d292016-06-02 14:46:10 +010080bytecodes: [
Ben Murdochc5610432016-08-08 18:44:38 +010081 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1),
82 B(PushContext), R(1),
83 B(Ldar), R(arg0),
84 B(StaContextSlot), R(context), U8(4),
85 B(CreateMappedArguments),
86 B(Star), R(0),
87 /* 10 E> */ B(StackCheck),
Ben Murdoch61f157c2016-09-16 13:49:30 +010088 /* 16 S> */ B(LdaZero),
89 /* 32 E> */ B(LdaKeyedProperty), R(0), U8(1),
Ben Murdochc5610432016-08-08 18:44:38 +010090 /* 37 S> */ B(Return),
Ben Murdochda12d292016-06-02 14:46:10 +010091]
92constant pool: [
93]
94handlers: [
95]
96
97---
98snippet: "
99 function f(a, b, c) { return arguments; }
100 f();
101"
102frame size: 2
103parameter count: 4
Ben Murdoch61f157c2016-09-16 13:49:30 +0100104bytecode array length: 28
Ben Murdochda12d292016-06-02 14:46:10 +0100105bytecodes: [
Ben Murdochc5610432016-08-08 18:44:38 +0100106 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1),
107 B(PushContext), R(1),
108 B(Ldar), R(arg0),
109 B(StaContextSlot), R(context), U8(6),
110 B(Ldar), R(arg1),
111 B(StaContextSlot), R(context), U8(5),
112 B(Ldar), R(arg2),
113 B(StaContextSlot), R(context), U8(4),
114 B(CreateMappedArguments),
115 B(Star), R(0),
116 /* 10 E> */ B(StackCheck),
Ben Murdoch61f157c2016-09-16 13:49:30 +0100117 /* 22 S> */ B(Nop),
Ben Murdochc5610432016-08-08 18:44:38 +0100118 /* 40 S> */ B(Return),
Ben Murdochda12d292016-06-02 14:46:10 +0100119]
120constant pool: [
121]
122handlers: [
123]
124
125---
126snippet: "
127 function f(a, b, c) { 'use strict'; return arguments; }
128 f();
129"
130frame size: 1
131parameter count: 4
Ben Murdoch61f157c2016-09-16 13:49:30 +0100132bytecode array length: 6
Ben Murdochda12d292016-06-02 14:46:10 +0100133bytecodes: [
Ben Murdochc5610432016-08-08 18:44:38 +0100134 B(CreateUnmappedArguments),
135 B(Star), R(0),
136 /* 10 E> */ B(StackCheck),
Ben Murdoch61f157c2016-09-16 13:49:30 +0100137 /* 36 S> */ B(Nop),
Ben Murdochc5610432016-08-08 18:44:38 +0100138 /* 54 S> */ B(Return),
Ben Murdochda12d292016-06-02 14:46:10 +0100139]
140constant pool: [
141]
142handlers: [
143]
144