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 8494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8505 inline bool IsDetachedFrom(JSGlobalObject* global) const; | 8505 inline bool IsDetachedFrom(JSGlobalObject* global) const; |
8506 | 8506 |
8507 // Dispatched behavior. | 8507 // Dispatched behavior. |
8508 DECLARE_PRINTER(JSGlobalProxy) | 8508 DECLARE_PRINTER(JSGlobalProxy) |
8509 DECLARE_VERIFIER(JSGlobalProxy) | 8509 DECLARE_VERIFIER(JSGlobalProxy) |
8510 | 8510 |
8511 // Layout description. | 8511 // Layout description. |
8512 static const int kNativeContextOffset = JSObject::kHeaderSize; | 8512 static const int kNativeContextOffset = JSObject::kHeaderSize; |
8513 static const int kHashOffset = kNativeContextOffset + kPointerSize; | 8513 static const int kHashOffset = kNativeContextOffset + kPointerSize; |
8514 static const int kSize = kHashOffset + kPointerSize; | 8514 static const int kSize = kHashOffset + kPointerSize; |
8515 static const int kSizeWithInternalFields = | |
8516 kSize + v8::Context::kProxyInternalFieldCount * kPointerSize; | |
8517 | 8515 |
8518 private: | 8516 private: |
8519 DISALLOW_IMPLICIT_CONSTRUCTORS(JSGlobalProxy); | 8517 DISALLOW_IMPLICIT_CONSTRUCTORS(JSGlobalProxy); |
8520 }; | 8518 }; |
8521 | 8519 |
8522 | 8520 |
8523 // JavaScript global object. | 8521 // JavaScript global object. |
8524 class JSGlobalObject : public JSObject { | 8522 class JSGlobalObject : public JSObject { |
8525 public: | 8523 public: |
8526 // [native context]: the natives corresponding to this global object. | 8524 // [native context]: the natives corresponding to this global object. |
(...skipping 3242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11769 } | 11767 } |
11770 return value; | 11768 return value; |
11771 } | 11769 } |
11772 }; | 11770 }; |
11773 | 11771 |
11774 | 11772 |
11775 } // NOLINT, false-positive due to second-order macros. | 11773 } // NOLINT, false-positive due to second-order macros. |
11776 } // NOLINT, false-positive due to second-order macros. | 11774 } // NOLINT, false-positive due to second-order macros. |
11777 | 11775 |
11778 #endif // V8_OBJECTS_H_ | 11776 #endif // V8_OBJECTS_H_ |
OLD | NEW |