Index: runtime/vm/assembler_x64.h |
diff --git a/runtime/vm/assembler_x64.h b/runtime/vm/assembler_x64.h |
index 77f3bb9b19304ef6ae8f1a1dddcad7f0ac4f83ec..0c17551a8659516fe0c99ae2f9f18306fe7a904a 100644 |
--- a/runtime/vm/assembler_x64.h |
+++ b/runtime/vm/assembler_x64.h |
@@ -852,6 +852,11 @@ class Assembler : public ValueObject { |
j(NOT_ZERO, label); |
} |
+ void BranchIfSmi(Register reg, Label* label) { |
+ testq(reg, Immediate(kSmiTagMask)); |
+ j(ZERO, label); |
+ } |
+ |
void Align(int alignment, intptr_t offset); |
void Bind(Label* label); |
void Jump(Label* label) { jmp(label); } |