Index: src/objects-inl.h |
=================================================================== |
--- src/objects-inl.h (revision 2749) |
+++ src/objects-inl.h (working copy) |
@@ -131,7 +131,7 @@ |
bool Object::IsHeapObject() { |
- return HAS_HEAP_OBJECT_TAG(this); |
+ return Internals::HasHeapObjectTag(this); |
} |
@@ -300,6 +300,10 @@ |
} |
+STATIC_CHECK((kStringRepresentationMask | kStringEncodingMask) == |
+ Internals::kFullStringRepresentationMask); |
Mads Ager (chromium)
2009/08/26 06:22:20
Align with '(kStringRepresentationMask ...'
|
+ |
+ |
uint32_t StringShape::size_tag() { |
return (type_ & kStringSizeMask); |
} |
@@ -325,6 +329,10 @@ |
} |
+STATIC_CHECK((kExternalStringTag | kTwoByteStringTag) == |
+ Internals::kExternalTwoByteRepresentationTag); |
Mads Ager (chromium)
2009/08/26 06:22:20
Align with '(kExternalStringTag ...'
|
+ |
+ |
uc32 FlatStringReader::Get(int index) { |
ASSERT(0 <= index && index <= length_); |
if (is_ascii_) { |
@@ -730,7 +738,7 @@ |
int Smi::value() { |
- return static_cast<int>(reinterpret_cast<intptr_t>(this)) >> kSmiTagSize; |
+ return Internals::SmiValue(this); |
} |