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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 bool HeapObject::IsFrameArray() const { return IsFixedArray(); } | 342 bool HeapObject::IsFrameArray() const { return IsFixedArray(); } |
343 | 343 |
344 bool HeapObject::IsArrayList() const { return IsFixedArray(); } | 344 bool HeapObject::IsArrayList() const { return IsFixedArray(); } |
345 | 345 |
346 bool HeapObject::IsRegExpMatchInfo() const { return IsFixedArray(); } | 346 bool HeapObject::IsRegExpMatchInfo() const { return IsFixedArray(); } |
347 | 347 |
348 bool Object::IsLayoutDescriptor() const { | 348 bool Object::IsLayoutDescriptor() const { |
349 return IsSmi() || IsFixedTypedArrayBase(); | 349 return IsSmi() || IsFixedTypedArrayBase(); |
350 } | 350 } |
351 | 351 |
352 bool HeapObject::IsTypeFeedbackVector() const { return IsFixedArray(); } | 352 bool HeapObject::IsTypeFeedbackVector() const { |
| 353 return map() == GetHeap()->type_feedback_vector_map(); |
| 354 } |
353 | 355 |
354 bool HeapObject::IsTypeFeedbackMetadata() const { return IsFixedArray(); } | 356 bool HeapObject::IsTypeFeedbackMetadata() const { return IsFixedArray(); } |
355 | 357 |
356 bool HeapObject::IsLiteralsArray() const { return IsFixedArray(); } | 358 bool HeapObject::IsLiteralsArray() const { return IsFixedArray(); } |
357 | 359 |
358 bool HeapObject::IsDeoptimizationInputData() const { | 360 bool HeapObject::IsDeoptimizationInputData() const { |
359 // Must be a fixed array. | 361 // Must be a fixed array. |
360 if (!IsFixedArray()) return false; | 362 if (!IsFixedArray()) return false; |
361 | 363 |
362 // There's no sure way to detect the difference between a fixed array and | 364 // There's no sure way to detect the difference between a fixed array and |
(...skipping 8088 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8451 #undef WRITE_INT64_FIELD | 8453 #undef WRITE_INT64_FIELD |
8452 #undef READ_BYTE_FIELD | 8454 #undef READ_BYTE_FIELD |
8453 #undef WRITE_BYTE_FIELD | 8455 #undef WRITE_BYTE_FIELD |
8454 #undef NOBARRIER_READ_BYTE_FIELD | 8456 #undef NOBARRIER_READ_BYTE_FIELD |
8455 #undef NOBARRIER_WRITE_BYTE_FIELD | 8457 #undef NOBARRIER_WRITE_BYTE_FIELD |
8456 | 8458 |
8457 } // namespace internal | 8459 } // namespace internal |
8458 } // namespace v8 | 8460 } // namespace v8 |
8459 | 8461 |
8460 #endif // V8_OBJECTS_INL_H_ | 8462 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |