Index: src/ia32/macro-assembler-ia32.h |
diff --git a/src/ia32/macro-assembler-ia32.h b/src/ia32/macro-assembler-ia32.h |
index 50ff0685515309fa320c69b3dda85684decbdec8..15b7c608d2244ff91fbaed90fec08dc4a4f01af7 100644 |
--- a/src/ia32/macro-assembler-ia32.h |
+++ b/src/ia32/macro-assembler-ia32.h |
@@ -476,7 +476,12 @@ class MacroAssembler: public Assembler { |
test(value, Immediate(kSmiTagMask)); |
j(not_zero, not_smi_label, distance); |
} |
- |
+ // Jump if the operand is not a smi. |
+ inline void JumpIfNotSmi(Operand value, Label* smi_label, |
+ Label::Distance distance = Label::kFar) { |
+ test(value, Immediate(kSmiTagMask)); |
+ j(not_zero, smi_label, distance); |
+ } |
// Jump if the value cannot be represented by a smi. |
inline void JumpIfNotValidSmiValue(Register value, Register scratch, |
Label* on_invalid, |