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

Side by Side Diff: vm/intermediate_language.cc

Issue 10635020: Add new files and data structures for the new register allocator. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/intermediate_language.h" 5 #include "vm/intermediate_language.h"
6 6
7 #include "vm/bit_vector.h" 7 #include "vm/bit_vector.h"
8 #include "vm/flow_graph_builder.h" 8 #include "vm/flow_graph_builder.h"
9 #include "vm/flow_graph_compiler.h" 9 #include "vm/flow_graph_compiler.h"
10 #include "vm/locations.h" 10 #include "vm/locations.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 163
164 void BranchInstr::SetInputAt(intptr_t i, Value* value) { 164 void BranchInstr::SetInputAt(intptr_t i, Value* value) {
165 if (i == 0) { 165 if (i == 0) {
166 value_ = value; 166 value_ = value;
167 return; 167 return;
168 } 168 }
169 UNREACHABLE(); 169 UNREACHABLE();
170 } 170 }
171 171
172 172
173 intptr_t ParallelMoveInstr::InputCount() const {
174 UNREACHABLE();
175 return 0;
176 }
177
178
179 Value* ParallelMoveInstr::InputAt(intptr_t i) const {
180 UNREACHABLE();
181 return NULL;
182 }
183
184
185 void ParallelMoveInstr::SetInputAt(intptr_t i, Value* value) {
186 UNREACHABLE();
187 }
188
189
173 intptr_t ReThrowInstr::InputCount() const { 190 intptr_t ReThrowInstr::InputCount() const {
174 return 2; 191 return 2;
175 } 192 }
176 193
177 194
178 Value* ReThrowInstr::InputAt(intptr_t i) const { 195 Value* ReThrowInstr::InputAt(intptr_t i) const {
179 if (i == 0) return exception(); 196 if (i == 0) return exception();
180 if (i == 1) return stack_trace(); 197 if (i == 1) return stack_trace();
181 UNREACHABLE(); 198 UNREACHABLE();
182 return NULL; 199 return NULL;
(...skipping 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after
1282 const ExternalLabel label(closure_function.ToCString(), stub.EntryPoint()); 1299 const ExternalLabel label(closure_function.ToCString(), stub.EntryPoint());
1283 compiler->GenerateCall(token_index(), try_index(), &label, 1300 compiler->GenerateCall(token_index(), try_index(), &label,
1284 PcDescriptors::kOther); 1301 PcDescriptors::kOther);
1285 __ Drop(2); // Discard type arguments and receiver. 1302 __ Drop(2); // Discard type arguments and receiver.
1286 } 1303 }
1287 1304
1288 1305
1289 #undef __ 1306 #undef __
1290 1307
1291 } // namespace dart 1308 } // namespace dart
OLDNEW
« vm/flow_graph_allocator.h ('K') | « vm/intermediate_language.h ('k') | vm/vm_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698