Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index cbe8edd59b59349f1492d68853c21ca79f9f122b..d2f3ba2869d668d5e581a5176ea92fea96d1b626 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -5606,8 +5606,7 @@ V8_INLINE internal::Object* IntToSmi(int value) { |
// Smi constants for 32-bit systems. |
template <> struct SmiTagging<4> { |
- static const int kSmiShiftSize = 0; |
- static const int kSmiValueSize = 31; |
+ enum { kSmiShiftSize = 0, kSmiValueSize = 31 }; |
V8_INLINE static int SmiToInt(const internal::Object* value) { |
int shift_bits = kSmiTagSize + kSmiShiftSize; |
// Throw away top 32 bits and shift down (requires >> to be sign extending). |
@@ -5634,8 +5633,7 @@ template <> struct SmiTagging<4> { |
// Smi constants for 64-bit systems. |
template <> struct SmiTagging<8> { |
- static const int kSmiShiftSize = 31; |
- static const int kSmiValueSize = 32; |
+ enum { kSmiShiftSize = 31, kSmiValueSize = 32 }; |
V8_INLINE static int SmiToInt(const internal::Object* value) { |
int shift_bits = kSmiTagSize + kSmiShiftSize; |
// Shift down and throw away top 32 bits. |