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

Side by Side Diff: runtime/vm/intermediate_language_ia32.cc

Issue 10500005: More shared code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
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
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/globals.h" // Needed here to get TARGET_ARCH_IA32. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32.
6 #if defined(TARGET_ARCH_IA32) 6 #if defined(TARGET_ARCH_IA32)
7 7
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "vm/flow_graph_compiler.h" 10 #include "vm/flow_graph_compiler.h"
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 return MakeCallSummary(); 227 return MakeCallSummary();
228 } 228 }
229 229
230 230
231 void InstanceCallComp::EmitNativeCode(FlowGraphCompiler* compiler) { 231 void InstanceCallComp::EmitNativeCode(FlowGraphCompiler* compiler) {
232 ASSERT(VerifyCallComputation(this)); 232 ASSERT(VerifyCallComputation(this));
233 compiler->AddCurrentDescriptor(PcDescriptors::kDeopt, 233 compiler->AddCurrentDescriptor(PcDescriptors::kDeopt,
234 cid(), 234 cid(),
235 token_index(), 235 token_index(),
236 try_index()); 236 try_index());
237 compiler->EmitInstanceCall(cid(), 237 compiler->GenerateInstanceCall(cid(),
238 token_index(), 238 token_index(),
239 try_index(), 239 try_index(),
240 function_name(), 240 function_name(),
241 ArgumentCount(), 241 ArgumentCount(),
242 argument_names(), 242 argument_names(),
243 checked_argument_count()); 243 checked_argument_count());
244 } 244 }
245 245
246 246
247 LocationSummary* StaticCallComp::MakeLocationSummary() const { 247 LocationSummary* StaticCallComp::MakeLocationSummary() const {
248 return MakeCallSummary(); 248 return MakeCallSummary();
249 } 249 }
250 250
251 251
252 void StaticCallComp::EmitNativeCode(FlowGraphCompiler* compiler) { 252 void StaticCallComp::EmitNativeCode(FlowGraphCompiler* compiler) {
253 ASSERT(VerifyCallComputation(this)); 253 ASSERT(VerifyCallComputation(this));
254 compiler->EmitStaticCall(token_index(), 254 compiler->GenerateStaticCall(cid(),
255 try_index(), 255 token_index(),
256 function(), 256 try_index(),
257 ArgumentCount(), 257 function(),
258 argument_names()); 258 ArgumentCount(),
259 argument_names());
259 } 260 }
260 261
261 262
262 LocationSummary* LoadLocalComp::MakeLocationSummary() const { 263 LocationSummary* LoadLocalComp::MakeLocationSummary() const {
263 return LocationSummary::Make(0, Location::RequiresRegister()); 264 return LocationSummary::Make(0, Location::RequiresRegister());
264 } 265 }
265 266
266 267
267 void LoadLocalComp::EmitNativeCode(FlowGraphCompiler* compiler) { 268 void LoadLocalComp::EmitNativeCode(FlowGraphCompiler* compiler) {
268 Register result = locs()->out().reg(); 269 Register result = locs()->out().reg();
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 UNREACHABLE(); 742 UNREACHABLE();
742 } 743 }
743 } 744 }
744 745
745 746
746 } // namespace dart 747 } // namespace dart
747 748
748 #undef __ 749 #undef __
749 750
750 #endif // defined TARGET_ARCH_X64 751 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698