Index: src/ia32/macro-assembler-ia32.h |
diff --git a/src/ia32/macro-assembler-ia32.h b/src/ia32/macro-assembler-ia32.h |
index 99b1568b6fea182b9931e935d4b9f6b4ea7990c9..f67693984bfc1a4e111319c2cf219c2150d8c4e5 100644 |
--- a/src/ia32/macro-assembler-ia32.h |
+++ b/src/ia32/macro-assembler-ia32.h |
@@ -182,7 +182,8 @@ class MacroAssembler: public Assembler { |
// Smi tagging support. |
void SmiTag(Register reg) { |
ASSERT(kSmiTag == 0); |
- shl(reg, kSmiTagSize); |
+ ASSERT(kSmiTagSize == 1); |
+ add(reg, Operand(reg)); |
} |
void SmiUntag(Register reg) { |
sar(reg, kSmiTagSize); |