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 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
926 V(FixedFloat32Array) \ | 925 V(FixedFloat32Array) \ |
927 V(FixedFloat64Array) \ | 926 V(FixedFloat64Array) \ |
928 V(FixedUint8ClampedArray) \ | 927 V(FixedUint8ClampedArray) \ |
929 V(ByteArray) \ | 928 V(ByteArray) \ |
930 V(BytecodeArray) \ | 929 V(BytecodeArray) \ |
931 V(FreeSpace) \ | 930 V(FreeSpace) \ |
932 V(JSReceiver) \ | 931 V(JSReceiver) \ |
933 V(JSObject) \ | 932 V(JSObject) \ |
934 V(JSContextExtensionObject) \ | 933 V(JSContextExtensionObject) \ |
935 V(JSGeneratorObject) \ | 934 V(JSGeneratorObject) \ |
936 V(JSModule) \ | |
937 V(Map) \ | 935 V(Map) \ |
938 V(DescriptorArray) \ | 936 V(DescriptorArray) \ |
939 V(TransitionArray) \ | 937 V(TransitionArray) \ |
940 V(LiteralsArray) \ | 938 V(LiteralsArray) \ |
941 V(TypeFeedbackMetadata) \ | 939 V(TypeFeedbackMetadata) \ |
942 V(TypeFeedbackVector) \ | 940 V(TypeFeedbackVector) \ |
943 V(DeoptimizationInputData) \ | 941 V(DeoptimizationInputData) \ |
944 V(DeoptimizationOutputData) \ | 942 V(DeoptimizationOutputData) \ |
945 V(DependentCode) \ | 943 V(DependentCode) \ |
946 V(HandlerTable) \ | 944 V(HandlerTable) \ |
(...skipping 6475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7422 static const int kResumeModeOffset = kInputOrDebugPosOffset + kPointerSize; | 7420 static const int kResumeModeOffset = kInputOrDebugPosOffset + kPointerSize; |
7423 static const int kContinuationOffset = kResumeModeOffset + kPointerSize; | 7421 static const int kContinuationOffset = kResumeModeOffset + kPointerSize; |
7424 static const int kOperandStackOffset = kContinuationOffset + kPointerSize; | 7422 static const int kOperandStackOffset = kContinuationOffset + kPointerSize; |
7425 static const int kSize = kOperandStackOffset + kPointerSize; | 7423 static const int kSize = kOperandStackOffset + kPointerSize; |
7426 | 7424 |
7427 private: | 7425 private: |
7428 DISALLOW_IMPLICIT_CONSTRUCTORS(JSGeneratorObject); | 7426 DISALLOW_IMPLICIT_CONSTRUCTORS(JSGeneratorObject); |
7429 }; | 7427 }; |
7430 | 7428 |
7431 | 7429 |
7432 // Representation for module instance objects. | |
7433 class JSModule: public JSObject { | |
7434 public: | |
7435 // [context]: the context holding the module's locals, or undefined if none. | |
7436 DECL_ACCESSORS(context, Object) | |
7437 | |
7438 // [scope_info]: Scope info. | |
7439 DECL_ACCESSORS(scope_info, ScopeInfo) | |
7440 | |
7441 DECLARE_CAST(JSModule) | |
7442 | |
7443 // Dispatched behavior. | |
7444 DECLARE_PRINTER(JSModule) | |
7445 DECLARE_VERIFIER(JSModule) | |
7446 | |
7447 // Layout description. | |
7448 static const int kContextOffset = JSObject::kHeaderSize; | |
7449 static const int kScopeInfoOffset = kContextOffset + kPointerSize; | |
7450 static const int kSize = kScopeInfoOffset + kPointerSize; | |
7451 | |
7452 private: | |
7453 DISALLOW_IMPLICIT_CONSTRUCTORS(JSModule); | |
7454 }; | |
7455 | |
7456 | |
7457 // JSBoundFunction describes a bound function exotic object. | 7430 // JSBoundFunction describes a bound function exotic object. |
7458 class JSBoundFunction : public JSObject { | 7431 class JSBoundFunction : public JSObject { |
7459 public: | 7432 public: |
7460 // [bound_target_function]: The wrapped function object. | 7433 // [bound_target_function]: The wrapped function object. |
7461 DECL_ACCESSORS(bound_target_function, JSReceiver) | 7434 DECL_ACCESSORS(bound_target_function, JSReceiver) |
7462 | 7435 |
7463 // [bound_this]: The value that is always passed as the this value when | 7436 // [bound_this]: The value that is always passed as the this value when |
7464 // calling the wrapped function. | 7437 // calling the wrapped function. |
7465 DECL_ACCESSORS(bound_this, Object) | 7438 DECL_ACCESSORS(bound_this, Object) |
7466 | 7439 |
(...skipping 3367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10834 } | 10807 } |
10835 return value; | 10808 return value; |
10836 } | 10809 } |
10837 }; | 10810 }; |
10838 | 10811 |
10839 | 10812 |
10840 } // NOLINT, false-positive due to second-order macros. | 10813 } // NOLINT, false-positive due to second-order macros. |
10841 } // NOLINT, false-positive due to second-order macros. | 10814 } // NOLINT, false-positive due to second-order macros. |
10842 | 10815 |
10843 #endif // V8_OBJECTS_H_ | 10816 #endif // V8_OBJECTS_H_ |
OLD | NEW |