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

Unified Diff: runtime/vm/stub_code_x64.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/stub_code_ia32.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stub_code_x64.cc
===================================================================
--- runtime/vm/stub_code_x64.cc (revision 8135)
+++ runtime/vm/stub_code_x64.cc (working copy)
@@ -688,7 +688,7 @@
__ Bind(&done);
// Get the class index and insert it into the tags.
- __ orq(RBX, Immediate(RawObject::ClassTag::encode(kArray)));
+ __ orq(RBX, Immediate(RawObject::ClassIdTag::encode(kArray)));
__ movq(FieldAddress(RAX, Array::tags_offset()), RBX);
}
@@ -1017,7 +1017,7 @@
// R10: number of context variables.
// R13: size and bit tags.
__ orq(R13,
- Immediate(RawObject::ClassTag::encode(context_class.index())));
+ Immediate(RawObject::ClassIdTag::encode(context_class.id())));
__ movq(FieldAddress(RAX, Context::tags_offset()), R13); // Tags.
}
@@ -1160,7 +1160,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);
__ movq(Address(RCX, Instance::tags_offset()), Immediate(tags));
// Set the new InstantiatedTypeArguments object (RCX) as the type
// arguments (RDI) of the new object (RAX).
@@ -1182,8 +1182,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);
__ movq(Address(RAX, Instance::tags_offset()), Immediate(tags));
// Initialize the remaining words of the object.
@@ -1337,7 +1337,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);
__ movq(Address(RAX, Closure::tags_offset()), Immediate(tags));
// Initialize the function field in the object.
@@ -1365,7 +1365,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);
__ movq(Address(RBX, Context::tags_offset()), Immediate(tags));
// Set number of variables field to 1 (for captured receiver).
« no previous file with comments | « runtime/vm/stub_code_ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698