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

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/Delete.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: mixed
7 execute: yes
8 wrap: yes
9
10 ---
11 snippet: "
12 var a = {x:13, y:14}; return delete a.x;
13 "
14 frame size: 2
15 parameter count: 1
16 bytecode array length: 16
17 bytecodes: [
18 B(StackCheck),
19 B(CreateObjectLiteral), U8(0), U8(0), U8(9),
20 B(Star), R(1),
21 B(Star), R(0),
22 B(Star), R(1),
23 B(LdaConstant), U8(1),
24 B(DeletePropertySloppy), R(1),
25 B(Return),
26 ]
27 constant pool: [
28 InstanceType::FIXED_ARRAY_TYPE,
29 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
30 ]
31 handlers: [
32 ]
33
34 ---
35 snippet: "
36 'use strict'; var a = {x:13, y:14}; return delete a.x;
37 "
38 frame size: 2
39 parameter count: 1
40 bytecode array length: 16
41 bytecodes: [
42 B(StackCheck),
43 B(CreateObjectLiteral), U8(0), U8(0), U8(9),
44 B(Star), R(1),
45 B(Star), R(0),
46 B(Star), R(1),
47 B(LdaConstant), U8(1),
48 B(DeletePropertyStrict), R(1),
49 B(Return),
50 ]
51 constant pool: [
52 InstanceType::FIXED_ARRAY_TYPE,
53 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
54 ]
55 handlers: [
56 ]
57
58 ---
59 snippet: "
60 var a = {1:13, 2:14}; return delete a[2];
61 "
62 frame size: 2
63 parameter count: 1
64 bytecode array length: 16
65 bytecodes: [
66 B(StackCheck),
67 B(CreateObjectLiteral), U8(0), U8(0), U8(9),
68 B(Star), R(1),
69 B(Star), R(0),
70 B(Star), R(1),
71 B(LdaSmi8), U8(2),
72 B(DeletePropertySloppy), R(1),
73 B(Return),
74 ]
75 constant pool: [
76 InstanceType::FIXED_ARRAY_TYPE,
77 ]
78 handlers: [
79 ]
80
81 ---
82 snippet: "
83 var a = 10; return delete a;
84 "
85 frame size: 1
86 parameter count: 1
87 bytecode array length: 7
88 bytecodes: [
89 B(StackCheck),
90 B(LdaSmi8), U8(10),
91 B(Star), R(0),
92 B(LdaFalse),
93 B(Return),
94 ]
95 constant pool: [
96 ]
97 handlers: [
98 ]
99
100 ---
101 snippet: "
102 'use strict';
103 var a = {1:10};
104 (function f1() {return a;});
105 return delete a[1];
106 "
107 frame size: 2
108 parameter count: 1
109 bytecode array length: 30
110 bytecodes: [
111 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1),
112 B(PushContext), R(0),
113 B(StackCheck),
114 B(CreateObjectLiteral), U8(0), U8(0), U8(9),
115 B(Star), R(1),
116 B(StaContextSlot), R(context), U8(4),
117 B(CreateClosure), U8(1), U8(0),
118 B(LdaContextSlot), R(context), U8(4),
119 B(Star), R(1),
120 B(LdaSmi8), U8(1),
121 B(DeletePropertyStrict), R(1),
122 B(Return),
123 ]
124 constant pool: [
125 InstanceType::FIXED_ARRAY_TYPE,
126 InstanceType::SHARED_FUNCTION_INFO_TYPE,
127 ]
128 handlers: [
129 ]
130
131 ---
132 snippet: "
133 return delete 'test';
134 "
135 frame size: 0
136 parameter count: 1
137 bytecode array length: 3
138 bytecodes: [
139 B(StackCheck),
140 B(LdaTrue),
141 B(Return),
142 ]
143 constant pool: [
144 ]
145 handlers: [
146 ]
147
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698