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

Side by Side Diff: test/cctest/interpreter/ConstVariable.golden

Issue 1717293002: [Interpreter] Refactor bytecode generator test suite. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: std::vector instead of initializer_list, golden path as constant. 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: string
7 execute: yes
8 wrap: yes
9
10 ---
11 snippet: "
12 const x = 10;
13 "
14 frame size: 1 # in multiples of sizeof(void*)
15 parameter count: 1
16 bytecodes: [
17 B(LdaTheHole),
18 B(Star), R(0),
19 B(StackCheck),
20 B(LdaSmi8), U8(10),
21 B(Star), R(0),
22 B(LdaUndefined),
23 B(Return),
24 ]
25 constant pool: [
26 ]
27 handlers: [
28 ]
29
30 ---
31 snippet: "
32 const x = 10; return x;
33 "
34 frame size: 2 # in multiples of sizeof(void*)
35 parameter count: 1
36 bytecodes: [
37 B(LdaTheHole),
38 B(Star), R(0),
39 B(StackCheck),
40 B(LdaSmi8), U8(10),
41 B(Star), R(0),
42 B(JumpIfNotHole), U8(11),
43 B(LdaConstant), U8(0),
44 B(Star), R(1),
45 B(CallRuntime), U16(257), R(1), U8(1),
46 B(Return),
47 ]
48 constant pool: [
49 "x",
50 ]
51 handlers: [
52 ]
53
54 ---
55 snippet: "
56 const x = ( x = 20);
57 "
58 frame size: 3 # in multiples of sizeof(void*)
59 parameter count: 1
60 bytecodes: [
61 B(LdaTheHole),
62 B(Star), R(0),
63 B(StackCheck),
64 B(LdaSmi8), U8(20),
65 B(Star), R(1),
66 B(Ldar), R(0),
67 B(JumpIfNotHole), U8(11),
68 B(LdaConstant), U8(0),
69 B(Star), R(2),
70 B(CallRuntime), U16(257), R(2), U8(1),
71 B(CallRuntime), U16(448), R(0), U8(0),
72 B(Ldar), R(1),
73 B(Star), R(0),
74 B(LdaUndefined),
75 B(Return),
76 ]
77 constant pool: [
78 "x",
79 ]
80 handlers: [
81 ]
82
83 ---
84 snippet: "
85 const x = 10; x = 20;
86 "
87 frame size: 3 # in multiples of sizeof(void*)
88 parameter count: 1
89 bytecodes: [
90 B(LdaTheHole),
91 B(Star), R(0),
92 B(StackCheck),
93 B(LdaSmi8), U8(10),
94 B(Star), R(0),
95 B(LdaSmi8), U8(20),
96 B(Star), R(1),
97 B(Ldar), R(0),
98 B(JumpIfNotHole), U8(11),
99 B(LdaConstant), U8(0),
100 B(Star), R(2),
101 B(CallRuntime), U16(257), R(2), U8(1),
102 B(CallRuntime), U16(448), R(0), U8(0),
103 B(Ldar), R(1),
104 B(Star), R(0),
105 B(LdaUndefined),
106 B(Return),
107 ]
108 constant pool: [
109 "x",
110 ]
111 handlers: [
112 ]
113
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698