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

Unified Diff: runtime/vm/intermediate_language_x64.cc

Issue 10500005: More shared code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/intermediate_language_x64.cc
===================================================================
--- runtime/vm/intermediate_language_x64.cc (revision 8214)
+++ runtime/vm/intermediate_language_x64.cc (working copy)
@@ -303,13 +303,13 @@
cid(),
token_index(),
try_index());
- compiler->EmitInstanceCall(cid(),
- token_index(),
- try_index(),
- function_name(),
- ArgumentCount(),
- argument_names(),
- checked_argument_count());
+ compiler->GenerateInstanceCall(cid(),
+ token_index(),
+ try_index(),
+ function_name(),
+ ArgumentCount(),
+ argument_names(),
+ checked_argument_count());
}
@@ -320,11 +320,12 @@
void StaticCallComp::EmitNativeCode(FlowGraphCompiler* compiler) {
ASSERT(VerifyCallComputation(this));
- compiler->EmitStaticCall(token_index(),
- try_index(),
- function(),
- ArgumentCount(),
- argument_names());
+ compiler->GenerateStaticCall(cid(),
+ token_index(),
+ try_index(),
+ function(),
+ ArgumentCount(),
+ argument_names());
}
@@ -473,13 +474,13 @@
const Array& kNoArgumentNames = Array::Handle();
const int kNumArgumentsChecked = 1;
- compiler->EmitInstanceCall(cid(),
- token_index(),
- try_index(),
- operator_name,
- kNumberOfArguments,
- kNoArgumentNames,
- kNumArgumentsChecked);
+ compiler->GenerateInstanceCall(cid(),
+ token_index(),
+ try_index(),
+ operator_name,
+ kNumberOfArguments,
+ kNoArgumentNames,
+ kNumArgumentsChecked);
__ Bind(&done);
}
@@ -538,13 +539,13 @@
__ pushq(value);
const intptr_t kNumArguments = 3;
const intptr_t kNumArgsChecked = 1; // Type-feedback.
- compiler->EmitInstanceCall(cid(),
- token_index(),
- try_index(),
- function_name,
- kNumArguments,
- Array::ZoneHandle(), // No optional arguments.
- kNumArgsChecked);
+ compiler->GenerateInstanceCall(cid(),
+ token_index(),
+ try_index(),
+ function_name,
+ kNumArguments,
+ Array::ZoneHandle(), // No optional arguments.
+ kNumArgsChecked);
}
@@ -570,13 +571,13 @@
__ pushq(value);
__ pushq(receiver);
__ pushq(value);
- compiler->EmitInstanceCall(cid(),
- token_index(),
- try_index(),
- function_name,
- 2,
- Array::ZoneHandle(),
- 1);
+ compiler->GenerateInstanceCall(cid(),
+ token_index(),
+ try_index(),
+ function_name,
+ 2,
+ Array::ZoneHandle(),
+ 1);
__ popq(result);
}
@@ -598,11 +599,12 @@
// TODO(fschneider): Avoid preserving the value if the result is not used.
__ pushq(value);
__ pushq(value);
- compiler->EmitStaticCall(token_index(),
- try_index(),
- setter_function(),
- 1,
- Array::ZoneHandle());
+ compiler->GenerateStaticCall(cid(),
+ token_index(),
+ try_index(),
+ setter_function(),
+ 1,
+ Array::ZoneHandle());
__ popq(result);
}
« runtime/vm/flow_graph_compiler_shared.h ('K') | « runtime/vm/intermediate_language_ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698