| 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; | 
| 8515 | 8517 | 
| 8516  private: | 8518  private: | 
| 8517   DISALLOW_IMPLICIT_CONSTRUCTORS(JSGlobalProxy); | 8519   DISALLOW_IMPLICIT_CONSTRUCTORS(JSGlobalProxy); | 
| 8518 }; | 8520 }; | 
| 8519 | 8521 | 
| 8520 | 8522 | 
| 8521 // JavaScript global object. | 8523 // JavaScript global object. | 
| 8522 class JSGlobalObject : public JSObject { | 8524 class JSGlobalObject : public JSObject { | 
| 8523  public: | 8525  public: | 
| 8524   // [native context]: the natives corresponding to this global object. | 8526   // [native context]: the natives corresponding to this global object. | 
| (...skipping 3242 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 11767     } | 11769     } | 
| 11768     return value; | 11770     return value; | 
| 11769   } | 11771   } | 
| 11770 }; | 11772 }; | 
| 11771 | 11773 | 
| 11772 | 11774 | 
| 11773 }  // NOLINT, false-positive due to second-order macros. | 11775 }  // NOLINT, false-positive due to second-order macros. | 
| 11774 }  // NOLINT, false-positive due to second-order macros. | 11776 }  // NOLINT, false-positive due to second-order macros. | 
| 11775 | 11777 | 
| 11776 #endif  // V8_OBJECTS_H_ | 11778 #endif  // V8_OBJECTS_H_ | 
| OLD | NEW | 
|---|