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

Side by Side Diff: src/isolate.h

Issue 2413243002: Introduce a CompilerDispatcherTracer and track how long jobs take (Closed)
Patch Set: Created 4 years, 2 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
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 27 matching lines...) Expand all
38 class Bootstrapper; 38 class Bootstrapper;
39 class CancelableTaskManager; 39 class CancelableTaskManager;
40 class CallInterfaceDescriptorData; 40 class CallInterfaceDescriptorData;
41 class CodeAgingHelper; 41 class CodeAgingHelper;
42 class CodeEventDispatcher; 42 class CodeEventDispatcher;
43 class CodeGenerator; 43 class CodeGenerator;
44 class CodeRange; 44 class CodeRange;
45 class CodeStubDescriptor; 45 class CodeStubDescriptor;
46 class CodeTracer; 46 class CodeTracer;
47 class CompilationCache; 47 class CompilationCache;
48 class CompilerDispatcherTracer;
48 class CompilationStatistics; 49 class CompilationStatistics;
49 class ContextSlotCache; 50 class ContextSlotCache;
50 class Counters; 51 class Counters;
51 class CpuFeatures; 52 class CpuFeatures;
52 class CpuProfiler; 53 class CpuProfiler;
53 class DeoptimizerData; 54 class DeoptimizerData;
54 class DescriptorLookupCache; 55 class DescriptorLookupCache;
55 class Deserializer; 56 class Deserializer;
56 class EmptyStatement; 57 class EmptyStatement;
57 class ExternalCallbackScope; 58 class ExternalCallbackScope;
(...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after
1152 FutexWaitListNode* futex_wait_list_node() { return &futex_wait_list_node_; } 1153 FutexWaitListNode* futex_wait_list_node() { return &futex_wait_list_node_; }
1153 1154
1154 CancelableTaskManager* cancelable_task_manager() { 1155 CancelableTaskManager* cancelable_task_manager() {
1155 return cancelable_task_manager_; 1156 return cancelable_task_manager_;
1156 } 1157 }
1157 1158
1158 interpreter::Interpreter* interpreter() const { return interpreter_; } 1159 interpreter::Interpreter* interpreter() const { return interpreter_; }
1159 1160
1160 AccountingAllocator* allocator() { return allocator_; } 1161 AccountingAllocator* allocator() { return allocator_; }
1161 1162
1163 CompilerDispatcherTracer* compiler_dispatcher_tracer() const {
1164 return compiler_dispatcher_tracer_;
1165 }
1166
1162 bool IsInAnyContext(Object* object, uint32_t index); 1167 bool IsInAnyContext(Object* object, uint32_t index);
1163 1168
1164 void SetRAILMode(RAILMode rail_mode); 1169 void SetRAILMode(RAILMode rail_mode);
1165 1170
1166 void IsolateInForegroundNotification(); 1171 void IsolateInForegroundNotification();
1167 1172
1168 void IsolateInBackgroundNotification(); 1173 void IsolateInBackgroundNotification();
1169 1174
1170 bool IsIsolateInBackground() { return is_isolate_in_background_; } 1175 bool IsIsolateInBackground() { return is_isolate_in_background_; }
1171 1176
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
1379 #endif 1384 #endif
1380 1385
1381 Debug* debug_; 1386 Debug* debug_;
1382 CpuProfiler* cpu_profiler_; 1387 CpuProfiler* cpu_profiler_;
1383 HeapProfiler* heap_profiler_; 1388 HeapProfiler* heap_profiler_;
1384 std::unique_ptr<CodeEventDispatcher> code_event_dispatcher_; 1389 std::unique_ptr<CodeEventDispatcher> code_event_dispatcher_;
1385 FunctionEntryHook function_entry_hook_; 1390 FunctionEntryHook function_entry_hook_;
1386 1391
1387 interpreter::Interpreter* interpreter_; 1392 interpreter::Interpreter* interpreter_;
1388 1393
1394 CompilerDispatcherTracer* compiler_dispatcher_tracer_;
1395
1389 typedef std::pair<InterruptCallback, void*> InterruptEntry; 1396 typedef std::pair<InterruptCallback, void*> InterruptEntry;
1390 std::queue<InterruptEntry> api_interrupts_queue_; 1397 std::queue<InterruptEntry> api_interrupts_queue_;
1391 1398
1392 #define GLOBAL_BACKING_STORE(type, name, initialvalue) \ 1399 #define GLOBAL_BACKING_STORE(type, name, initialvalue) \
1393 type name##_; 1400 type name##_;
1394 ISOLATE_INIT_LIST(GLOBAL_BACKING_STORE) 1401 ISOLATE_INIT_LIST(GLOBAL_BACKING_STORE)
1395 #undef GLOBAL_BACKING_STORE 1402 #undef GLOBAL_BACKING_STORE
1396 1403
1397 #define GLOBAL_ARRAY_BACKING_STORE(type, name, length) \ 1404 #define GLOBAL_ARRAY_BACKING_STORE(type, name, length) \
1398 type name##_[length]; 1405 type name##_[length];
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
1682 1689
1683 EmbeddedVector<char, 128> filename_; 1690 EmbeddedVector<char, 128> filename_;
1684 FILE* file_; 1691 FILE* file_;
1685 int scope_depth_; 1692 int scope_depth_;
1686 }; 1693 };
1687 1694
1688 } // namespace internal 1695 } // namespace internal
1689 } // namespace v8 1696 } // namespace v8
1690 1697
1691 #endif // V8_ISOLATE_H_ 1698 #endif // V8_ISOLATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698