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 #include <set> | 10 #include <set> |
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
914 interp_canonicalize_mapping() { | 914 interp_canonicalize_mapping() { |
915 return ®exp_macro_assembler_canonicalize_; | 915 return ®exp_macro_assembler_canonicalize_; |
916 } | 916 } |
917 | 917 |
918 Debug* debug() { return debug_; } | 918 Debug* debug() { return debug_; } |
919 | 919 |
920 bool* is_profiling_address() { return &is_profiling_; } | 920 bool* is_profiling_address() { return &is_profiling_; } |
921 CodeEventDispatcher* code_event_dispatcher() const { | 921 CodeEventDispatcher* code_event_dispatcher() const { |
922 return code_event_dispatcher_.get(); | 922 return code_event_dispatcher_.get(); |
923 } | 923 } |
924 CpuProfiler* cpu_profiler() const { return cpu_profiler_; } | |
925 HeapProfiler* heap_profiler() const { return heap_profiler_; } | 924 HeapProfiler* heap_profiler() const { return heap_profiler_; } |
926 | 925 |
927 #ifdef DEBUG | 926 #ifdef DEBUG |
928 HistogramInfo* heap_histograms() { return heap_histograms_; } | 927 HistogramInfo* heap_histograms() { return heap_histograms_; } |
929 | 928 |
930 JSObject::SpillInformation* js_spill_information() { | 929 JSObject::SpillInformation* js_spill_information() { |
931 return &js_spill_information_; | 930 return &js_spill_information_; |
932 } | 931 } |
933 #endif | 932 #endif |
934 | 933 |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1257 case PERFORMANCE_ANIMATION: | 1256 case PERFORMANCE_ANIMATION: |
1258 return "ANIMATION"; | 1257 return "ANIMATION"; |
1259 case PERFORMANCE_IDLE: | 1258 case PERFORMANCE_IDLE: |
1260 return "IDLE"; | 1259 return "IDLE"; |
1261 case PERFORMANCE_LOAD: | 1260 case PERFORMANCE_LOAD: |
1262 return "LOAD"; | 1261 return "LOAD"; |
1263 } | 1262 } |
1264 return ""; | 1263 return ""; |
1265 } | 1264 } |
1266 | 1265 |
| 1266 // TODO(alph): Remove along with the deprecated GetCpuProfiler(). |
| 1267 friend v8::CpuProfiler* v8::Isolate::GetCpuProfiler(); |
| 1268 CpuProfiler* cpu_profiler() const { return cpu_profiler_; } |
| 1269 |
1267 base::Atomic32 id_; | 1270 base::Atomic32 id_; |
1268 EntryStackItem* entry_stack_; | 1271 EntryStackItem* entry_stack_; |
1269 int stack_trace_nesting_level_; | 1272 int stack_trace_nesting_level_; |
1270 StringStream* incomplete_message_; | 1273 StringStream* incomplete_message_; |
1271 Address isolate_addresses_[kIsolateAddressCount + 1]; // NOLINT | 1274 Address isolate_addresses_[kIsolateAddressCount + 1]; // NOLINT |
1272 Bootstrapper* bootstrapper_; | 1275 Bootstrapper* bootstrapper_; |
1273 RuntimeProfiler* runtime_profiler_; | 1276 RuntimeProfiler* runtime_profiler_; |
1274 CompilationCache* compilation_cache_; | 1277 CompilationCache* compilation_cache_; |
1275 Counters* counters_; | 1278 Counters* counters_; |
1276 base::RecursiveMutex break_access_; | 1279 base::RecursiveMutex break_access_; |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1639 | 1642 |
1640 EmbeddedVector<char, 128> filename_; | 1643 EmbeddedVector<char, 128> filename_; |
1641 FILE* file_; | 1644 FILE* file_; |
1642 int scope_depth_; | 1645 int scope_depth_; |
1643 }; | 1646 }; |
1644 | 1647 |
1645 } // namespace internal | 1648 } // namespace internal |
1646 } // namespace v8 | 1649 } // namespace v8 |
1647 | 1650 |
1648 #endif // V8_ISOLATE_H_ | 1651 #endif // V8_ISOLATE_H_ |
OLD | NEW |