mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 12:58:05 +00:00
Short check for zero is tst not cmp...
R=fschneider@google.com Review URL: https://codereview.chromium.org/1431003002 .
This commit is contained in:
parent
dee2660831
commit
f588c1b91b
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue