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

Unified Diff: vm/flow_graph_compiler_x64.cc

Issue 10827209: Unify class ids and snapshot object ids list so that we don't have disparate and sometimes confusin… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 4 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/flow_graph_compiler_ia32.cc ('k') | vm/flow_graph_optimizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/flow_graph_compiler_x64.cc
===================================================================
--- vm/flow_graph_compiler_x64.cc (revision 10409)
+++ vm/flow_graph_compiler_x64.cc (working copy)
@@ -264,7 +264,7 @@
// Bool interface can be implemented only by core class Bool.
// (see ClassFinalizer::ResolveInterfaces for list of restricted interfaces).
if (type.IsBoolInterface()) {
- __ cmpl(kClassIdReg, Immediate(kBool));
+ __ cmpl(kClassIdReg, Immediate(kBoolCid));
__ j(EQUAL, is_instance_lbl);
__ jmp(is_not_instance_lbl);
return false;
@@ -351,7 +351,7 @@
// Can handle only type arguments that are instances of TypeArguments.
// (runtime checks canonicalize type arguments).
Label fall_through;
- __ CompareClassId(RDX, kTypeArguments);
+ __ CompareClassId(RDX, kTypeArgumentsCid);
__ j(NOT_EQUAL, &fall_through);
__ movq(RDI,
FieldAddress(RDX, TypeArguments::type_at_offset(type_param.index())));
@@ -890,7 +890,7 @@
__ movq(RAX, Address(RSP, 0));
__ testq(RAX, Immediate(kSmiTagMask));
__ j(ZERO, &smi_to_double);
- __ CompareClassId(RAX, kDouble);
+ __ CompareClassId(RAX, kDoubleCid);
__ j(NOT_EQUAL, &call_method);
__ movsd(XMM1, FieldAddress(RAX, Double::value_offset()));
__ Bind(&double_op);
@@ -1067,7 +1067,7 @@
Register temp_reg,
Label* deopt) {
Label ok;
- ASSERT(ic_data.GetReceiverClassIdAt(0) != kSmi);
+ ASSERT(ic_data.GetReceiverClassIdAt(0) != kSmiCid);
__ testq(instance_reg, Immediate(kSmiTagMask));
__ j(ZERO, deopt);
Label is_ok;
@@ -1097,7 +1097,7 @@
Label is_smi, done;
__ testq(reg, Immediate(kSmiTagMask));
__ j(ZERO, &is_smi);
- __ CompareClassId(reg, kDouble);
+ __ CompareClassId(reg, kDoubleCid);
__ j(NOT_EQUAL, not_double_or_smi);
__ movsd(result, FieldAddress(reg, Double::value_offset()));
__ jmp(&done);
« no previous file with comments | « vm/flow_graph_compiler_ia32.cc ('k') | vm/flow_graph_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698