OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_RUNTIME_RUNTIME_H_ | 5 #ifndef V8_RUNTIME_RUNTIME_H_ |
6 #define V8_RUNTIME_RUNTIME_H_ | 6 #define V8_RUNTIME_RUNTIME_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/objects.h" | 9 #include "src/objects.h" |
10 #include "src/zone.h" | 10 #include "src/zone.h" |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 F(DateLocalTimezone, 1, 1) \ | 127 F(DateLocalTimezone, 1, 1) \ |
128 F(DateToUTC, 1, 1) \ | 128 F(DateToUTC, 1, 1) \ |
129 F(DateCacheVersion, 0, 1) \ | 129 F(DateCacheVersion, 0, 1) \ |
130 F(DateField, 2 /* date object, field index */, 1) | 130 F(DateField, 2 /* date object, field index */, 1) |
131 | 131 |
132 | 132 |
133 #define FOR_EACH_INTRINSIC_DEBUG(F) \ | 133 #define FOR_EACH_INTRINSIC_DEBUG(F) \ |
134 F(DebugBreak, 0, 1) \ | 134 F(DebugBreak, 0, 1) \ |
135 F(SetDebugEventListener, 2, 1) \ | 135 F(SetDebugEventListener, 2, 1) \ |
136 F(ScheduleBreak, 0, 1) \ | 136 F(ScheduleBreak, 0, 1) \ |
137 F(DebugGetInternalProperties, 1, 1) \ | |
138 F(DebugGetPropertyDetails, 2, 1) \ | 137 F(DebugGetPropertyDetails, 2, 1) \ |
139 F(DebugGetProperty, 2, 1) \ | 138 F(DebugGetProperty, 2, 1) \ |
140 F(DebugPropertyTypeFromDetails, 1, 1) \ | 139 F(DebugPropertyTypeFromDetails, 1, 1) \ |
141 F(DebugPropertyAttributesFromDetails, 1, 1) \ | 140 F(DebugPropertyAttributesFromDetails, 1, 1) \ |
142 F(DebugPropertyIndexFromDetails, 1, 1) \ | 141 F(DebugPropertyIndexFromDetails, 1, 1) \ |
143 F(DebugNamedInterceptorPropertyValue, 2, 1) \ | 142 F(DebugNamedInterceptorPropertyValue, 2, 1) \ |
144 F(DebugIndexedInterceptorElementValue, 2, 1) \ | 143 F(DebugIndexedInterceptorElementValue, 2, 1) \ |
145 F(CheckExecutionState, 1, 1) \ | 144 F(CheckExecutionState, 1, 1) \ |
146 F(GetFrameCount, 1, 1) \ | 145 F(GetFrameCount, 1, 1) \ |
147 F(GetFrameDetails, 2, 1) \ | 146 F(GetFrameDetails, 2, 1) \ |
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
845 MUST_USE_RESULT static MaybeHandle<Object> CreateArrayLiteralBoilerplate( | 844 MUST_USE_RESULT static MaybeHandle<Object> CreateArrayLiteralBoilerplate( |
846 Isolate* isolate, Handle<FixedArray> literals, | 845 Isolate* isolate, Handle<FixedArray> literals, |
847 Handle<FixedArray> elements); | 846 Handle<FixedArray> elements); |
848 | 847 |
849 static void WeakCollectionInitialize( | 848 static void WeakCollectionInitialize( |
850 Isolate* isolate, Handle<JSWeakCollection> weak_collection); | 849 Isolate* isolate, Handle<JSWeakCollection> weak_collection); |
851 static void WeakCollectionSet(Handle<JSWeakCollection> weak_collection, | 850 static void WeakCollectionSet(Handle<JSWeakCollection> weak_collection, |
852 Handle<Object> key, Handle<Object> value); | 851 Handle<Object> key, Handle<Object> value); |
853 static bool WeakCollectionDelete(Handle<JSWeakCollection> weak_collection, | 852 static bool WeakCollectionDelete(Handle<JSWeakCollection> weak_collection, |
854 Handle<Object> key); | 853 Handle<Object> key); |
855 | |
856 static MaybeHandle<JSArray> GetInternalProperties(Isolate* isolate, | |
857 Handle<Object>); | |
858 }; | 854 }; |
859 | 855 |
860 | 856 |
861 std::ostream& operator<<(std::ostream&, Runtime::FunctionId); | 857 std::ostream& operator<<(std::ostream&, Runtime::FunctionId); |
862 | 858 |
863 //--------------------------------------------------------------------------- | 859 //--------------------------------------------------------------------------- |
864 // Constants used by interface to runtime functions. | 860 // Constants used by interface to runtime functions. |
865 | 861 |
866 class AllocateDoubleAlignFlag : public BitField<bool, 0, 1> {}; | 862 class AllocateDoubleAlignFlag : public BitField<bool, 0, 1> {}; |
867 class AllocateTargetSpace : public BitField<AllocationSpace, 1, 3> {}; | 863 class AllocateTargetSpace : public BitField<AllocationSpace, 1, 3> {}; |
868 | 864 |
869 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 865 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
870 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 866 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
871 STATIC_ASSERT(LANGUAGE_END == 3); | 867 STATIC_ASSERT(LANGUAGE_END == 3); |
872 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; | 868 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; |
873 | 869 |
874 } // namespace internal | 870 } // namespace internal |
875 } // namespace v8 | 871 } // namespace v8 |
876 | 872 |
877 #endif // V8_RUNTIME_RUNTIME_H_ | 873 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |