| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
| 6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 2535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2546 // to the same object requires fewer allocations and copies. | 2546 // to the same object requires fewer allocations and copies. |
| 2547 static const int kFieldsAdded = 3; | 2547 static const int kFieldsAdded = 3; |
| 2548 | 2548 |
| 2549 // Layout description. | 2549 // Layout description. |
| 2550 static const int kElementsOffset = JSReceiver::kHeaderSize; | 2550 static const int kElementsOffset = JSReceiver::kHeaderSize; |
| 2551 static const int kHeaderSize = kElementsOffset + kPointerSize; | 2551 static const int kHeaderSize = kElementsOffset + kPointerSize; |
| 2552 | 2552 |
| 2553 STATIC_ASSERT(kHeaderSize == Internals::kJSObjectHeaderSize); | 2553 STATIC_ASSERT(kHeaderSize == Internals::kJSObjectHeaderSize); |
| 2554 | 2554 |
| 2555 class BodyDescriptor; | 2555 class BodyDescriptor; |
| 2556 class FastBodyDescriptor; |
| 2556 | 2557 |
| 2557 // Gets the number of currently used elements. | 2558 // Gets the number of currently used elements. |
| 2558 int GetFastElementsUsage(); | 2559 int GetFastElementsUsage(); |
| 2559 | 2560 |
| 2560 static bool AllCanRead(LookupIterator* it); | 2561 static bool AllCanRead(LookupIterator* it); |
| 2561 static bool AllCanWrite(LookupIterator* it); | 2562 static bool AllCanWrite(LookupIterator* it); |
| 2562 | 2563 |
| 2563 private: | 2564 private: |
| 2564 friend class JSReceiver; | 2565 friend class JSReceiver; |
| 2565 friend class Object; | 2566 friend class Object; |
| (...skipping 8755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11321 } | 11322 } |
| 11322 }; | 11323 }; |
| 11323 | 11324 |
| 11324 | 11325 |
| 11325 } // NOLINT, false-positive due to second-order macros. | 11326 } // NOLINT, false-positive due to second-order macros. |
| 11326 } // NOLINT, false-positive due to second-order macros. | 11327 } // NOLINT, false-positive due to second-order macros. |
| 11327 | 11328 |
| 11328 #include "src/objects/object-macros-undef.h" | 11329 #include "src/objects/object-macros-undef.h" |
| 11329 | 11330 |
| 11330 #endif // V8_OBJECTS_H_ | 11331 #endif // V8_OBJECTS_H_ |
| OLD | NEW |