| 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 7082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7093 | 7093 |
| 7094 #ifdef VERIFY_HEAP | 7094 #ifdef VERIFY_HEAP |
| 7095 ACCESSORS(JSTypedArray, raw_length, Object, kLengthOffset) | 7095 ACCESSORS(JSTypedArray, raw_length, Object, kLengthOffset) |
| 7096 #endif | 7096 #endif |
| 7097 | 7097 |
| 7098 SMI_ACCESSORS(JSPromise, status, kStatusOffset) | 7098 SMI_ACCESSORS(JSPromise, status, kStatusOffset) |
| 7099 ACCESSORS(JSPromise, result, Object, kResultOffset) | 7099 ACCESSORS(JSPromise, result, Object, kResultOffset) |
| 7100 ACCESSORS(JSPromise, deferred, Object, kDeferredOffset) | 7100 ACCESSORS(JSPromise, deferred, Object, kDeferredOffset) |
| 7101 ACCESSORS(JSPromise, fulfill_reactions, Object, kFulfillReactionsOffset) | 7101 ACCESSORS(JSPromise, fulfill_reactions, Object, kFulfillReactionsOffset) |
| 7102 ACCESSORS(JSPromise, reject_reactions, Object, kRejectReactionsOffset) | 7102 ACCESSORS(JSPromise, reject_reactions, Object, kRejectReactionsOffset) |
| 7103 SMI_ACCESSORS(JSPromise, flags, kFlagsOffset) |
| 7104 BOOL_ACCESSORS(JSPromise, flags, has_handler, kHasHandlerBit) |
| 7103 | 7105 |
| 7104 ACCESSORS(JSRegExp, data, Object, kDataOffset) | 7106 ACCESSORS(JSRegExp, data, Object, kDataOffset) |
| 7105 ACCESSORS(JSRegExp, flags, Object, kFlagsOffset) | 7107 ACCESSORS(JSRegExp, flags, Object, kFlagsOffset) |
| 7106 ACCESSORS(JSRegExp, source, Object, kSourceOffset) | 7108 ACCESSORS(JSRegExp, source, Object, kSourceOffset) |
| 7107 | 7109 |
| 7108 | 7110 |
| 7109 JSRegExp::Type JSRegExp::TypeTag() { | 7111 JSRegExp::Type JSRegExp::TypeTag() { |
| 7110 Object* data = this->data(); | 7112 Object* data = this->data(); |
| 7111 if (data->IsUndefined(GetIsolate())) return JSRegExp::NOT_COMPILED; | 7113 if (data->IsUndefined(GetIsolate())) return JSRegExp::NOT_COMPILED; |
| 7112 Smi* smi = Smi::cast(FixedArray::cast(data)->get(kTagIndex)); | 7114 Smi* smi = Smi::cast(FixedArray::cast(data)->get(kTagIndex)); |
| (...skipping 1355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8468 #undef WRITE_INT64_FIELD | 8470 #undef WRITE_INT64_FIELD |
| 8469 #undef READ_BYTE_FIELD | 8471 #undef READ_BYTE_FIELD |
| 8470 #undef WRITE_BYTE_FIELD | 8472 #undef WRITE_BYTE_FIELD |
| 8471 #undef NOBARRIER_READ_BYTE_FIELD | 8473 #undef NOBARRIER_READ_BYTE_FIELD |
| 8472 #undef NOBARRIER_WRITE_BYTE_FIELD | 8474 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 8473 | 8475 |
| 8474 } // namespace internal | 8476 } // namespace internal |
| 8475 } // namespace v8 | 8477 } // namespace v8 |
| 8476 | 8478 |
| 8477 #endif // V8_OBJECTS_INL_H_ | 8479 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |