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

Unified Diff: runtime/vm/intermediate_language_ia32.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/flow_graph_optimizer.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_ia32.cc
===================================================================
--- runtime/vm/intermediate_language_ia32.cc (revision 8852)
+++ runtime/vm/intermediate_language_ia32.cc (working copy)
@@ -1587,9 +1587,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();
@@ -1599,7 +1599,7 @@
instance_call()->try_index(),
kDeoptSmiBinaryOp,
value);
- if (test_class.id() == kSmi) {
+ if (test_class_id == kSmi) {
__ testl(value, Immediate(kSmiTagMask));
__ j(NOT_ZERO, deopt);
switch (op_kind()) {
@@ -1640,9 +1640,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();
@@ -1652,7 +1652,7 @@
instance_call()->try_index(),
kDeoptSmiBinaryOp,
value);
- if (test_class.id() == kDouble) {
+ if (test_class_id == kDouble) {
Register temp = locs()->temp(0).reg();
ASSERT(result != temp);
__ testl(value, Immediate(kSmiTagMask));
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698