| 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 8544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8555 static const int kPrototypeOrInitialMapOffset = JSObject::kHeaderSize; | 8555 static const int kPrototypeOrInitialMapOffset = JSObject::kHeaderSize; |
| 8556 static const int kSharedFunctionInfoOffset = | 8556 static const int kSharedFunctionInfoOffset = |
| 8557 kPrototypeOrInitialMapOffset + kPointerSize; | 8557 kPrototypeOrInitialMapOffset + kPointerSize; |
| 8558 static const int kContextOffset = kSharedFunctionInfoOffset + kPointerSize; | 8558 static const int kContextOffset = kSharedFunctionInfoOffset + kPointerSize; |
| 8559 static const int kLiteralsOffset = kContextOffset + kPointerSize; | 8559 static const int kLiteralsOffset = kContextOffset + kPointerSize; |
| 8560 static const int kNonWeakFieldsEndOffset = kLiteralsOffset + kPointerSize; | 8560 static const int kNonWeakFieldsEndOffset = kLiteralsOffset + kPointerSize; |
| 8561 static const int kCodeEntryOffset = kNonWeakFieldsEndOffset; | 8561 static const int kCodeEntryOffset = kNonWeakFieldsEndOffset; |
| 8562 static const int kNextFunctionLinkOffset = kCodeEntryOffset + kPointerSize; | 8562 static const int kNextFunctionLinkOffset = kCodeEntryOffset + kPointerSize; |
| 8563 static const int kSize = kNextFunctionLinkOffset + kPointerSize; | 8563 static const int kSize = kNextFunctionLinkOffset + kPointerSize; |
| 8564 | 8564 |
| 8565 typedef FixedBodyDescriptor<kNextFunctionLinkOffset, kSize, kSize> |
| 8566 BodyDescriptorWeakFields; |
| 8567 |
| 8565 private: | 8568 private: |
| 8566 DISALLOW_IMPLICIT_CONSTRUCTORS(JSFunction); | 8569 DISALLOW_IMPLICIT_CONSTRUCTORS(JSFunction); |
| 8567 }; | 8570 }; |
| 8568 | 8571 |
| 8569 | 8572 |
| 8570 // JSGlobalProxy's prototype must be a JSGlobalObject or null, | 8573 // JSGlobalProxy's prototype must be a JSGlobalObject or null, |
| 8571 // and the prototype is hidden. JSGlobalProxy always delegates | 8574 // and the prototype is hidden. JSGlobalProxy always delegates |
| 8572 // property accesses to its prototype if the prototype is not null. | 8575 // property accesses to its prototype if the prototype is not null. |
| 8573 // | 8576 // |
| 8574 // A JSGlobalProxy can be reinitialized which will preserve its identity. | 8577 // A JSGlobalProxy can be reinitialized which will preserve its identity. |
| (...skipping 3289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11864 } | 11867 } |
| 11865 return value; | 11868 return value; |
| 11866 } | 11869 } |
| 11867 }; | 11870 }; |
| 11868 | 11871 |
| 11869 | 11872 |
| 11870 } // NOLINT, false-positive due to second-order macros. | 11873 } // NOLINT, false-positive due to second-order macros. |
| 11871 } // NOLINT, false-positive due to second-order macros. | 11874 } // NOLINT, false-positive due to second-order macros. |
| 11872 | 11875 |
| 11873 #endif // V8_OBJECTS_H_ | 11876 #endif // V8_OBJECTS_H_ |
| OLD | NEW |