Index: src/objects-inl.h |
=================================================================== |
--- src/objects-inl.h (revision 4579) |
+++ src/objects-inl.h (working copy) |
@@ -1651,7 +1651,7 @@ |
INT_ACCESSORS(Array, length, kLengthOffset) |
-INT_ACCESSORS(String, length, kLengthOffset) |
+SMI_ACCESSORS(String, length, kLengthOffset) |
uint32_t String::hash_field() { |
@@ -1773,14 +1773,12 @@ |
int SeqTwoByteString::SeqTwoByteStringSize(InstanceType instance_type) { |
- uint32_t length = READ_INT_FIELD(this, kLengthOffset); |
- return SizeFor(length); |
+ return SizeFor(length()); |
} |
int SeqAsciiString::SeqAsciiStringSize(InstanceType instance_type) { |
- uint32_t length = READ_INT_FIELD(this, kLengthOffset); |
- return SizeFor(length); |
+ return SizeFor(length()); |
} |