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

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/GlobalDelete.golden

Issue 2489513005: [Interpreter] Remove all Ldr style bytecodes and replace with Star lookahead. (Closed)
Patch Set: Created 4 years, 1 month 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
1 # 1 #
2 # Autogenerated by generate-bytecode-expectations. 2 # Autogenerated by generate-bytecode-expectations.
3 # 3 #
4 4
5 --- 5 ---
6 wrap: no 6 wrap: no
7 test function name: f 7 test function name: f
8 8
9 --- 9 ---
10 snippet: " 10 snippet: "
11 var a = {x:13, y:14}; 11 var a = {x:13, y:14};
12 function f() { 12 function f() {
13 return delete a.x; 13 return delete a.x;
14 }; 14 };
15 f(); 15 f();
16 " 16 "
17 frame size: 1 17 frame size: 1
18 parameter count: 1 18 parameter count: 1
19 bytecode array length: 9 19 bytecode array length: 10
20 bytecodes: [ 20 bytecodes: [
21 /* 32 E> */ B(StackCheck), 21 /* 32 E> */ B(StackCheck),
22 /* 39 S> */ B(LdrGlobal), U8(2), R(0), 22 /* 39 S> */ B(LdaGlobal), U8(2),
23 B(Star), R(0),
23 B(LdaConstant), U8(0), 24 B(LdaConstant), U8(0),
24 B(DeletePropertySloppy), R(0), 25 B(DeletePropertySloppy), R(0),
25 /* 58 S> */ B(Return), 26 /* 58 S> */ B(Return),
26 ] 27 ]
27 constant pool: [ 28 constant pool: [
28 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], 29 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
29 ] 30 ]
30 handlers: [ 31 handlers: [
31 ] 32 ]
32 33
33 --- 34 ---
34 snippet: " 35 snippet: "
35 a = {1:13, 2:14}; 36 a = {1:13, 2:14};
36 function f() { 37 function f() {
37 'use strict'; 38 'use strict';
38 return delete a[1]; 39 return delete a[1];
39 }; 40 };
40 f(); 41 f();
41 " 42 "
42 frame size: 1 43 frame size: 1
43 parameter count: 1 44 parameter count: 1
44 bytecode array length: 9 45 bytecode array length: 10
45 bytecodes: [ 46 bytecodes: [
46 /* 28 E> */ B(StackCheck), 47 /* 28 E> */ B(StackCheck),
47 /* 51 S> */ B(LdrGlobal), U8(2), R(0), 48 /* 51 S> */ B(LdaGlobal), U8(2),
49 B(Star), R(0),
48 B(LdaSmi), U8(1), 50 B(LdaSmi), U8(1),
49 B(DeletePropertyStrict), R(0), 51 B(DeletePropertyStrict), R(0),
50 /* 71 S> */ B(Return), 52 /* 71 S> */ B(Return),
51 ] 53 ]
52 constant pool: [ 54 constant pool: [
53 ] 55 ]
54 handlers: [ 56 handlers: [
55 ] 57 ]
56 58
57 --- 59 ---
58 snippet: " 60 snippet: "
59 var a = {x:13, y:14}; 61 var a = {x:13, y:14};
60 function f() { 62 function f() {
61 return delete a; 63 return delete a;
62 }; 64 };
63 f(); 65 f();
64 " 66 "
65 frame size: 2 67 frame size: 2
66 parameter count: 1 68 parameter count: 1
67 bytecode array length: 14 69 bytecode array length: 16
68 bytecodes: [ 70 bytecodes: [
69 /* 32 E> */ B(StackCheck), 71 /* 32 E> */ B(StackCheck),
70 /* 39 S> */ B(LdrCurrentContextSlot), U8(3), R(0), 72 /* 39 S> */ B(LdaCurrentContextSlot), U8(3),
71 B(LdrContextSlot), R(0), U8(2), U8(0), R(1), 73 B(Star), R(0),
74 B(LdaContextSlot), R(0), U8(2), U8(0),
75 B(Star), R(1),
72 B(LdaConstant), U8(0), 76 B(LdaConstant), U8(0),
73 B(DeletePropertySloppy), R(1), 77 B(DeletePropertySloppy), R(1),
74 /* 56 S> */ B(Return), 78 /* 56 S> */ B(Return),
75 ] 79 ]
76 constant pool: [ 80 constant pool: [
77 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], 81 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
78 ] 82 ]
79 handlers: [ 83 handlers: [
80 ] 84 ]
81 85
82 --- 86 ---
83 snippet: " 87 snippet: "
84 b = 30; 88 b = 30;
85 function f() { 89 function f() {
86 return delete b; 90 return delete b;
87 }; 91 };
88 f(); 92 f();
89 " 93 "
90 frame size: 2 94 frame size: 2
91 parameter count: 1 95 parameter count: 1
92 bytecode array length: 14 96 bytecode array length: 16
93 bytecodes: [ 97 bytecodes: [
94 /* 18 E> */ B(StackCheck), 98 /* 18 E> */ B(StackCheck),
95 /* 25 S> */ B(LdrCurrentContextSlot), U8(3), R(0), 99 /* 25 S> */ B(LdaCurrentContextSlot), U8(3),
96 B(LdrContextSlot), R(0), U8(2), U8(0), R(1), 100 B(Star), R(0),
101 B(LdaContextSlot), R(0), U8(2), U8(0),
102 B(Star), R(1),
97 B(LdaConstant), U8(0), 103 B(LdaConstant), U8(0),
98 B(DeletePropertySloppy), R(1), 104 B(DeletePropertySloppy), R(1),
99 /* 42 S> */ B(Return), 105 /* 42 S> */ B(Return),
100 ] 106 ]
101 constant pool: [ 107 constant pool: [
102 ONE_BYTE_INTERNALIZED_STRING_TYPE ["b"], 108 ONE_BYTE_INTERNALIZED_STRING_TYPE ["b"],
103 ] 109 ]
104 handlers: [ 110 handlers: [
105 ] 111 ]
106 112
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698