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

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/LetVariable.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: string
7 execute: yes
8 wrap: yes
9
10 ---
11 snippet: "
12 let x = 10;
13 "
14 frame size: 1
15 parameter count: 1
16 bytecode array length: 10
17 bytecodes: [
18 B(LdaTheHole),
19 B(Star), R(0),
20 B(StackCheck),
21 B(LdaSmi8), U8(10),
22 B(Star), R(0),
23 B(LdaUndefined),
24 B(Return),
25 ]
26 constant pool: [
27 ]
28 handlers: [
29 ]
30
31 ---
32 snippet: "
33 let x = 10; return x;
34 "
35 frame size: 2
36 parameter count: 1
37 bytecode array length: 20
38 bytecodes: [
39 B(LdaTheHole),
40 B(Star), R(0),
41 B(StackCheck),
42 B(LdaSmi8), U8(10),
43 B(Star), R(0),
44 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 B(Return),
49 ]
50 constant pool: [
51 "x",
52 ]
53 handlers: [
54 ]
55
56 ---
57 snippet: "
58 let x = (x = 20);
59 "
60 frame size: 3
61 parameter count: 1
62 bytecode array length: 27
63 bytecodes: [
64 B(LdaTheHole),
65 B(Star), R(0),
66 B(StackCheck),
67 B(LdaSmi8), U8(20),
68 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(Ldar), R(1),
75 B(Star), R(0),
76 B(LdaUndefined),
77 B(Return),
78 ]
79 constant pool: [
80 "x",
81 ]
82 handlers: [
83 ]
84
85 ---
86 snippet: "
87 let x = 10; x = 20;
88 "
89 frame size: 3
90 parameter count: 1
91 bytecode array length: 31
92 bytecodes: [
93 B(LdaTheHole),
94 B(Star), R(0),
95 B(StackCheck),
96 B(LdaSmi8), U8(10),
97 B(Star), R(0),
98 B(LdaSmi8), U8(20),
99 B(Star), R(1),
100 B(Ldar), R(0),
101 B(JumpIfNotHole), U8(11),
102 B(LdaConstant), U8(0),
103 B(Star), R(2),
104 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1),
105 B(Ldar), R(1),
106 B(Star), R(0),
107 B(LdaUndefined),
108 B(Return),
109 ]
110 constant pool: [
111 "x",
112 ]
113 handlers: [
114 ]
115
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698