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

Unified Diff: runtime/vm/assembler_ia32.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_ia32.h
diff --git a/runtime/vm/assembler_ia32.h b/runtime/vm/assembler_ia32.h
index 90214f5ce238611ea8cc664801b74da7231ba641..9f663c2967fe68abd399931601d9e1d5b02627f6 100644
--- a/runtime/vm/assembler_ia32.h
+++ b/runtime/vm/assembler_ia32.h
@@ -760,6 +760,11 @@ class Assembler : public ValueObject {
j(NOT_ZERO, label);
}
+ void BranchIfSmi(Register reg, Label* label) {
+ testl(reg, Immediate(kSmiTagMask));
+ j(ZERO, label);
+ }
+
void Align(intptr_t alignment, intptr_t offset);
void Bind(Label* label);
void Jump(Label* label) { jmp(label); }

Powered by Google App Engine
This is Rietveld 408576698