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_ISOLATE_H_ | 5 #ifndef V8_ISOLATE_H_ |
6 #define V8_ISOLATE_H_ | 6 #define V8_ISOLATE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <queue> | 9 #include <queue> |
10 | 10 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 class HeapObjectToIndexHashMap; | 67 class HeapObjectToIndexHashMap; |
68 class HeapProfiler; | 68 class HeapProfiler; |
69 class HStatistics; | 69 class HStatistics; |
70 class HTracer; | 70 class HTracer; |
71 class InlineRuntimeFunctionsTable; | 71 class InlineRuntimeFunctionsTable; |
72 class InnerPointerToCodeCache; | 72 class InnerPointerToCodeCache; |
73 class Logger; | 73 class Logger; |
74 class MaterializedObjectStore; | 74 class MaterializedObjectStore; |
75 class OptimizingCompileDispatcher; | 75 class OptimizingCompileDispatcher; |
76 class RegExpStack; | 76 class RegExpStack; |
| 77 class RootVisitor; |
77 class RuntimeProfiler; | 78 class RuntimeProfiler; |
78 class SaveContext; | 79 class SaveContext; |
79 class SetupIsolateDelegate; | 80 class SetupIsolateDelegate; |
80 class StatsTable; | 81 class StatsTable; |
81 class StringTracker; | 82 class StringTracker; |
82 class StubCache; | 83 class StubCache; |
83 class SweeperThread; | 84 class SweeperThread; |
84 class ThreadManager; | 85 class ThreadManager; |
85 class ThreadState; | 86 class ThreadState; |
86 class ThreadVisitor; // Defined in v8threads.h | 87 class ThreadVisitor; // Defined in v8threads.h |
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
790 | 791 |
791 // Out of resource exception helpers. | 792 // Out of resource exception helpers. |
792 Object* StackOverflow(); | 793 Object* StackOverflow(); |
793 Object* TerminateExecution(); | 794 Object* TerminateExecution(); |
794 void CancelTerminateExecution(); | 795 void CancelTerminateExecution(); |
795 | 796 |
796 void RequestInterrupt(InterruptCallback callback, void* data); | 797 void RequestInterrupt(InterruptCallback callback, void* data); |
797 void InvokeApiInterruptCallbacks(); | 798 void InvokeApiInterruptCallbacks(); |
798 | 799 |
799 // Administration | 800 // Administration |
800 void Iterate(ObjectVisitor* v); | 801 void Iterate(RootVisitor* v); |
801 void Iterate(ObjectVisitor* v, ThreadLocalTop* t); | 802 void Iterate(RootVisitor* v, ThreadLocalTop* t); |
802 char* Iterate(ObjectVisitor* v, char* t); | 803 char* Iterate(RootVisitor* v, char* t); |
803 void IterateThread(ThreadVisitor* v, char* t); | 804 void IterateThread(ThreadVisitor* v, char* t); |
804 | 805 |
805 // Returns the current native context. | 806 // Returns the current native context. |
806 inline Handle<Context> native_context(); | 807 inline Handle<Context> native_context(); |
807 inline Context* raw_native_context(); | 808 inline Context* raw_native_context(); |
808 | 809 |
809 // Returns the native context of the calling JavaScript code. That | 810 // Returns the native context of the calling JavaScript code. That |
810 // is, the native context of the top-most JavaScript frame. | 811 // is, the native context of the top-most JavaScript frame. |
811 Handle<Context> GetCallingNativeContext(); | 812 Handle<Context> GetCallingNativeContext(); |
812 | 813 |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1052 void InvalidateArrayBufferNeuteringProtector(); | 1053 void InvalidateArrayBufferNeuteringProtector(); |
1053 | 1054 |
1054 // Returns true if array is the initial array prototype in any native context. | 1055 // Returns true if array is the initial array prototype in any native context. |
1055 bool IsAnyInitialArrayPrototype(Handle<JSArray> array); | 1056 bool IsAnyInitialArrayPrototype(Handle<JSArray> array); |
1056 | 1057 |
1057 V8_EXPORT_PRIVATE CallInterfaceDescriptorData* call_descriptor_data( | 1058 V8_EXPORT_PRIVATE CallInterfaceDescriptorData* call_descriptor_data( |
1058 int index); | 1059 int index); |
1059 | 1060 |
1060 AccessCompilerData* access_compiler_data() { return access_compiler_data_; } | 1061 AccessCompilerData* access_compiler_data() { return access_compiler_data_; } |
1061 | 1062 |
1062 void IterateDeferredHandles(ObjectVisitor* visitor); | 1063 void IterateDeferredHandles(RootVisitor* visitor); |
1063 void LinkDeferredHandles(DeferredHandles* deferred_handles); | 1064 void LinkDeferredHandles(DeferredHandles* deferred_handles); |
1064 void UnlinkDeferredHandles(DeferredHandles* deferred_handles); | 1065 void UnlinkDeferredHandles(DeferredHandles* deferred_handles); |
1065 | 1066 |
1066 #ifdef DEBUG | 1067 #ifdef DEBUG |
1067 bool IsDeferredHandle(Object** location); | 1068 bool IsDeferredHandle(Object** location); |
1068 #endif // DEBUG | 1069 #endif // DEBUG |
1069 | 1070 |
1070 bool concurrent_recompilation_enabled() { | 1071 bool concurrent_recompilation_enabled() { |
1071 // Thread is only available with flag enabled. | 1072 // Thread is only available with flag enabled. |
1072 DCHECK(optimizing_compile_dispatcher_ == NULL || | 1073 DCHECK(optimizing_compile_dispatcher_ == NULL || |
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1782 | 1783 |
1783 EmbeddedVector<char, 128> filename_; | 1784 EmbeddedVector<char, 128> filename_; |
1784 FILE* file_; | 1785 FILE* file_; |
1785 int scope_depth_; | 1786 int scope_depth_; |
1786 }; | 1787 }; |
1787 | 1788 |
1788 } // namespace internal | 1789 } // namespace internal |
1789 } // namespace v8 | 1790 } // namespace v8 |
1790 | 1791 |
1791 #endif // V8_ISOLATE_H_ | 1792 #endif // V8_ISOLATE_H_ |
OLD | NEW |