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

Unified Diff: runtime/vm/intermediate_language_x64.cc

Issue 10534105: Implement is32 LoadIndexed. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/intermediate_language_ia32.cc ('k') | runtime/vm/intrinsifier_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language_x64.cc
===================================================================
--- runtime/vm/intermediate_language_x64.cc (revision 8552)
+++ runtime/vm/intermediate_language_x64.cc (working copy)
@@ -440,32 +440,10 @@
}
-static void EmitLoadIndexedGeneric(FlowGraphCompiler* compiler,
- LoadIndexedComp* comp) {
- const String& function_name =
- String::ZoneHandle(String::NewSymbol(Token::Str(Token::kINDEX)));
-
- compiler->AddCurrentDescriptor(PcDescriptors::kDeopt,
- comp->cid(),
- comp->token_index(),
- comp->try_index());
-
- const intptr_t kNumArguments = 2;
- const intptr_t kNumArgsChecked = 1; // Type-feedback.
- compiler->GenerateInstanceCall(comp->cid(),
- comp->token_index(),
- comp->try_index(),
- function_name,
- kNumArguments,
- Array::ZoneHandle(), // No optional arguments.
- kNumArgsChecked);
- ASSERT(comp->locs()->out().reg() == RAX);
-}
-
-
void LoadIndexedComp::EmitNativeCode(FlowGraphCompiler* compiler) {
if (receiver_type() == kIllegalObjectKind) {
- EmitLoadIndexedGeneric(compiler, this);
+ compiler->EmitLoadIndexedGeneric(this);
+ ASSERT(locs()->out().reg() == RAX);
return;
}
« no previous file with comments | « runtime/vm/intermediate_language_ia32.cc ('k') | runtime/vm/intrinsifier_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698