Index: bleeding_edge/src/ia32/macro-assembler-ia32.h |
=================================================================== |
--- bleeding_edge/src/ia32/macro-assembler-ia32.h (revision 3492) |
+++ bleeding_edge/src/ia32/macro-assembler-ia32.h (working copy) |
@@ -142,6 +142,15 @@ |
// jcc instructions (je, ja, jae, jb, jbe, je, and jz). |
void FCmp(); |
+ // Smi tagging support. |
+ void SmiTag(Register reg) { |
+ ASSERT(kSmiTag == 0); |
+ shl(reg, kSmiTagSize); |
+ } |
+ void SmiUntag(Register reg) { |
+ sar(reg, kSmiTagSize); |
+ } |
+ |
// --------------------------------------------------------------------------- |
// Exception handling |