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); } |