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

Unified Diff: runtime/vm/intermediate_language_ia32.cc

Issue 10538064: Implement inlined LoadIndexed operation for arrays on x64. (Closed) Base URL: https://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
Index: runtime/vm/intermediate_language_ia32.cc
diff --git a/runtime/vm/intermediate_language_ia32.cc b/runtime/vm/intermediate_language_ia32.cc
index 2f3bb5d2f5c205ece6e23a7a9b0f6e4d3b5aac5d..49b60e38110e1564dd78000abaeb9b9d975965c4 100644
--- a/runtime/vm/intermediate_language_ia32.cc
+++ b/runtime/vm/intermediate_language_ia32.cc
@@ -266,6 +266,27 @@ void NativeCallComp::EmitNativeCode(FlowGraphCompiler* compiler) {
}
+LocationSummary* LoadIndexedComp::MakeLocationSummary() const {
+ return MakeCallSummary();
+}
+
+
+void LoadIndexedComp::EmitNativeCode(FlowGraphCompiler* compiler) {
+ const String& function_name =
+ String::ZoneHandle(String::NewSymbol(Token::Str(Token::kINDEX)));
+
+ const intptr_t kNumArguments = 2;
+ const intptr_t kNumArgsChecked = 1; // Type-feedback.
+ compiler->GenerateInstanceCall(cid(),
+ token_index(),
+ try_index(),
+ function_name,
+ kNumArguments,
+ Array::ZoneHandle(), // No optional arguments.
+ kNumArgsChecked);
+}
+
+
LocationSummary* StoreIndexedComp::MakeLocationSummary() const {
const intptr_t kNumInputs = 3;
return LocationSummary::Make(kNumInputs, Location::NoLocation());

Powered by Google App Engine
This is Rietveld 408576698