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

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

Issue 2411873004: [ignition] Eliminate hole checks where statically possible for loads and stores (Closed)
Patch Set: Rebased Created 4 years, 2 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
1 # 1 #
2 # Autogenerated by generate-bytecode-expectations. 2 # Autogenerated by generate-bytecode-expectations.
3 # 3 #
4 4
5 --- 5 ---
6 wrap: yes 6 wrap: yes
7 7
8 --- 8 ---
9 snippet: " 9 snippet: "
10 const x = 10; function f1() {return x;} 10 const x = 10; function f1() {return x;}
(...skipping 17 matching lines...) Expand all
28 constant pool: [ 28 constant pool: [
29 SHARED_FUNCTION_INFO_TYPE, 29 SHARED_FUNCTION_INFO_TYPE,
30 ] 30 ]
31 handlers: [ 31 handlers: [
32 ] 32 ]
33 33
34 --- 34 ---
35 snippet: " 35 snippet: "
36 const x = 10; function f1() {return x;} return x; 36 const x = 10; function f1() {return x;} return x;
37 " 37 "
38 frame size: 3 38 frame size: 2
39 parameter count: 1 39 parameter count: 1
40 bytecode array length: 37 40 bytecode array length: 26
41 bytecodes: [ 41 bytecodes: [
42 B(CreateFunctionContext), U8(1), 42 B(CreateFunctionContext), U8(1),
43 B(PushContext), R(1), 43 B(PushContext), R(1),
44 B(LdaTheHole), 44 B(LdaTheHole),
45 B(StaContextSlot), R(context), U8(4), U8(0), 45 B(StaContextSlot), R(context), U8(4), U8(0),
46 B(CreateClosure), U8(0), U8(2), 46 B(CreateClosure), U8(0), U8(2),
47 B(Star), R(0), 47 B(Star), R(0),
48 /* 30 E> */ B(StackCheck), 48 /* 30 E> */ B(StackCheck),
49 /* 44 S> */ B(LdaSmi), U8(10), 49 /* 44 S> */ B(LdaSmi), U8(10),
50 /* 44 E> */ B(StaContextSlot), R(context), U8(4), U8(0), 50 /* 44 E> */ B(StaContextSlot), R(context), U8(4), U8(0),
51 /* 74 S> */ B(LdaContextSlot), R(context), U8(4), U8(0), 51 /* 74 S> */ B(LdaContextSlot), R(context), U8(4), U8(0),
52 B(JumpIfNotHole), U8(11),
53 B(LdaConstant), U8(1),
54 B(Star), R(2),
55 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1),
56 /* 84 S> */ B(Return), 52 /* 84 S> */ B(Return),
57 ] 53 ]
58 constant pool: [ 54 constant pool: [
59 SHARED_FUNCTION_INFO_TYPE, 55 SHARED_FUNCTION_INFO_TYPE,
60 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
61 ] 56 ]
62 handlers: [ 57 handlers: [
63 ] 58 ]
64 59
65 --- 60 ---
66 snippet: " 61 snippet: "
67 const x = (x = 20); function f1() {return x;} 62 const x = (x = 20); function f1() {return x;}
68 " 63 "
69 frame size: 4 64 frame size: 4
70 parameter count: 1 65 parameter count: 1
(...skipping 22 matching lines...) Expand all
93 SHARED_FUNCTION_INFO_TYPE, 88 SHARED_FUNCTION_INFO_TYPE,
94 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], 89 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
95 ] 90 ]
96 handlers: [ 91 handlers: [
97 ] 92 ]
98 93
99 --- 94 ---
100 snippet: " 95 snippet: "
101 const x = 10; x = 20; function f1() {return x;} 96 const x = 10; x = 20; function f1() {return x;}
102 " 97 "
103 frame size: 4 98 frame size: 2
104 parameter count: 1 99 parameter count: 1
105 bytecode array length: 47 100 bytecode array length: 30
106 bytecodes: [ 101 bytecodes: [
107 B(CreateFunctionContext), U8(1), 102 B(CreateFunctionContext), U8(1),
108 B(PushContext), R(1), 103 B(PushContext), R(1),
109 B(LdaTheHole), 104 B(LdaTheHole),
110 B(StaContextSlot), R(context), U8(4), U8(0), 105 B(StaContextSlot), R(context), U8(4), U8(0),
111 B(CreateClosure), U8(0), U8(2), 106 B(CreateClosure), U8(0), U8(2),
112 B(Star), R(0), 107 B(Star), R(0),
113 /* 30 E> */ B(StackCheck), 108 /* 30 E> */ B(StackCheck),
114 /* 44 S> */ B(LdaSmi), U8(10), 109 /* 44 S> */ B(LdaSmi), U8(10),
115 /* 44 E> */ B(StaContextSlot), R(context), U8(4), U8(0), 110 /* 44 E> */ B(StaContextSlot), R(context), U8(4), U8(0),
116 /* 48 S> */ B(LdaSmi), U8(20), 111 /* 48 S> */ B(LdaSmi), U8(20),
117 B(Star), R(2), 112 /* 50 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0 ),
118 /* 50 E> */ B(LdaContextSlot), R(context), U8(4), U8(0),
119 B(JumpIfNotHole), U8(11),
120 B(LdaConstant), U8(1),
121 B(Star), R(3),
122 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
123 B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0 ),
124 B(LdaUndefined), 113 B(LdaUndefined),
125 /* 82 S> */ B(Return), 114 /* 82 S> */ B(Return),
126 ] 115 ]
127 constant pool: [ 116 constant pool: [
128 SHARED_FUNCTION_INFO_TYPE, 117 SHARED_FUNCTION_INFO_TYPE,
129 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
130 ] 118 ]
131 handlers: [ 119 handlers: [
132 ] 120 ]
133 121
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698