| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index 21308d49006106a2640f6895adffb4c7802402cb..d3de7f22993997202c1d25c765246dc2ead63f9a 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -279,6 +279,16 @@ bool StringShape::IsExternalTwoByte() {
|
| }
|
|
|
|
|
| +uc32 FlatStringReader::Get(int index) {
|
| + ASSERT(0 <= index && index <= length_);
|
| + if (is_ascii_) {
|
| + return static_cast<const byte*>(start_)[index];
|
| + } else {
|
| + return static_cast<const uc16*>(start_)[index];
|
| + }
|
| +}
|
| +
|
| +
|
| bool Object::IsNumber() {
|
| return IsSmi() || IsHeapNumber();
|
| }
|
|
|