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

Unified Diff: runtime/vm/opt_code_generator_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/object.cc ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/opt_code_generator_ia32.cc
===================================================================
--- runtime/vm/opt_code_generator_ia32.cc (revision 8135)
+++ runtime/vm/opt_code_generator_ia32.cc (working copy)
@@ -1426,7 +1426,7 @@
for (intptr_t i = 0; i < ic_data.NumberOfChecks(); i++) {
Class& cls = Class::Handle();
ic_data.GetOneClassCheckAt(i, &cls, &target);
- __ cmpl(EAX, Immediate(cls.index()));
+ __ cmpl(EAX, Immediate(cls.id()));
if (i == (ic_data.NumberOfChecks() - 1)) {
__ j(NOT_EQUAL, deopt_blob->label());
} else {
@@ -1638,7 +1638,7 @@
if (unique_target) {
Label store_field;
for (intptr_t i = 0; i < classes.length(); i++) {
- __ cmpl(EBX, Immediate(classes[i]->index()));
+ __ cmpl(EBX, Immediate(classes[i]->id()));
if (i == (classes.length() - 1)) {
__ j(NOT_EQUAL, deopt_blob->label());
} else {
@@ -1656,7 +1656,7 @@
for (intptr_t i = 0; i < classes.length(); i++) {
setter_args.cls = classes[i];
setter_args.target = targets[i];
- __ cmpl(EBX, Immediate(classes[i]->index()));
+ __ cmpl(EBX, Immediate(classes[i]->id()));
if (i == (classes.length() - 1)) {
__ j(NOT_EQUAL, deopt_blob->label());
GenerateInstanceSetter(setter_args);
@@ -1995,7 +1995,7 @@
__ LoadClassIndexOfObject(EBX, EAX);
for (intptr_t i = 0; i < num_classes; i++) {
const Class& cls = *(*classes)[i];
- __ cmpl(EBX, Immediate(cls.index()));
+ __ cmpl(EBX, Immediate(cls.id()));
if (i == (num_classes - 1)) {
__ j(NOT_EQUAL, deopt_blob->label());
} else {
@@ -2649,7 +2649,7 @@
for (intptr_t i = start_ix; i < classes.length(); i++) {
const Class& cls = *classes[i];
const Function& target = *targets[i];
- __ cmpl(EAX, Immediate(cls.index()));
+ __ cmpl(EAX, Immediate(cls.id()));
if (i == (classes.length() - 1)) {
// Last check.
DeoptimizationBlob* deopt_blob =
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698