| 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 6773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6784 CONDITIONAL_WRITE_BARRIER(GetHeap(), this, kLengthOffset, value, mode); | 6784 CONDITIONAL_WRITE_BARRIER(GetHeap(), this, kLengthOffset, value, mode); |
| 6785 } | 6785 } |
| 6786 | 6786 |
| 6787 | 6787 |
| 6788 #ifdef VERIFY_HEAP | 6788 #ifdef VERIFY_HEAP |
| 6789 ACCESSORS(JSTypedArray, raw_length, Object, kLengthOffset) | 6789 ACCESSORS(JSTypedArray, raw_length, Object, kLengthOffset) |
| 6790 #endif | 6790 #endif |
| 6791 | 6791 |
| 6792 | 6792 |
| 6793 ACCESSORS(JSRegExp, data, Object, kDataOffset) | 6793 ACCESSORS(JSRegExp, data, Object, kDataOffset) |
| 6794 ACCESSORS(JSRegExp, flags, Object, kFlagsOffset) | |
| 6795 ACCESSORS(JSRegExp, source, Object, kSourceOffset) | |
| 6796 | 6794 |
| 6797 | 6795 |
| 6798 JSRegExp::Type JSRegExp::TypeTag() { | 6796 JSRegExp::Type JSRegExp::TypeTag() { |
| 6799 Object* data = this->data(); | 6797 Object* data = this->data(); |
| 6800 if (data->IsUndefined()) return JSRegExp::NOT_COMPILED; | 6798 if (data->IsUndefined()) return JSRegExp::NOT_COMPILED; |
| 6801 Smi* smi = Smi::cast(FixedArray::cast(data)->get(kTagIndex)); | 6799 Smi* smi = Smi::cast(FixedArray::cast(data)->get(kTagIndex)); |
| 6802 return static_cast<JSRegExp::Type>(smi->value()); | 6800 return static_cast<JSRegExp::Type>(smi->value()); |
| 6803 } | 6801 } |
| 6804 | 6802 |
| 6805 | 6803 |
| (...skipping 1301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8107 #undef WRITE_INT64_FIELD | 8105 #undef WRITE_INT64_FIELD |
| 8108 #undef READ_BYTE_FIELD | 8106 #undef READ_BYTE_FIELD |
| 8109 #undef WRITE_BYTE_FIELD | 8107 #undef WRITE_BYTE_FIELD |
| 8110 #undef NOBARRIER_READ_BYTE_FIELD | 8108 #undef NOBARRIER_READ_BYTE_FIELD |
| 8111 #undef NOBARRIER_WRITE_BYTE_FIELD | 8109 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 8112 | 8110 |
| 8113 } // namespace internal | 8111 } // namespace internal |
| 8114 } // namespace v8 | 8112 } // namespace v8 |
| 8115 | 8113 |
| 8116 #endif // V8_OBJECTS_INL_H_ | 8114 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |