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

Unified Diff: vm/stub_code_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/stub_code_ia32.cc ('k') | vm/symbols.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/stub_code_x64.cc
===================================================================
--- vm/stub_code_x64.cc (revision 10409)
+++ vm/stub_code_x64.cc (working copy)
@@ -697,7 +697,7 @@
__ Bind(&done);
// Get the class index and insert it into the tags.
- __ orq(RBX, Immediate(RawObject::ClassIdTag::encode(kArray)));
+ __ orq(RBX, Immediate(RawObject::ClassIdTag::encode(kArrayCid)));
__ movq(FieldAddress(RAX, Array::tags_offset()), RBX);
}
@@ -1230,7 +1230,7 @@
// Set the tags.
uword tags = 0;
tags = RawObject::SizeTag::update(instance_size, tags);
- ASSERT(cls.id() != kIllegalObjectKind);
+ ASSERT(cls.id() != kIllegalCid);
tags = RawObject::ClassIdTag::update(cls.id(), tags);
__ movq(Address(RAX, Instance::tags_offset()), Immediate(tags));
@@ -1620,7 +1620,7 @@
__ cmpq(RAX, R13); // Match?
__ j(EQUAL, &found, Assembler::kNearJump);
__ addq(R12, Immediate(kWordSize * 2)); // Next element (class + target).
- __ cmpq(R13, Immediate(Smi::RawValue(kIllegalObjectKind))); // Done?
+ __ cmpq(R13, Immediate(Smi::RawValue(kIllegalCid))); // Done?
__ j(NOT_EQUAL, &loop, Assembler::kNearJump);
} else if (num_args == 2) {
Label no_match;
@@ -1642,7 +1642,7 @@
__ j(EQUAL, &found);
__ Bind(&no_match);
__ addq(R12, Immediate(kWordSize * (1 + num_args))); // Next element.
- __ cmpq(R13, Immediate(Smi::RawValue(kIllegalObjectKind))); // Done?
+ __ cmpq(R13, Immediate(Smi::RawValue(kIllegalCid))); // Done?
__ j(NOT_EQUAL, &loop, Assembler::kNearJump);
}
@@ -1697,7 +1697,7 @@
// Test if Smi -> load Smi class for comparison.
__ testq(RAX, Immediate(kSmiTagMask));
__ j(NOT_ZERO, &not_smi, Assembler::kNearJump);
- __ movq(RAX, Immediate(Smi::RawValue(kSmi)));
+ __ movq(RAX, Immediate(Smi::RawValue(kSmiCid)));
__ ret();
__ Bind(&not_smi);
« no previous file with comments | « vm/stub_code_ia32.cc ('k') | vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698