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...) 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) \ |
137 F(DebugGetPropertyDetails, 2, 1) \ | 138 F(DebugGetPropertyDetails, 2, 1) \ |
138 F(DebugGetProperty, 2, 1) \ | 139 F(DebugGetProperty, 2, 1) \ |
139 F(DebugPropertyTypeFromDetails, 1, 1) \ | 140 F(DebugPropertyTypeFromDetails, 1, 1) \ |
140 F(DebugPropertyAttributesFromDetails, 1, 1) \ | 141 F(DebugPropertyAttributesFromDetails, 1, 1) \ |
141 F(DebugPropertyIndexFromDetails, 1, 1) \ | 142 F(DebugPropertyIndexFromDetails, 1, 1) \ |
142 F(DebugNamedInterceptorPropertyValue, 2, 1) \ | 143 F(DebugNamedInterceptorPropertyValue, 2, 1) \ |
143 F(DebugIndexedInterceptorElementValue, 2, 1) \ | 144 F(DebugIndexedInterceptorElementValue, 2, 1) \ |
144 F(CheckExecutionState, 1, 1) \ | 145 F(CheckExecutionState, 1, 1) \ |
145 F(GetFrameCount, 1, 1) \ | 146 F(GetFrameCount, 1, 1) \ |
146 F(GetFrameDetails, 2, 1) \ | 147 F(GetFrameDetails, 2, 1) \ |
(...skipping 697 matching lines...) Loading... |
844 MUST_USE_RESULT static MaybeHandle<Object> CreateArrayLiteralBoilerplate( | 845 MUST_USE_RESULT static MaybeHandle<Object> CreateArrayLiteralBoilerplate( |
845 Isolate* isolate, Handle<FixedArray> literals, | 846 Isolate* isolate, Handle<FixedArray> literals, |
846 Handle<FixedArray> elements); | 847 Handle<FixedArray> elements); |
847 | 848 |
848 static void WeakCollectionInitialize( | 849 static void WeakCollectionInitialize( |
849 Isolate* isolate, Handle<JSWeakCollection> weak_collection); | 850 Isolate* isolate, Handle<JSWeakCollection> weak_collection); |
850 static void WeakCollectionSet(Handle<JSWeakCollection> weak_collection, | 851 static void WeakCollectionSet(Handle<JSWeakCollection> weak_collection, |
851 Handle<Object> key, Handle<Object> value); | 852 Handle<Object> key, Handle<Object> value); |
852 static bool WeakCollectionDelete(Handle<JSWeakCollection> weak_collection, | 853 static bool WeakCollectionDelete(Handle<JSWeakCollection> weak_collection, |
853 Handle<Object> key); | 854 Handle<Object> key); |
| 855 |
| 856 static MaybeHandle<JSArray> GetInternalProperties(Isolate* isolate, |
| 857 Handle<Object>); |
854 }; | 858 }; |
855 | 859 |
856 | 860 |
857 std::ostream& operator<<(std::ostream&, Runtime::FunctionId); | 861 std::ostream& operator<<(std::ostream&, Runtime::FunctionId); |
858 | 862 |
859 //--------------------------------------------------------------------------- | 863 //--------------------------------------------------------------------------- |
860 // Constants used by interface to runtime functions. | 864 // Constants used by interface to runtime functions. |
861 | 865 |
862 class AllocateDoubleAlignFlag : public BitField<bool, 0, 1> {}; | 866 class AllocateDoubleAlignFlag : public BitField<bool, 0, 1> {}; |
863 class AllocateTargetSpace : public BitField<AllocationSpace, 1, 3> {}; | 867 class AllocateTargetSpace : public BitField<AllocationSpace, 1, 3> {}; |
864 | 868 |
865 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 869 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
866 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 870 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
867 STATIC_ASSERT(LANGUAGE_END == 3); | 871 STATIC_ASSERT(LANGUAGE_END == 3); |
868 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; | 872 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; |
869 | 873 |
870 } // namespace internal | 874 } // namespace internal |
871 } // namespace v8 | 875 } // namespace v8 |
872 | 876 |
873 #endif // V8_RUNTIME_RUNTIME_H_ | 877 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |