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

Side by Side Diff: test/cctest/interpreter/GlobalDelete.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: mixed
7 execute: yes
8 wrap: no
9 test function name: f
10
11 ---
12 snippet: "
13 var a = {x:13, y:14};
14 function f() { return delete a.x; };
15 f();
16 "
17 frame size: 1 # in multiples of sizeof(void*)
18 parameter count: 1
19 bytecodes: [
20 B(StackCheck),
21 B(LdaGlobal), U8(0), U8(1),
22 B(Star), R(0),
23 B(LdaConstant), U8(1),
24 B(DeletePropertySloppy), R(0),
25 B(Return),
26 ]
27 constant pool: [
28 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
29 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
30 ]
31 handlers: [
32 ]
33
34 ---
35 snippet: "
36 a = {1:13, 2:14};
37 function f() {'use strict'; return delete a[1];};
38 f();
39 "
40 frame size: 1 # in multiples of sizeof(void*)
41 parameter count: 1
42 bytecodes: [
43 B(StackCheck),
44 B(LdaGlobal), U8(0), U8(1),
45 B(Star), R(0),
46 B(LdaSmi8), U8(1),
47 B(DeletePropertyStrict), R(0),
48 B(Return),
49 ]
50 constant pool: [
51 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
52 ]
53 handlers: [
54 ]
55
56 ---
57 snippet: "
58 var a = {x:13, y:14};
59 function f() { return delete a; };
60 f();
61 "
62 frame size: 2 # in multiples of sizeof(void*)
63 parameter count: 1
64 bytecodes: [
65 B(StackCheck),
66 B(LdaContextSlot), R(context), U8(3),
67 B(Star), R(0),
68 B(LdaContextSlot), R(0), U8(2),
69 B(Star), R(1),
70 B(LdaConstant), U8(0),
71 B(DeletePropertySloppy), R(1),
72 B(Return),
73 ]
74 constant pool: [
75 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
76 ]
77 handlers: [
78 ]
79
80 ---
81 snippet: "
82 b = 30;
83 function f() { return delete b; };
84 f();
85 "
86 frame size: 2 # in multiples of sizeof(void*)
87 parameter count: 1
88 bytecodes: [
89 B(StackCheck),
90 B(LdaContextSlot), R(context), U8(3),
91 B(Star), R(0),
92 B(LdaContextSlot), R(0), U8(2),
93 B(Star), R(1),
94 B(LdaConstant), U8(0),
95 B(DeletePropertySloppy), R(1),
96 B(Return),
97 ]
98 constant pool: [
99 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
100 ]
101 handlers: [
102 ]
103
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698