| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 // | 4 // |
| 5 // Review notes: | 5 // Review notes: |
| 6 // | 6 // |
| 7 // - The use of macros in these inline functions may seem superfluous | 7 // - The use of macros in these inline functions may seem superfluous |
| 8 // but it is absolutely needed to make sure gcc generates optimal | 8 // but it is absolutely needed to make sure gcc generates optimal |
| 9 // code. gcc is not happy when attempting to inline too deep. | 9 // code. gcc is not happy when attempting to inline too deep. |
| 10 // | 10 // |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 | 185 |
| 186 | 186 |
| 187 bool Object::IsConstructor() const { | 187 bool Object::IsConstructor() const { |
| 188 return Object::IsHeapObject() && | 188 return Object::IsHeapObject() && |
| 189 HeapObject::cast(this)->map()->is_constructor(); | 189 HeapObject::cast(this)->map()->is_constructor(); |
| 190 } | 190 } |
| 191 | 191 |
| 192 | 192 |
| 193 bool Object::IsSpecObject() const { | 193 bool Object::IsSpecObject() const { |
| 194 return Object::IsHeapObject() | 194 return Object::IsHeapObject() |
| 195 && HeapObject::cast(this)->map()->instance_type() >= FIRST_SPEC_OBJECT_TYPE; | 195 && HeapObject::cast(this)->map()->instance_type() >= FIRST_JS_RECEIVER_TYPE; |
| 196 } | 196 } |
| 197 | 197 |
| 198 | 198 |
| 199 bool Object::IsTemplateInfo() const { | 199 bool Object::IsTemplateInfo() const { |
| 200 return IsObjectTemplateInfo() || IsFunctionTemplateInfo(); | 200 return IsObjectTemplateInfo() || IsFunctionTemplateInfo(); |
| 201 } | 201 } |
| 202 | 202 |
| 203 | 203 |
| 204 bool Object::IsInternalizedString() const { | 204 bool Object::IsInternalizedString() const { |
| 205 if (!this->IsHeapObject()) return false; | 205 if (!this->IsHeapObject()) return false; |
| (...skipping 7659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7865 #undef WRITE_INT64_FIELD | 7865 #undef WRITE_INT64_FIELD |
| 7866 #undef READ_BYTE_FIELD | 7866 #undef READ_BYTE_FIELD |
| 7867 #undef WRITE_BYTE_FIELD | 7867 #undef WRITE_BYTE_FIELD |
| 7868 #undef NOBARRIER_READ_BYTE_FIELD | 7868 #undef NOBARRIER_READ_BYTE_FIELD |
| 7869 #undef NOBARRIER_WRITE_BYTE_FIELD | 7869 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 7870 | 7870 |
| 7871 } // namespace internal | 7871 } // namespace internal |
| 7872 } // namespace v8 | 7872 } // namespace v8 |
| 7873 | 7873 |
| 7874 #endif // V8_OBJECTS_INL_H_ | 7874 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |