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

Unified Diff: runtime/vm/intermediate_language_mips.cc

Issue 17977002: - Remove arguments definition test from the VM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/intermediate_language_ia32.cc ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language_mips.cc
===================================================================
--- runtime/vm/intermediate_language_mips.cc (revision 24537)
+++ runtime/vm/intermediate_language_mips.cc (working copy)
@@ -268,41 +268,6 @@
}
-LocationSummary* ArgumentDefinitionTestInstr::MakeLocationSummary() const {
- const intptr_t kNumInputs = 1;
- const intptr_t kNumTemps = 0;
- LocationSummary* locs =
- new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kCall);
- locs->set_in(0, Location::RegisterLocation(T0));
- locs->set_out(Location::RegisterLocation(T0));
- return locs;
-}
-
-
-void ArgumentDefinitionTestInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
- Register saved_args_desc = locs()->in(0).reg();
- Register result = locs()->out().reg();
-
- __ TraceSimMsg("ArgumentDefinitionTestInstr");
-
- __ addiu(SP, SP, Immediate(-4 * kWordSize));
- // Push the result place holder initialized to NULL.
- __ LoadObject(TMP1, Object::ZoneHandle());
- __ sw(TMP1, Address(SP, 3 * kWordSize));
- __ LoadImmediate(TMP1, Smi::RawValue(formal_parameter_index()));
- __ sw(TMP1, Address(SP, 2 * kWordSize));
- __ LoadObject(TMP1, formal_parameter_name());
- __ sw(TMP1, Address(SP, 1 * kWordSize));
- __ sw(saved_args_desc, Address(SP, 0 * kWordSize));
- compiler->GenerateCallRuntime(token_pos(),
- deopt_id(),
- kArgumentDefinitionTestRuntimeEntry,
- locs());
- __ lw(result, Address(SP, 3 * kWordSize)); // Pop bool result.
- __ addiu(SP, SP, Immediate(4 * kWordSize));
-}
-
-
LocationSummary* EqualityCompareInstr::MakeLocationSummary() const {
const intptr_t kNumInputs = 2;
if (receiver_class_id() == kMintCid) {
« no previous file with comments | « runtime/vm/intermediate_language_ia32.cc ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698