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

Side by Side Diff: src/isolate.h

Issue 593563005: [turbofan] basic block profiler (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/flag-definitions.h ('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 "include/v8-debug.h" 8 #include "include/v8-debug.h"
9 #include "src/allocation.h" 9 #include "src/allocation.h"
10 #include "src/assert-scope.h" 10 #include "src/assert-scope.h"
(...skipping 14 matching lines...) Expand all
25 #include "src/zone.h" 25 #include "src/zone.h"
26 26
27 namespace v8 { 27 namespace v8 {
28 28
29 namespace base { 29 namespace base {
30 class RandomNumberGenerator; 30 class RandomNumberGenerator;
31 } 31 }
32 32
33 namespace internal { 33 namespace internal {
34 34
35 class BasicBlockProfiler;
35 class Bootstrapper; 36 class Bootstrapper;
36 class CallInterfaceDescriptorData; 37 class CallInterfaceDescriptorData;
37 class CodeGenerator; 38 class CodeGenerator;
38 class CodeRange; 39 class CodeRange;
39 class CodeStubDescriptor; 40 class CodeStubDescriptor;
40 class CodeTracer; 41 class CodeTracer;
41 class CompilationCache; 42 class CompilationCache;
42 class ConsStringIteratorOp; 43 class ConsStringIteratorOp;
43 class ContextSlotCache; 44 class ContextSlotCache;
44 class Counters; 45 class Counters;
(...skipping 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after
1100 void AddCallCompletedCallback(CallCompletedCallback callback); 1101 void AddCallCompletedCallback(CallCompletedCallback callback);
1101 void RemoveCallCompletedCallback(CallCompletedCallback callback); 1102 void RemoveCallCompletedCallback(CallCompletedCallback callback);
1102 void FireCallCompletedCallback(); 1103 void FireCallCompletedCallback();
1103 1104
1104 void EnqueueMicrotask(Handle<Object> microtask); 1105 void EnqueueMicrotask(Handle<Object> microtask);
1105 void RunMicrotasks(); 1106 void RunMicrotasks();
1106 1107
1107 void SetUseCounterCallback(v8::Isolate::UseCounterCallback callback); 1108 void SetUseCounterCallback(v8::Isolate::UseCounterCallback callback);
1108 void CountUsage(v8::Isolate::UseCounterFeature feature); 1109 void CountUsage(v8::Isolate::UseCounterFeature feature);
1109 1110
1111 BasicBlockProfiler* GetOrCreateBasicBlockProfiler();
1112 BasicBlockProfiler* basic_block_profiler() { return basic_block_profiler_; }
1113
1110 static Isolate* NewForTesting() { return new Isolate(); } 1114 static Isolate* NewForTesting() { return new Isolate(); }
1111 1115
1112 private: 1116 private:
1113 Isolate(); 1117 Isolate();
1114 1118
1115 friend struct GlobalState; 1119 friend struct GlobalState;
1116 friend struct InitializeGlobalState; 1120 friend struct InitializeGlobalState;
1117 1121
1118 enum State { 1122 enum State {
1119 UNINITIALIZED, // Some components may not have been allocated. 1123 UNINITIALIZED, // Some components may not have been allocated.
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
1320 1324
1321 // Counts deopt points if deopt_every_n_times is enabled. 1325 // Counts deopt points if deopt_every_n_times is enabled.
1322 unsigned int stress_deopt_count_; 1326 unsigned int stress_deopt_count_;
1323 1327
1324 int next_optimization_id_; 1328 int next_optimization_id_;
1325 1329
1326 // List of callbacks when a Call completes. 1330 // List of callbacks when a Call completes.
1327 List<CallCompletedCallback> call_completed_callbacks_; 1331 List<CallCompletedCallback> call_completed_callbacks_;
1328 1332
1329 v8::Isolate::UseCounterCallback use_counter_callback_; 1333 v8::Isolate::UseCounterCallback use_counter_callback_;
1334 BasicBlockProfiler* basic_block_profiler_;
1330 1335
1331 friend class ExecutionAccess; 1336 friend class ExecutionAccess;
1332 friend class HandleScopeImplementer; 1337 friend class HandleScopeImplementer;
1333 friend class IsolateInitializer; 1338 friend class IsolateInitializer;
1334 friend class OptimizingCompilerThread; 1339 friend class OptimizingCompilerThread;
1335 friend class SweeperThread; 1340 friend class SweeperThread;
1336 friend class ThreadManager; 1341 friend class ThreadManager;
1337 friend class Simulator; 1342 friend class Simulator;
1338 friend class StackGuard; 1343 friend class StackGuard;
1339 friend class ThreadId; 1344 friend class ThreadId;
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
1549 } 1554 }
1550 1555
1551 EmbeddedVector<char, 128> filename_; 1556 EmbeddedVector<char, 128> filename_;
1552 FILE* file_; 1557 FILE* file_;
1553 int scope_depth_; 1558 int scope_depth_;
1554 }; 1559 };
1555 1560
1556 } } // namespace v8::internal 1561 } } // namespace v8::internal
1557 1562
1558 #endif // V8_ISOLATE_H_ 1563 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698