| 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 2200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2211 return JSObject::kHeaderSize; | 2211 return JSObject::kHeaderSize; |
| 2212 case JS_MESSAGE_OBJECT_TYPE: | 2212 case JS_MESSAGE_OBJECT_TYPE: |
| 2213 return JSMessageObject::kSize; | 2213 return JSMessageObject::kSize; |
| 2214 case JS_ARGUMENTS_TYPE: | 2214 case JS_ARGUMENTS_TYPE: |
| 2215 return JSArgumentsObject::kHeaderSize; | 2215 return JSArgumentsObject::kHeaderSize; |
| 2216 case JS_ERROR_TYPE: | 2216 case JS_ERROR_TYPE: |
| 2217 return JSObject::kHeaderSize; | 2217 return JSObject::kHeaderSize; |
| 2218 case JS_STRING_ITERATOR_TYPE: | 2218 case JS_STRING_ITERATOR_TYPE: |
| 2219 return JSStringIterator::kSize; | 2219 return JSStringIterator::kSize; |
| 2220 case JS_MODULE_NAMESPACE_TYPE: | 2220 case JS_MODULE_NAMESPACE_TYPE: |
| 2221 return JSModuleNamespace::kSize; | 2221 return JSModuleNamespace::kHeaderSize; |
| 2222 default: | 2222 default: |
| 2223 if (type >= FIRST_ARRAY_ITERATOR_TYPE && | 2223 if (type >= FIRST_ARRAY_ITERATOR_TYPE && |
| 2224 type <= LAST_ARRAY_ITERATOR_TYPE) { | 2224 type <= LAST_ARRAY_ITERATOR_TYPE) { |
| 2225 return JSArrayIterator::kSize; | 2225 return JSArrayIterator::kSize; |
| 2226 } | 2226 } |
| 2227 UNREACHABLE(); | 2227 UNREACHABLE(); |
| 2228 return 0; | 2228 return 0; |
| 2229 } | 2229 } |
| 2230 } | 2230 } |
| 2231 | 2231 |
| (...skipping 6216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8448 #undef WRITE_INT64_FIELD | 8448 #undef WRITE_INT64_FIELD |
| 8449 #undef READ_BYTE_FIELD | 8449 #undef READ_BYTE_FIELD |
| 8450 #undef WRITE_BYTE_FIELD | 8450 #undef WRITE_BYTE_FIELD |
| 8451 #undef NOBARRIER_READ_BYTE_FIELD | 8451 #undef NOBARRIER_READ_BYTE_FIELD |
| 8452 #undef NOBARRIER_WRITE_BYTE_FIELD | 8452 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 8453 | 8453 |
| 8454 } // namespace internal | 8454 } // namespace internal |
| 8455 } // namespace v8 | 8455 } // namespace v8 |
| 8456 | 8456 |
| 8457 #endif // V8_OBJECTS_INL_H_ | 8457 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |