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

Unified Diff: runtime/vm/stub_code_x64.cc

Issue 10796103: Use kIllegalObjectKind instead of NULL object to terminate ICData array (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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 9834)
+++ runtime/vm/stub_code_x64.cc (working copy)
@@ -1589,7 +1589,7 @@
__ cmpq(RAX, R13); // Match?
__ j(EQUAL, &found, Assembler::kNearJump);
__ addq(R12, Immediate(kWordSize * 2)); // Next element (class + target).
- __ cmpq(R13, raw_null); // Done?
+ __ cmpq(R13, Immediate(Smi::RawValue(kIllegalObjectKind))); // Done?
__ j(NOT_EQUAL, &loop, Assembler::kNearJump);
} else if (num_args == 2) {
Label no_match;
@@ -1611,7 +1611,7 @@
__ j(EQUAL, &found);
__ Bind(&no_match);
__ addq(R12, Immediate(kWordSize * (1 + num_args))); // Next element.
- __ cmpq(R13, raw_null); // Done?
+ __ cmpq(R13, Immediate(Smi::RawValue(kIllegalObjectKind))); // Done?
__ j(NOT_EQUAL, &loop, Assembler::kNearJump);
}
« 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