Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: src/isolate.h

Issue 2801073006: Decouple root visitors from object visitors. (Closed)
Patch Set: rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/interpreter/interpreter.cc ('k') | src/isolate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 class HeapObjectToIndexHashMap; 71 class HeapObjectToIndexHashMap;
72 class HeapProfiler; 72 class HeapProfiler;
73 class HStatistics; 73 class HStatistics;
74 class HTracer; 74 class HTracer;
75 class InlineRuntimeFunctionsTable; 75 class InlineRuntimeFunctionsTable;
76 class InnerPointerToCodeCache; 76 class InnerPointerToCodeCache;
77 class Logger; 77 class Logger;
78 class MaterializedObjectStore; 78 class MaterializedObjectStore;
79 class OptimizingCompileDispatcher; 79 class OptimizingCompileDispatcher;
80 class RegExpStack; 80 class RegExpStack;
81 class RootVisitor;
81 class RuntimeProfiler; 82 class RuntimeProfiler;
82 class SaveContext; 83 class SaveContext;
83 class SetupIsolateDelegate; 84 class SetupIsolateDelegate;
84 class StatsTable; 85 class StatsTable;
85 class StringTracker; 86 class StringTracker;
86 class StubCache; 87 class StubCache;
87 class SweeperThread; 88 class SweeperThread;
88 class ThreadManager; 89 class ThreadManager;
89 class ThreadState; 90 class ThreadState;
90 class ThreadVisitor; // Defined in v8threads.h 91 class ThreadVisitor; // Defined in v8threads.h
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 809
809 // Out of resource exception helpers. 810 // Out of resource exception helpers.
810 Object* StackOverflow(); 811 Object* StackOverflow();
811 Object* TerminateExecution(); 812 Object* TerminateExecution();
812 void CancelTerminateExecution(); 813 void CancelTerminateExecution();
813 814
814 void RequestInterrupt(InterruptCallback callback, void* data); 815 void RequestInterrupt(InterruptCallback callback, void* data);
815 void InvokeApiInterruptCallbacks(); 816 void InvokeApiInterruptCallbacks();
816 817
817 // Administration 818 // Administration
818 void Iterate(ObjectVisitor* v); 819 void Iterate(RootVisitor* v);
819 void Iterate(ObjectVisitor* v, ThreadLocalTop* t); 820 void Iterate(RootVisitor* v, ThreadLocalTop* t);
820 char* Iterate(ObjectVisitor* v, char* t); 821 char* Iterate(RootVisitor* v, char* t);
821 void IterateThread(ThreadVisitor* v, char* t); 822 void IterateThread(ThreadVisitor* v, char* t);
822 823
823 // Returns the current native context. 824 // Returns the current native context.
824 inline Handle<Context> native_context(); 825 inline Handle<Context> native_context();
825 inline Context* raw_native_context(); 826 inline Context* raw_native_context();
826 827
827 // Returns the native context of the calling JavaScript code. That 828 // Returns the native context of the calling JavaScript code. That
828 // is, the native context of the top-most JavaScript frame. 829 // is, the native context of the top-most JavaScript frame.
829 Handle<Context> GetCallingNativeContext(); 830 Handle<Context> GetCallingNativeContext();
830 831
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
1070 void InvalidateArrayBufferNeuteringProtector(); 1071 void InvalidateArrayBufferNeuteringProtector();
1071 1072
1072 // Returns true if array is the initial array prototype in any native context. 1073 // Returns true if array is the initial array prototype in any native context.
1073 bool IsAnyInitialArrayPrototype(Handle<JSArray> array); 1074 bool IsAnyInitialArrayPrototype(Handle<JSArray> array);
1074 1075
1075 V8_EXPORT_PRIVATE CallInterfaceDescriptorData* call_descriptor_data( 1076 V8_EXPORT_PRIVATE CallInterfaceDescriptorData* call_descriptor_data(
1076 int index); 1077 int index);
1077 1078
1078 AccessCompilerData* access_compiler_data() { return access_compiler_data_; } 1079 AccessCompilerData* access_compiler_data() { return access_compiler_data_; }
1079 1080
1080 void IterateDeferredHandles(ObjectVisitor* visitor); 1081 void IterateDeferredHandles(RootVisitor* visitor);
1081 void LinkDeferredHandles(DeferredHandles* deferred_handles); 1082 void LinkDeferredHandles(DeferredHandles* deferred_handles);
1082 void UnlinkDeferredHandles(DeferredHandles* deferred_handles); 1083 void UnlinkDeferredHandles(DeferredHandles* deferred_handles);
1083 1084
1084 #ifdef DEBUG 1085 #ifdef DEBUG
1085 bool IsDeferredHandle(Object** location); 1086 bool IsDeferredHandle(Object** location);
1086 #endif // DEBUG 1087 #endif // DEBUG
1087 1088
1088 bool concurrent_recompilation_enabled() { 1089 bool concurrent_recompilation_enabled() {
1089 // Thread is only available with flag enabled. 1090 // Thread is only available with flag enabled.
1090 DCHECK(optimizing_compile_dispatcher_ == NULL || 1091 DCHECK(optimizing_compile_dispatcher_ == NULL ||
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
1809 1810
1810 EmbeddedVector<char, 128> filename_; 1811 EmbeddedVector<char, 128> filename_;
1811 FILE* file_; 1812 FILE* file_;
1812 int scope_depth_; 1813 int scope_depth_;
1813 }; 1814 };
1814 1815
1815 } // namespace internal 1816 } // namespace internal
1816 } // namespace v8 1817 } // namespace v8
1817 1818
1818 #endif // V8_ISOLATE_H_ 1819 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/interpreter/interpreter.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698