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

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/DeclareGlobals.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: mixed
7 execute: no
8 wrap: no
9 top level: yes
10
11 ---
12 snippet: "
13 var a = 1;
14 "
15 frame size: 4
16 parameter count: 1
17 bytecode array length: 31
18 bytecodes: [
19 B(LdaConstant), U8(0),
20 B(Star), R(1),
21 B(LdaZero),
22 B(Star), R(2),
23 B(CallRuntime), U16(Runtime::kDeclareGlobals), R(1), U8(2),
24 B(StackCheck),
25 B(LdaConstant), U8(1),
26 B(Star), R(1),
27 B(LdaZero),
28 B(Star), R(2),
29 B(LdaSmi8), U8(1),
30 B(Star), R(3),
31 B(CallRuntime), U16(Runtime::kInitializeVarGlobal), R(1), U8(3),
32 B(LdaUndefined),
33 B(Return),
34 ]
35 constant pool: [
36 InstanceType::FIXED_ARRAY_TYPE,
37 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
38 ]
39 handlers: [
40 ]
41
42 ---
43 snippet: "
44 function f() {}
45 "
46 frame size: 2
47 parameter count: 1
48 bytecode array length: 15
49 bytecodes: [
50 B(LdaConstant), U8(0),
51 B(Star), R(0),
52 B(LdaZero),
53 B(Star), R(1),
54 B(CallRuntime), U16(Runtime::kDeclareGlobals), R(0), U8(2),
55 B(StackCheck),
56 B(LdaUndefined),
57 B(Return),
58 ]
59 constant pool: [
60 InstanceType::FIXED_ARRAY_TYPE,
61 ]
62 handlers: [
63 ]
64
65 ---
66 snippet: "
67 var a = 1;
68 a=2;
69 "
70 frame size: 4
71 parameter count: 1
72 bytecode array length: 37
73 bytecodes: [
74 B(LdaConstant), U8(0),
75 B(Star), R(1),
76 B(LdaZero),
77 B(Star), R(2),
78 B(CallRuntime), U16(Runtime::kDeclareGlobals), R(1), U8(2),
79 B(StackCheck),
80 B(LdaConstant), U8(1),
81 B(Star), R(1),
82 B(LdaZero),
83 B(Star), R(2),
84 B(LdaSmi8), U8(1),
85 B(Star), R(3),
86 B(CallRuntime), U16(Runtime::kInitializeVarGlobal), R(1), U8(3),
87 B(LdaSmi8), U8(2),
88 B(StaGlobalSloppy), U8(1), U8(3),
89 B(Star), R(0),
90 B(Return),
91 ]
92 constant pool: [
93 InstanceType::FIXED_ARRAY_TYPE,
94 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
95 ]
96 handlers: [
97 ]
98
99 ---
100 snippet: "
101 function f() {}
102 f();
103 "
104 frame size: 3
105 parameter count: 1
106 bytecode array length: 29
107 bytecodes: [
108 B(LdaConstant), U8(0),
109 B(Star), R(1),
110 B(LdaZero),
111 B(Star), R(2),
112 B(CallRuntime), U16(Runtime::kDeclareGlobals), R(1), U8(2),
113 B(StackCheck),
114 B(LdaUndefined),
115 B(Star), R(2),
116 B(LdaGlobal), U8(1), U8(1),
117 B(Star), R(1),
118 B(Call), R(1), R(2), U8(1), U8(3),
119 B(Star), R(0),
120 B(Return),
121 ]
122 constant pool: [
123 InstanceType::FIXED_ARRAY_TYPE,
124 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
125 ]
126 handlers: [
127 ]
128
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698