| 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 | 9 |
| 10 #include "src/assert-scope.h" | 10 #include "src/assert-scope.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // - JSSet | 57 // - JSSet |
| 58 // - JSMap | 58 // - JSMap |
| 59 // - JSSetIterator | 59 // - JSSetIterator |
| 60 // - JSMapIterator | 60 // - JSMapIterator |
| 61 // - JSWeakCollection | 61 // - JSWeakCollection |
| 62 // - JSWeakMap | 62 // - JSWeakMap |
| 63 // - JSWeakSet | 63 // - JSWeakSet |
| 64 // - JSRegExp | 64 // - JSRegExp |
| 65 // - JSFunction | 65 // - JSFunction |
| 66 // - JSGeneratorObject | 66 // - JSGeneratorObject |
| 67 // - JSModule | |
| 68 // - JSGlobalObject | 67 // - JSGlobalObject |
| 69 // - JSGlobalProxy | 68 // - JSGlobalProxy |
| 70 // - JSValue | 69 // - JSValue |
| 71 // - JSDate | 70 // - JSDate |
| 72 // - JSMessageObject | 71 // - JSMessageObject |
| 73 // - JSProxy | 72 // - JSProxy |
| 74 // - FixedArrayBase | 73 // - FixedArrayBase |
| 75 // - ByteArray | 74 // - ByteArray |
| 76 // - BytecodeArray | 75 // - BytecodeArray |
| 77 // - FixedArray | 76 // - FixedArray |
| (...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 922 V(FixedFloat32Array) \ | 921 V(FixedFloat32Array) \ |
| 923 V(FixedFloat64Array) \ | 922 V(FixedFloat64Array) \ |
| 924 V(FixedUint8ClampedArray) \ | 923 V(FixedUint8ClampedArray) \ |
| 925 V(ByteArray) \ | 924 V(ByteArray) \ |
| 926 V(BytecodeArray) \ | 925 V(BytecodeArray) \ |
| 927 V(FreeSpace) \ | 926 V(FreeSpace) \ |
| 928 V(JSReceiver) \ | 927 V(JSReceiver) \ |
| 929 V(JSObject) \ | 928 V(JSObject) \ |
| 930 V(JSContextExtensionObject) \ | 929 V(JSContextExtensionObject) \ |
| 931 V(JSGeneratorObject) \ | 930 V(JSGeneratorObject) \ |
| 932 V(JSModule) \ | |
| 933 V(Map) \ | 931 V(Map) \ |
| 934 V(DescriptorArray) \ | 932 V(DescriptorArray) \ |
| 935 V(TransitionArray) \ | 933 V(TransitionArray) \ |
| 936 V(LiteralsArray) \ | 934 V(LiteralsArray) \ |
| 937 V(TypeFeedbackMetadata) \ | 935 V(TypeFeedbackMetadata) \ |
| 938 V(TypeFeedbackVector) \ | 936 V(TypeFeedbackVector) \ |
| 939 V(DeoptimizationInputData) \ | 937 V(DeoptimizationInputData) \ |
| 940 V(DeoptimizationOutputData) \ | 938 V(DeoptimizationOutputData) \ |
| 941 V(DependentCode) \ | 939 V(DependentCode) \ |
| 942 V(HandlerTable) \ | 940 V(HandlerTable) \ |
| (...skipping 6467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7410 static const int kResumeModeOffset = kInputOrDebugPosOffset + kPointerSize; | 7408 static const int kResumeModeOffset = kInputOrDebugPosOffset + kPointerSize; |
| 7411 static const int kContinuationOffset = kResumeModeOffset + kPointerSize; | 7409 static const int kContinuationOffset = kResumeModeOffset + kPointerSize; |
| 7412 static const int kOperandStackOffset = kContinuationOffset + kPointerSize; | 7410 static const int kOperandStackOffset = kContinuationOffset + kPointerSize; |
| 7413 static const int kSize = kOperandStackOffset + kPointerSize; | 7411 static const int kSize = kOperandStackOffset + kPointerSize; |
| 7414 | 7412 |
| 7415 private: | 7413 private: |
| 7416 DISALLOW_IMPLICIT_CONSTRUCTORS(JSGeneratorObject); | 7414 DISALLOW_IMPLICIT_CONSTRUCTORS(JSGeneratorObject); |
| 7417 }; | 7415 }; |
| 7418 | 7416 |
| 7419 | 7417 |
| 7420 // Representation for module instance objects. | |
| 7421 class JSModule: public JSObject { | |
| 7422 public: | |
| 7423 // [context]: the context holding the module's locals, or undefined if none. | |
| 7424 DECL_ACCESSORS(context, Object) | |
| 7425 | |
| 7426 // [scope_info]: Scope info. | |
| 7427 DECL_ACCESSORS(scope_info, ScopeInfo) | |
| 7428 | |
| 7429 DECLARE_CAST(JSModule) | |
| 7430 | |
| 7431 // Dispatched behavior. | |
| 7432 DECLARE_PRINTER(JSModule) | |
| 7433 DECLARE_VERIFIER(JSModule) | |
| 7434 | |
| 7435 // Layout description. | |
| 7436 static const int kContextOffset = JSObject::kHeaderSize; | |
| 7437 static const int kScopeInfoOffset = kContextOffset + kPointerSize; | |
| 7438 static const int kSize = kScopeInfoOffset + kPointerSize; | |
| 7439 | |
| 7440 private: | |
| 7441 DISALLOW_IMPLICIT_CONSTRUCTORS(JSModule); | |
| 7442 }; | |
| 7443 | |
| 7444 | |
| 7445 // JSBoundFunction describes a bound function exotic object. | 7418 // JSBoundFunction describes a bound function exotic object. |
| 7446 class JSBoundFunction : public JSObject { | 7419 class JSBoundFunction : public JSObject { |
| 7447 public: | 7420 public: |
| 7448 // [bound_target_function]: The wrapped function object. | 7421 // [bound_target_function]: The wrapped function object. |
| 7449 DECL_ACCESSORS(bound_target_function, JSReceiver) | 7422 DECL_ACCESSORS(bound_target_function, JSReceiver) |
| 7450 | 7423 |
| 7451 // [bound_this]: The value that is always passed as the this value when | 7424 // [bound_this]: The value that is always passed as the this value when |
| 7452 // calling the wrapped function. | 7425 // calling the wrapped function. |
| 7453 DECL_ACCESSORS(bound_this, Object) | 7426 DECL_ACCESSORS(bound_this, Object) |
| 7454 | 7427 |
| (...skipping 3360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10815 } | 10788 } |
| 10816 return value; | 10789 return value; |
| 10817 } | 10790 } |
| 10818 }; | 10791 }; |
| 10819 | 10792 |
| 10820 | 10793 |
| 10821 } // NOLINT, false-positive due to second-order macros. | 10794 } // NOLINT, false-positive due to second-order macros. |
| 10822 } // NOLINT, false-positive due to second-order macros. | 10795 } // NOLINT, false-positive due to second-order macros. |
| 10823 | 10796 |
| 10824 #endif // V8_OBJECTS_H_ | 10797 #endif // V8_OBJECTS_H_ |
| OLD | NEW |