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

Unified Diff: runtime/vm/intermediate_language_x64.cc

Issue 10581006: Replace class with class ids inside ICData (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/object.h » ('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 8852)
+++ runtime/vm/intermediate_language_x64.cc (working copy)
@@ -1604,9 +1604,9 @@
ASSERT(ic_data.num_args_tested() == 1);
// TODO(srdjan): Implement for more checks.
ASSERT(ic_data.NumberOfChecks() == 1);
- Class& test_class = Class::Handle();
+ intptr_t test_class_id;
Function& target = Function::Handle();
- ic_data.GetOneClassCheckAt(0, &test_class, &target);
+ ic_data.GetOneClassCheckAt(0, &test_class_id, &target);
Register value = locs()->in(0).reg();
Register result = locs()->out().reg();
@@ -1616,7 +1616,7 @@
instance_call()->try_index(),
kDeoptSmiBinaryOp,
value);
- if (test_class.id() == kSmi) {
+ if (test_class_id == kSmi) {
__ testq(value, Immediate(kSmiTagMask));
__ j(NOT_ZERO, deopt);
switch (op_kind()) {
@@ -1657,9 +1657,9 @@
// TODO(srdjan): Implement for more checks.
ASSERT(ic_data.NumberOfChecks() == 1);
- Class& test_class = Class::Handle();
+ intptr_t test_class_id;
Function& target = Function::Handle();
- ic_data.GetOneClassCheckAt(0, &test_class, &target);
+ ic_data.GetOneClassCheckAt(0, &test_class_id, &target);
Register value = locs()->in(0).reg();
Register result = locs()->out().reg();
@@ -1669,7 +1669,7 @@
instance_call()->try_index(),
kDeoptSmiBinaryOp,
value);
- if (test_class.id() == kDouble) {
+ if (test_class_id == kDouble) {
Register temp = locs()->temp(0).reg();
__ testq(value, Immediate(kSmiTagMask));
__ j(ZERO, deopt); // Smi.
« no previous file with comments | « runtime/vm/intermediate_language_ia32.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698