Index: runtime/vm/stub_code_x64.cc |
diff --git a/runtime/vm/stub_code_x64.cc b/runtime/vm/stub_code_x64.cc |
index ea58adb223aa06383185a7d5e4a2da8c0e55914b..39d8dc96b0b2c7e2d040fa48f1b89270e7cceed6 100644 |
--- a/runtime/vm/stub_code_x64.cc |
+++ b/runtime/vm/stub_code_x64.cc |
@@ -2163,8 +2163,8 @@ void StubCode::GenerateICLookupStub(Assembler* assembler) { |
__ j(EQUAL, &found, Assembler::kNearJump); |
ASSERT(Smi::RawValue(kIllegalCid) == 0); |
- __ cmpq(R9, R9); |
- __ j(EQUAL, &miss, Assembler::kNearJump); |
+ __ testq(R9, R9); |
+ __ j(ZERO, &miss, Assembler::kNearJump); |
const intptr_t entry_length = ICData::TestEntryLengthFor(1) * kWordSize; |
__ addq(R13, Immediate(entry_length)); // Next entry. |