Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(232)

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/CreateArguments.golden

Issue 1717293002: [Interpreter] Refactor bytecode generator test suite. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Move golden files to subdir, update golden format. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 #
2 # Autogenerated by generate-bytecode-expectations
3 #
4
5 ---
6 pool type: string
7 execute: yes
8 wrap: no
9 test function name: f
10
11 ---
12 snippet: "
13 function f() { return arguments; }
14 f();
15 "
16 frame size: 1
17 parameter count: 1
18 bytecode array length: 7
19 bytecodes: [
20 B(CreateMappedArguments),
21 B(Star), R(0),
22 B(StackCheck),
23 B(Ldar), R(0),
24 B(Return),
25 ]
26 constant pool: [
27 ]
28 handlers: [
29 ]
30
31 ---
32 snippet: "
33 function f() { return arguments[0]; }
34 f();
35 "
36 frame size: 2
37 parameter count: 1
38 bytecode array length: 13
39 bytecodes: [
40 B(CreateMappedArguments),
41 B(Star), R(0),
42 B(StackCheck),
43 B(Ldar), R(0),
44 B(Star), R(1),
45 B(LdaZero),
46 B(KeyedLoadIC), R(1), U8(1),
47 B(Return),
48 ]
49 constant pool: [
50 ]
51 handlers: [
52 ]
53
54 ---
55 snippet: "
56 function f() { 'use strict'; return arguments; }
57 f();
58 "
59 frame size: 1
60 parameter count: 1
61 bytecode array length: 7
62 bytecodes: [
63 B(CreateUnmappedArguments),
64 B(Star), R(0),
65 B(StackCheck),
66 B(Ldar), R(0),
67 B(Return),
68 ]
69 constant pool: [
70 ]
71 handlers: [
72 ]
73
74 ---
75 snippet: "
76 function f(a) { return arguments[0]; }
77 f();
78 "
79 frame size: 3
80 parameter count: 2
81 bytecode array length: 25
82 bytecodes: [
83 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1),
84 B(PushContext), R(1),
85 B(Ldar), R(arg0),
86 B(StaContextSlot), R(context), U8(4),
87 B(CreateMappedArguments),
88 B(Star), R(0),
89 B(StackCheck),
90 B(Ldar), R(0),
91 B(Star), R(2),
92 B(LdaZero),
93 B(KeyedLoadIC), R(2), U8(1),
94 B(Return),
95 ]
96 constant pool: [
97 ]
98 handlers: [
99 ]
100
101 ---
102 snippet: "
103 function f(a, b, c) { return arguments; }
104 f();
105 "
106 frame size: 2
107 parameter count: 4
108 bytecode array length: 29
109 bytecodes: [
110 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1),
111 B(PushContext), R(1),
112 B(Ldar), R(arg0),
113 B(StaContextSlot), R(context), U8(6),
114 B(Ldar), R(arg1),
115 B(StaContextSlot), R(context), U8(5),
116 B(Ldar), R(arg2),
117 B(StaContextSlot), R(context), U8(4),
118 B(CreateMappedArguments),
119 B(Star), R(0),
120 B(StackCheck),
121 B(Ldar), R(0),
122 B(Return),
123 ]
124 constant pool: [
125 ]
126 handlers: [
127 ]
128
129 ---
130 snippet: "
131 function f(a, b, c) { 'use strict'; return arguments; }
132 f();
133 "
134 frame size: 1
135 parameter count: 4
136 bytecode array length: 7
137 bytecodes: [
138 B(CreateUnmappedArguments),
139 B(Star), R(0),
140 B(StackCheck),
141 B(Ldar), R(0),
142 B(Return),
143 ]
144 constant pool: [
145 ]
146 handlers: [
147 ]
148
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698