Chromium Code Reviews| Index: src/objects.h |
| diff --git a/src/objects.h b/src/objects.h |
| index 1e38383fc7792017665dae7adf37a15805033498..02b6964bfbfa7d857afa8712611f8295fd295e90 100644 |
| --- a/src/objects.h |
| +++ b/src/objects.h |
| @@ -795,9 +795,10 @@ class Smi: public Object { |
| void SmiVerify(); |
| #endif |
| + static const int kSmiPrecission = 31; |
| // Min and max limits for Smi values. |
| - static const int kMinValue = -(1 << (kBitsPerPointer - (kSmiTagSize + 1))); |
| - static const int kMaxValue = (1 << (kBitsPerPointer - (kSmiTagSize + 1))) - 1; |
| + static const int kMinValue = -(1 << (kSmiPrecission - (kSmiTagSize))); |
| + static const int kMaxValue = (1 << (kSmiPrecission - (kSmiTagSize))) - 1; |
|
Dean McNamee
2009/05/04 13:04:14
I would call this kSmiNumBits, precision (spelling
|
| private: |
| DISALLOW_IMPLICIT_CONSTRUCTORS(Smi); |
| @@ -2324,8 +2325,8 @@ class Code: public HeapObject { |
| // the layout of the code object into account. |
| int ExecutableSize() { |
| // Check that the assumptions about the layout of the code object holds. |
| - ASSERT_EQ(reinterpret_cast<unsigned int>(instruction_start()) - |
| - reinterpret_cast<unsigned int>(address()), |
| + ASSERT_EQ(reinterpret_cast<uintptr_t>(instruction_start()) - |
| + reinterpret_cast<uintptr_t>(address()), |
|
Dean McNamee
2009/05/04 13:04:14
Do we really need this, both should be returning p
|
| Code::kHeaderSize); |
| return instruction_size() + Code::kHeaderSize; |
| } |