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 "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 22 matching lines...) Expand all Loading... | |
33 namespace internal { | 33 namespace internal { |
34 | 34 |
35 class BasicBlockProfiler; | 35 class BasicBlockProfiler; |
36 class Bootstrapper; | 36 class Bootstrapper; |
37 class CallInterfaceDescriptorData; | 37 class CallInterfaceDescriptorData; |
38 class CodeGenerator; | 38 class CodeGenerator; |
39 class CodeRange; | 39 class CodeRange; |
40 class CodeStubDescriptor; | 40 class CodeStubDescriptor; |
41 class CodeTracer; | 41 class CodeTracer; |
42 class CompilationCache; | 42 class CompilationCache; |
43 class CompilationStatistics; | |
43 class ContextSlotCache; | 44 class ContextSlotCache; |
44 class Counters; | 45 class Counters; |
45 class CpuFeatures; | 46 class CpuFeatures; |
46 class CpuProfiler; | 47 class CpuProfiler; |
47 class DeoptimizerData; | 48 class DeoptimizerData; |
48 class Deserializer; | 49 class Deserializer; |
49 class EmptyStatement; | 50 class EmptyStatement; |
50 class ExternalCallbackScope; | 51 class ExternalCallbackScope; |
51 class ExternalReferenceTable; | 52 class ExternalReferenceTable; |
52 class Factory; | 53 class Factory; |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
376 V(FunctionInfoListener*, active_function_info_listener, NULL) \ | 377 V(FunctionInfoListener*, active_function_info_listener, NULL) \ |
377 /* State for Relocatable. */ \ | 378 /* State for Relocatable. */ \ |
378 V(Relocatable*, relocatable_top, NULL) \ | 379 V(Relocatable*, relocatable_top, NULL) \ |
379 V(DebugObjectCache*, string_stream_debug_object_cache, NULL) \ | 380 V(DebugObjectCache*, string_stream_debug_object_cache, NULL) \ |
380 V(Object*, string_stream_current_security_token, NULL) \ | 381 V(Object*, string_stream_current_security_token, NULL) \ |
381 /* Serializer state. */ \ | 382 /* Serializer state. */ \ |
382 V(ExternalReferenceTable*, external_reference_table, NULL) \ | 383 V(ExternalReferenceTable*, external_reference_table, NULL) \ |
383 V(int, pending_microtask_count, 0) \ | 384 V(int, pending_microtask_count, 0) \ |
384 V(bool, autorun_microtasks, true) \ | 385 V(bool, autorun_microtasks, true) \ |
385 V(HStatistics*, hstatistics, NULL) \ | 386 V(HStatistics*, hstatistics, NULL) \ |
386 V(HStatistics*, tstatistics, NULL) \ | 387 V(CompilationStatistics*, tstatistics, NULL) \ |
Jarin
2014/10/23 09:03:01
Could you rename to turbo_statistics?
| |
387 V(HTracer*, htracer, NULL) \ | 388 V(HTracer*, htracer, NULL) \ |
388 V(CodeTracer*, code_tracer, NULL) \ | 389 V(CodeTracer*, code_tracer, NULL) \ |
389 V(bool, fp_stubs_generated, false) \ | 390 V(bool, fp_stubs_generated, false) \ |
390 V(int, max_available_threads, 0) \ | 391 V(int, max_available_threads, 0) \ |
391 V(uint32_t, per_isolate_assert_data, 0xFFFFFFFFu) \ | 392 V(uint32_t, per_isolate_assert_data, 0xFFFFFFFFu) \ |
392 V(InterruptCallback, api_interrupt_callback, NULL) \ | 393 V(InterruptCallback, api_interrupt_callback, NULL) \ |
393 V(void*, api_interrupt_callback_data, NULL) \ | 394 V(void*, api_interrupt_callback_data, NULL) \ |
394 V(PromiseRejectCallback, promise_reject_callback, NULL) \ | 395 V(PromiseRejectCallback, promise_reject_callback, NULL) \ |
395 ISOLATE_INIT_SIMULATOR_LIST(V) | 396 ISOLATE_INIT_SIMULATOR_LIST(V) |
396 | 397 |
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1045 return optimizing_compiler_thread_ != NULL && FLAG_concurrent_osr; | 1046 return optimizing_compiler_thread_ != NULL && FLAG_concurrent_osr; |
1046 } | 1047 } |
1047 | 1048 |
1048 OptimizingCompilerThread* optimizing_compiler_thread() { | 1049 OptimizingCompilerThread* optimizing_compiler_thread() { |
1049 return optimizing_compiler_thread_; | 1050 return optimizing_compiler_thread_; |
1050 } | 1051 } |
1051 | 1052 |
1052 int id() const { return static_cast<int>(id_); } | 1053 int id() const { return static_cast<int>(id_); } |
1053 | 1054 |
1054 HStatistics* GetHStatistics(); | 1055 HStatistics* GetHStatistics(); |
1055 HStatistics* GetTStatistics(); | 1056 CompilationStatistics* GetTStatistics(); |
Jarin
2014/10/23 09:03:01
GetTurboStatistics?
| |
1056 HTracer* GetHTracer(); | 1057 HTracer* GetHTracer(); |
1057 CodeTracer* GetCodeTracer(); | 1058 CodeTracer* GetCodeTracer(); |
1058 | 1059 |
1059 FunctionEntryHook function_entry_hook() { return function_entry_hook_; } | 1060 FunctionEntryHook function_entry_hook() { return function_entry_hook_; } |
1060 void set_function_entry_hook(FunctionEntryHook function_entry_hook) { | 1061 void set_function_entry_hook(FunctionEntryHook function_entry_hook) { |
1061 function_entry_hook_ = function_entry_hook; | 1062 function_entry_hook_ = function_entry_hook; |
1062 } | 1063 } |
1063 | 1064 |
1064 void* stress_deopt_count_address() { return &stress_deopt_count_; } | 1065 void* stress_deopt_count_address() { return &stress_deopt_count_; } |
1065 | 1066 |
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1532 } | 1533 } |
1533 | 1534 |
1534 EmbeddedVector<char, 128> filename_; | 1535 EmbeddedVector<char, 128> filename_; |
1535 FILE* file_; | 1536 FILE* file_; |
1536 int scope_depth_; | 1537 int scope_depth_; |
1537 }; | 1538 }; |
1538 | 1539 |
1539 } } // namespace v8::internal | 1540 } } // namespace v8::internal |
1540 | 1541 |
1541 #endif // V8_ISOLATE_H_ | 1542 #endif // V8_ISOLATE_H_ |
OLD | NEW |