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

Unified Diff: vm/ic_data.cc

Issue 8404009: Restructure instance calls in optimizing compiler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 years, 2 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 | « vm/ic_data.h ('k') | vm/ic_data_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/ic_data.cc
===================================================================
--- vm/ic_data.cc (revision 834)
+++ vm/ic_data.cc (working copy)
@@ -100,6 +100,19 @@
}
+void ICData::GetOneClassCheckAt(intptr_t index,
+ Class* cls,
+ Function* target) const {
+ ASSERT(cls != NULL);
+ ASSERT(target != NULL);
+ ASSERT((0 <= index) && (index < NumberOfChecks()));
+ ASSERT(NumberOfArgumentsChecked() == 1);
+ intptr_t pos = 1 + 1 + ArrayElementsPerCheck() * index;
+ *cls ^= data_->At(pos);
+ (*target) ^= data_->At(pos + 1);
+}
+
+
void ICData::GetCheckAt(intptr_t index,
GrowableArray<const Class*>* classes,
Function* target) const {
« no previous file with comments | « vm/ic_data.h ('k') | vm/ic_data_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698