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

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/CreateRestParameter.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, 10 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: number
7 execute: yes
8 wrap: no
9 test function name: f
10
11 ---
12 snippet: "
13 function f(...restArgs) { return restArgs; }
14 f();
15 "
16 frame size: 1
17 parameter count: 1
18 bytecode array length: 7
19 bytecodes: [
20 B(CreateRestParameter),
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(a, ...restArgs) { return restArgs; }
34 f();
35 "
36 frame size: 2
37 parameter count: 2
38 bytecode array length: 14
39 bytecodes: [
40 B(CreateRestParameter),
41 B(Star), R(0),
42 B(LdaTheHole),
43 B(Star), R(1),
44 B(StackCheck),
45 B(Ldar), R(arg0),
46 B(Star), R(1),
47 B(Ldar), R(0),
48 B(Return),
49 ]
50 constant pool: [
51 ]
52 handlers: [
53 ]
54
55 ---
56 snippet: "
57 function f(a, ...restArgs) { return restArgs[0]; }
58 f();
59 "
60 frame size: 3
61 parameter count: 2
62 bytecode array length: 20
63 bytecodes: [
64 B(CreateRestParameter),
65 B(Star), R(0),
66 B(LdaTheHole),
67 B(Star), R(1),
68 B(StackCheck),
69 B(Ldar), R(arg0),
70 B(Star), R(1),
71 B(Ldar), R(0),
72 B(Star), R(2),
73 B(LdaZero),
74 B(KeyedLoadIC), R(2), U8(1),
75 B(Return),
76 ]
77 constant pool: [
78 ]
79 handlers: [
80 ]
81
82 ---
83 snippet: "
84 function f(a, ...restArgs) { return restArgs[0] + arguments[0]; }
85 f();
86 "
87 frame size: 5
88 parameter count: 2
89 bytecode array length: 35
90 bytecodes: [
91 B(CreateUnmappedArguments),
92 B(Star), R(0),
93 B(CreateRestParameter),
94 B(Star), R(1),
95 B(LdaTheHole),
96 B(Star), R(2),
97 B(StackCheck),
98 B(Ldar), R(arg0),
99 B(Star), R(2),
100 B(Ldar), R(1),
101 B(Star), R(3),
102 B(LdaZero),
103 B(KeyedLoadIC), R(3), U8(1),
104 B(Star), R(4),
105 B(Ldar), R(0),
106 B(Star), R(3),
107 B(LdaZero),
108 B(KeyedLoadIC), R(3), U8(3),
109 B(Add), R(4),
110 B(Return),
111 ]
112 constant pool: [
113 ]
114 handlers: [
115 ]
116
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698