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

Unified Diff: runtime/vm/stub_code_ia32.cc

Issue 10441111: - Rename class index to class id. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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/snapshot.cc ('k') | runtime/vm/stub_code_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stub_code_ia32.cc
===================================================================
--- runtime/vm/stub_code_ia32.cc (revision 8135)
+++ runtime/vm/stub_code_ia32.cc (working copy)
@@ -702,7 +702,7 @@
__ Bind(&done);
// Get the class index and insert it into the tags.
- __ orl(ECX, Immediate(RawObject::ClassTag::encode(kArray)));
+ __ orl(ECX, Immediate(RawObject::ClassIdTag::encode(kArray)));
__ movl(FieldAddress(EAX, Array::tags_offset()), ECX);
}
@@ -1032,7 +1032,7 @@
// EDX: number of context variables.
// EBX: size and bit tags.
__ orl(EBX,
- Immediate(RawObject::ClassTag::encode(context_class.index())));
+ Immediate(RawObject::ClassIdTag::encode(context_class.id())));
__ movl(FieldAddress(EAX, Context::tags_offset()), EBX); // Tags.
}
@@ -1174,7 +1174,7 @@
// Set the tags.
uword tags = 0;
tags = RawObject::SizeTag::update(type_args_size, tags);
- tags = RawObject::ClassTag::update(ita_cls.index(), tags);
+ tags = RawObject::ClassIdTag::update(ita_cls.id(), tags);
__ movl(Address(ECX, Instance::tags_offset()), Immediate(tags));
// Set the new InstantiatedTypeArguments object (ECX) as the type
// arguments (EDI) of the new object (EAX).
@@ -1196,8 +1196,8 @@
// Set the tags.
uword tags = 0;
tags = RawObject::SizeTag::update(instance_size, tags);
- ASSERT(cls.index() != kIllegalObjectKind);
- tags = RawObject::ClassTag::update(cls.index(), tags);
+ ASSERT(cls.id() != kIllegalObjectKind);
+ tags = RawObject::ClassIdTag::update(cls.id(), tags);
__ movl(Address(EAX, Instance::tags_offset()), Immediate(tags));
// Initialize the remaining words of the object.
@@ -1350,7 +1350,7 @@
// Set the tags.
uword tags = 0;
tags = RawObject::SizeTag::update(closure_size, tags);
- tags = RawObject::ClassTag::update(cls.index(), tags);
+ tags = RawObject::ClassIdTag::update(cls.id(), tags);
__ movl(Address(EAX, Closure::tags_offset()), Immediate(tags));
// Initialize the function field in the object.
@@ -1378,7 +1378,7 @@
// Set the tags.
uword tags = 0;
tags = RawObject::SizeTag::update(context_size, tags);
- tags = RawObject::ClassTag::update(context_class.index(), tags);
+ tags = RawObject::ClassIdTag::update(context_class.id(), tags);
__ movl(Address(ECX, Context::tags_offset()), Immediate(tags));
// Set number of variables field to 1 (for captured receiver).
« no previous file with comments | « runtime/vm/snapshot.cc ('k') | runtime/vm/stub_code_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698