| 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) \ |
| 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 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 847 MUST_USE_RESULT static MaybeHandle<Object> CreateArrayLiteralBoilerplate( | 848 MUST_USE_RESULT static MaybeHandle<Object> CreateArrayLiteralBoilerplate( |
| 848 Isolate* isolate, Handle<FixedArray> literals, | 849 Isolate* isolate, Handle<FixedArray> literals, |
| 849 Handle<FixedArray> elements); | 850 Handle<FixedArray> elements); |
| 850 | 851 |
| 851 static void WeakCollectionInitialize( | 852 static void WeakCollectionInitialize( |
| 852 Isolate* isolate, Handle<JSWeakCollection> weak_collection); | 853 Isolate* isolate, Handle<JSWeakCollection> weak_collection); |
| 853 static void WeakCollectionSet(Handle<JSWeakCollection> weak_collection, | 854 static void WeakCollectionSet(Handle<JSWeakCollection> weak_collection, |
| 854 Handle<Object> key, Handle<Object> value); | 855 Handle<Object> key, Handle<Object> value); |
| 855 static bool WeakCollectionDelete(Handle<JSWeakCollection> weak_collection, | 856 static bool WeakCollectionDelete(Handle<JSWeakCollection> weak_collection, |
| 856 Handle<Object> key); | 857 Handle<Object> key); |
| 858 |
| 859 static MaybeHandle<JSArray> GetInternalProperties(Isolate* isolate, |
| 860 Handle<Object>); |
| 857 }; | 861 }; |
| 858 | 862 |
| 859 | 863 |
| 860 std::ostream& operator<<(std::ostream&, Runtime::FunctionId); | 864 std::ostream& operator<<(std::ostream&, Runtime::FunctionId); |
| 861 | 865 |
| 862 //--------------------------------------------------------------------------- | 866 //--------------------------------------------------------------------------- |
| 863 // Constants used by interface to runtime functions. | 867 // Constants used by interface to runtime functions. |
| 864 | 868 |
| 865 class AllocateDoubleAlignFlag : public BitField<bool, 0, 1> {}; | 869 class AllocateDoubleAlignFlag : public BitField<bool, 0, 1> {}; |
| 866 class AllocateTargetSpace : public BitField<AllocationSpace, 1, 3> {}; | 870 class AllocateTargetSpace : public BitField<AllocationSpace, 1, 3> {}; |
| 867 | 871 |
| 868 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 872 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
| 869 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 873 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
| 870 STATIC_ASSERT(LANGUAGE_END == 3); | 874 STATIC_ASSERT(LANGUAGE_END == 3); |
| 871 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; | 875 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; |
| 872 | 876 |
| 873 } // namespace internal | 877 } // namespace internal |
| 874 } // namespace v8 | 878 } // namespace v8 |
| 875 | 879 |
| 876 #endif // V8_RUNTIME_RUNTIME_H_ | 880 #endif // V8_RUNTIME_RUNTIME_H_ |
| OLD | NEW |