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

Unified Diff: runtime/vm/object.h

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/intrinsifier_ia32.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
===================================================================
--- runtime/vm/object.h (revision 8135)
+++ runtime/vm/object.h (working copy)
@@ -372,7 +372,7 @@
RawObject* raw_; // The raw object reference.
private:
- static void InitializeObject(uword address, intptr_t index, intptr_t size);
+ static void InitializeObject(uword address, intptr_t id, intptr_t size);
cpp_vtable* vtable_address() const {
uword vtable_addr = reinterpret_cast<uword>(this);
@@ -464,9 +464,9 @@
raw_ptr()->instance_kind_ = value;
}
- intptr_t index() const { return raw_ptr()->index_; }
- void set_index(intptr_t value) const {
- raw_ptr()->index_ = value;
+ intptr_t id() const { return raw_ptr()->id_; }
+ void set_id(intptr_t value) const {
+ raw_ptr()->id_ = value;
}
RawString* Name() const;
@@ -733,7 +733,7 @@
const String& name) const;
// Allocate an instance class which has a VM implementation.
- template <class FakeInstance> static RawClass* New(intptr_t index);
+ template <class FakeInstance> static RawClass* New(intptr_t id);
template <class FakeInstance> static RawClass* New(const String& name,
const Script& script,
intptr_t token_index);
@@ -871,11 +871,6 @@
// Check the subtype relationship.
bool IsSubtypeOf(const AbstractType& other, Error* malformed_error) const;
- static RawAbstractType* NewTypeParameter(const Class& parameterized_class,
- intptr_t index,
- const String& name,
- intptr_t token_index);
-
protected:
HEAP_OBJECT_IMPLEMENTATION(AbstractType, Object);
friend class Class;
@@ -4887,10 +4882,10 @@
return Smi::Class();
}
RawClass* result = raw_->ptr()->class_;
- ASSERT(result->ptr()->index_ ==
- RawObject::ClassTag::decode(raw_->ptr()->tags_));
+ ASSERT(result->ptr()->id_ ==
+ RawObject::ClassIdTag::decode(raw_->ptr()->tags_));
ASSERT(Isolate::Current()->class_table()->At(
- RawObject::ClassTag::decode(raw_->ptr()->tags_)) == result);
+ RawObject::ClassIdTag::decode(raw_->ptr()->tags_)) == result);
return result;
}
« no previous file with comments | « runtime/vm/intrinsifier_ia32.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698