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 698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
709 | 709 |
710 | 710 |
711 bool Object::IsDescriptorArray() const { | 711 bool Object::IsDescriptorArray() const { |
712 return IsFixedArray(); | 712 return IsFixedArray(); |
713 } | 713 } |
714 | 714 |
715 | 715 |
716 bool Object::IsArrayList() const { return IsFixedArray(); } | 716 bool Object::IsArrayList() const { return IsFixedArray(); } |
717 | 717 |
718 | 718 |
719 bool Object::IsLayoutDescriptor() const { | 719 bool Object::IsLayoutDescriptor() const { return IsSmi() || IsJSTypedArray(); } |
720 return IsSmi() || IsFixedTypedArrayBase(); | |
721 } | |
722 | 720 |
723 | 721 |
724 bool Object::IsTransitionArray() const { | 722 bool Object::IsTransitionArray() const { |
725 return IsFixedArray(); | 723 return IsFixedArray(); |
726 } | 724 } |
727 | 725 |
728 | 726 |
729 bool Object::IsTypeFeedbackVector() const { return IsFixedArray(); } | 727 bool Object::IsTypeFeedbackVector() const { return IsFixedArray(); } |
730 | 728 |
731 | 729 |
(...skipping 6808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7540 #undef READ_SHORT_FIELD | 7538 #undef READ_SHORT_FIELD |
7541 #undef WRITE_SHORT_FIELD | 7539 #undef WRITE_SHORT_FIELD |
7542 #undef READ_BYTE_FIELD | 7540 #undef READ_BYTE_FIELD |
7543 #undef WRITE_BYTE_FIELD | 7541 #undef WRITE_BYTE_FIELD |
7544 #undef NOBARRIER_READ_BYTE_FIELD | 7542 #undef NOBARRIER_READ_BYTE_FIELD |
7545 #undef NOBARRIER_WRITE_BYTE_FIELD | 7543 #undef NOBARRIER_WRITE_BYTE_FIELD |
7546 | 7544 |
7547 } } // namespace v8::internal | 7545 } } // namespace v8::internal |
7548 | 7546 |
7549 #endif // V8_OBJECTS_INL_H_ | 7547 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |