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

Unified Diff: runtime/vm/assembler_mips.h

Issue 2856543002: Use off-heap data for class check instructions (Closed)
Patch Set: Feedback from Slava: rejig inheritance of CallTargets Created 3 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
Index: runtime/vm/assembler_mips.h
diff --git a/runtime/vm/assembler_mips.h b/runtime/vm/assembler_mips.h
index 379ebbaf7ea64596d7e3ccfe5a597394bb9dacbf..2236b7fc3d8b6fe6766d4731c71a057ecbdede2f 100644
--- a/runtime/vm/assembler_mips.h
+++ b/runtime/vm/assembler_mips.h
@@ -1424,6 +1424,11 @@ class Assembler : public ValueObject {
bne(CMPRES1, ZR, label);
}
+ void BranchIfSmi(Register reg, Label* label) {
+ andi(CMPRES1, reg, Immediate(kSmiTagMask));
+ beq(CMPRES1, ZR, label);
+ }
+
void LoadFromOffset(Register reg, Register base, int32_t offset) {
ASSERT(!in_delay_slot_);
if (Utils::IsInt(kImmBits, offset)) {

Powered by Google App Engine
This is Rietveld 408576698