Short check for zero is tst not cmp...

R=fschneider@google.com

Review URL: https://codereview.chromium.org/1431003002 .
This commit is contained in:
Ryan Macnak 2015-11-04 10:54:17 -08:00
parent dee2660831
commit f588c1b91b

View file

@ -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.