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

Unified Diff: vm/stub_code_ia32.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/snapshot_ids.h ('k') | vm/stub_code_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/stub_code_ia32.cc
===================================================================
--- vm/stub_code_ia32.cc (revision 10409)
+++ vm/stub_code_ia32.cc (working copy)
@@ -709,7 +709,7 @@
__ Bind(&done);
// Get the class index and insert it into the tags.
- __ orl(ECX, Immediate(RawObject::ClassIdTag::encode(kArray)));
+ __ orl(ECX, Immediate(RawObject::ClassIdTag::encode(kArrayCid)));
__ movl(FieldAddress(EAX, Array::tags_offset()), ECX);
}
@@ -1249,7 +1249,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);
__ movl(Address(EAX, Instance::tags_offset()), Immediate(tags));
@@ -1642,7 +1642,7 @@
__ cmpl(EAX, EDI); // Class id match?
__ j(EQUAL, &found, Assembler::kNearJump);
__ addl(EBX, Immediate(kWordSize * 2)); // Next element (class + target).
- __ cmpl(EDI, Immediate(Smi::RawValue(kIllegalObjectKind))); // Done?
+ __ cmpl(EDI, Immediate(Smi::RawValue(kIllegalCid))); // Done?
__ j(NOT_EQUAL, &loop, Assembler::kNearJump);
} else if (num_args == 2) {
// EDI: class to check.
@@ -1669,7 +1669,7 @@
__ Bind(&no_match);
// Each test entry has (1 + num_args) array elements.
__ addl(EBX, Immediate(kWordSize * (1 + num_args))); // Next element.
- __ cmpl(EDI, Immediate(Smi::RawValue(kIllegalObjectKind))); // Done?
+ __ cmpl(EDI, Immediate(Smi::RawValue(kIllegalCid))); // Done?
__ j(NOT_EQUAL, &loop, Assembler::kNearJump);
}
@@ -1726,7 +1726,7 @@
// Test if Smi -> load Smi class for comparison.
__ testl(EAX, Immediate(kSmiTagMask));
__ j(NOT_ZERO, &not_smi, Assembler::kNearJump);
- __ movl(EAX, Immediate(Smi::RawValue(kSmi)));
+ __ movl(EAX, Immediate(Smi::RawValue(kSmiCid)));
__ ret();
__ Bind(&not_smi);
« no previous file with comments | « vm/snapshot_ids.h ('k') | vm/stub_code_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698