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

Unified Diff: runtime/vm/class_table.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/class_finalizer.cc ('k') | runtime/vm/code_generator_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/class_table.cc
===================================================================
--- runtime/vm/class_table.cc (revision 8135)
+++ runtime/vm/class_table.cc (working copy)
@@ -27,9 +27,9 @@
for (intptr_t i = kObject; i < kInstance; i++) {
table_[i] = vm_class_table->At(i);
}
- table_[kNullClassIndex] = vm_class_table->At(kNullClassIndex);
- table_[kDynamicClassIndex] = vm_class_table->At(kDynamicClassIndex);
- table_[kVoidClassIndex] = vm_class_table->At(kVoidClassIndex);
+ table_[kNullClassId] = vm_class_table->At(kNullClassId);
+ table_[kDynamicClassId] = vm_class_table->At(kDynamicClassId);
+ table_[kVoidClassId] = vm_class_table->At(kVoidClassId);
}
}
@@ -40,7 +40,7 @@
void ClassTable::Register(const Class& cls) {
- intptr_t index = cls.index();
+ intptr_t index = cls.id();
if (index != kIllegalObjectKind) {
ASSERT(index > 0);
ASSERT(index < kNumPredefinedKinds);
@@ -60,7 +60,7 @@
table_ = new_table;
}
ASSERT(top_ < capacity_);
- cls.set_index(top_);
+ cls.set_id(top_);
table_[top_] = cls.raw();
top_++; // Increment next index.
}
« no previous file with comments | « runtime/vm/class_finalizer.cc ('k') | runtime/vm/code_generator_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698