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

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

Issue 2227203002: [interpreter] Logically separate hole-checking and const assignment errors (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove unused var Created 4 years, 4 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
« no previous file with comments | « test/cctest/interpreter/bytecode_expectations/ConstVariable.golden ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # 1 #
2 # Autogenerated by generate-bytecode-expectations. 2 # Autogenerated by generate-bytecode-expectations.
3 # 3 #
4 4
5 --- 5 ---
6 pool type: mixed 6 pool type: mixed
7 execute: yes 7 execute: yes
8 wrap: yes 8 wrap: yes
9 9
10 --- 10 ---
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 ] 63 ]
64 handlers: [ 64 handlers: [
65 ] 65 ]
66 66
67 --- 67 ---
68 snippet: " 68 snippet: "
69 const x = (x = 20); function f1() {return x;} 69 const x = (x = 20); function f1() {return x;}
70 " 70 "
71 frame size: 4 71 frame size: 4
72 parameter count: 1 72 parameter count: 1
73 bytecode array length: 47 73 bytecode array length: 42
74 bytecodes: [ 74 bytecodes: [
75 B(CreateFunctionContext), U8(1), 75 B(CreateFunctionContext), U8(1),
76 B(PushContext), R(1), 76 B(PushContext), R(1),
77 B(LdaTheHole), 77 B(LdaTheHole),
78 B(StaContextSlot), R(context), U8(4), 78 B(StaContextSlot), R(context), U8(4),
79 B(CreateClosure), U8(0), U8(2), 79 B(CreateClosure), U8(0), U8(2),
80 B(Star), R(0), 80 B(Star), R(0),
81 /* 30 E> */ B(StackCheck), 81 /* 30 E> */ B(StackCheck),
82 /* 47 S> */ B(LdaSmi), U8(20), 82 /* 47 S> */ B(LdaSmi), U8(20),
83 B(Star), R(2), 83 B(Star), R(2),
84 /* 47 E> */ B(LdaContextSlot), R(context), U8(4), 84 /* 47 E> */ B(LdaContextSlot), R(context), U8(4),
85 B(JumpIfNotHole), U8(11), 85 B(JumpIfNotHole), U8(11),
86 B(LdaConstant), U8(1), 86 B(LdaConstant), U8(1),
87 B(Star), R(3), 87 B(Star), R(3),
88 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), 88 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
89 B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0 ), 89 B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0 ),
90 B(Ldar), R(2),
91 B(StaContextSlot), R(context), U8(4),
92 /* 47 E> */ B(StaContextSlot), R(context), U8(4), 90 /* 47 E> */ B(StaContextSlot), R(context), U8(4),
93 B(LdaUndefined), 91 B(LdaUndefined),
94 /* 80 S> */ B(Return), 92 /* 80 S> */ B(Return),
95 ] 93 ]
96 constant pool: [ 94 constant pool: [
97 InstanceType::SHARED_FUNCTION_INFO_TYPE, 95 InstanceType::SHARED_FUNCTION_INFO_TYPE,
98 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 96 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
99 ] 97 ]
100 handlers: [ 98 handlers: [
101 ] 99 ]
102 100
103 --- 101 ---
104 snippet: " 102 snippet: "
105 const x = 10; x = 20; function f1() {return x;} 103 const x = 10; x = 20; function f1() {return x;}
106 " 104 "
107 frame size: 4 105 frame size: 4
108 parameter count: 1 106 parameter count: 1
109 bytecode array length: 49 107 bytecode array length: 44
110 bytecodes: [ 108 bytecodes: [
111 B(CreateFunctionContext), U8(1), 109 B(CreateFunctionContext), U8(1),
112 B(PushContext), R(1), 110 B(PushContext), R(1),
113 B(LdaTheHole), 111 B(LdaTheHole),
114 B(StaContextSlot), R(context), U8(4), 112 B(StaContextSlot), R(context), U8(4),
115 B(CreateClosure), U8(0), U8(2), 113 B(CreateClosure), U8(0), U8(2),
116 B(Star), R(0), 114 B(Star), R(0),
117 /* 30 E> */ B(StackCheck), 115 /* 30 E> */ B(StackCheck),
118 /* 44 S> */ B(LdaSmi), U8(10), 116 /* 44 S> */ B(LdaSmi), U8(10),
119 /* 44 E> */ B(StaContextSlot), R(context), U8(4), 117 /* 44 E> */ B(StaContextSlot), R(context), U8(4),
120 /* 48 S> */ B(LdaSmi), U8(20), 118 /* 48 S> */ B(LdaSmi), U8(20),
121 B(Star), R(2), 119 B(Star), R(2),
122 /* 50 E> */ B(LdaContextSlot), R(context), U8(4), 120 /* 50 E> */ B(LdaContextSlot), R(context), U8(4),
123 B(JumpIfNotHole), U8(11), 121 B(JumpIfNotHole), U8(11),
124 B(LdaConstant), U8(1), 122 B(LdaConstant), U8(1),
125 B(Star), R(3), 123 B(Star), R(3),
126 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), 124 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
127 B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0 ), 125 B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0 ),
128 B(Ldar), R(2),
129 B(StaContextSlot), R(context), U8(4),
130 B(LdaUndefined), 126 B(LdaUndefined),
131 /* 82 S> */ B(Return), 127 /* 82 S> */ B(Return),
132 ] 128 ]
133 constant pool: [ 129 constant pool: [
134 InstanceType::SHARED_FUNCTION_INFO_TYPE, 130 InstanceType::SHARED_FUNCTION_INFO_TYPE,
135 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 131 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
136 ] 132 ]
137 handlers: [ 133 handlers: [
138 ] 134 ]
139 135
OLDNEW
« no previous file with comments | « test/cctest/interpreter/bytecode_expectations/ConstVariable.golden ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698