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 <queue> | 8 #include <queue> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 898 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
909 | 909 |
910 RegExpStack* regexp_stack() { return regexp_stack_; } | 910 RegExpStack* regexp_stack() { return regexp_stack_; } |
911 | 911 |
912 unibrow::Mapping<unibrow::Ecma262Canonicalize>* | 912 unibrow::Mapping<unibrow::Ecma262Canonicalize>* |
913 interp_canonicalize_mapping() { | 913 interp_canonicalize_mapping() { |
914 return ®exp_macro_assembler_canonicalize_; | 914 return ®exp_macro_assembler_canonicalize_; |
915 } | 915 } |
916 | 916 |
917 Debug* debug() { return debug_; } | 917 Debug* debug() { return debug_; } |
918 | 918 |
919 void set_profiling(bool value) { is_profiling_ = value; } | |
Yang
2016/06/08 07:45:18
You could declare this field including accessors b
alph
2016/06/08 18:38:42
Thanks. Done.
| |
920 bool is_profiling() const { return is_profiling_; } | |
921 bool* is_profiling_address() { return &is_profiling_; } | |
Yang
2016/06/08 07:45:18
You could add an entry to FOR_EACH_ISOLATE_ADDRESS
alph
2016/06/08 18:38:42
It doesn't seem I need this as the entry has a ded
| |
919 CpuProfiler* cpu_profiler() const { return cpu_profiler_; } | 922 CpuProfiler* cpu_profiler() const { return cpu_profiler_; } |
920 HeapProfiler* heap_profiler() const { return heap_profiler_; } | 923 HeapProfiler* heap_profiler() const { return heap_profiler_; } |
921 | 924 |
922 #ifdef DEBUG | 925 #ifdef DEBUG |
923 HistogramInfo* heap_histograms() { return heap_histograms_; } | 926 HistogramInfo* heap_histograms() { return heap_histograms_; } |
924 | 927 |
925 JSObject::SpillInformation* js_spill_information() { | 928 JSObject::SpillInformation* js_spill_information() { |
926 return &js_spill_information_; | 929 return &js_spill_information_; |
927 } | 930 } |
928 #endif | 931 #endif |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1325 | 1328 |
1326 // Time stamp at initialization. | 1329 // Time stamp at initialization. |
1327 double time_millis_at_init_; | 1330 double time_millis_at_init_; |
1328 | 1331 |
1329 #ifdef DEBUG | 1332 #ifdef DEBUG |
1330 // A static array of histogram info for each type. | 1333 // A static array of histogram info for each type. |
1331 HistogramInfo heap_histograms_[LAST_TYPE + 1]; | 1334 HistogramInfo heap_histograms_[LAST_TYPE + 1]; |
1332 JSObject::SpillInformation js_spill_information_; | 1335 JSObject::SpillInformation js_spill_information_; |
1333 #endif | 1336 #endif |
1334 | 1337 |
1338 // True if the isolate is being profiled. | |
1339 // Causes collection of extra compile info. | |
1340 bool is_profiling_; | |
1335 Debug* debug_; | 1341 Debug* debug_; |
1336 CpuProfiler* cpu_profiler_; | 1342 CpuProfiler* cpu_profiler_; |
1337 HeapProfiler* heap_profiler_; | 1343 HeapProfiler* heap_profiler_; |
1338 FunctionEntryHook function_entry_hook_; | 1344 FunctionEntryHook function_entry_hook_; |
1339 | 1345 |
1340 interpreter::Interpreter* interpreter_; | 1346 interpreter::Interpreter* interpreter_; |
1341 | 1347 |
1342 typedef std::pair<InterruptCallback, void*> InterruptEntry; | 1348 typedef std::pair<InterruptCallback, void*> InterruptEntry; |
1343 std::queue<InterruptEntry> api_interrupts_queue_; | 1349 std::queue<InterruptEntry> api_interrupts_queue_; |
1344 | 1350 |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1636 | 1642 |
1637 EmbeddedVector<char, 128> filename_; | 1643 EmbeddedVector<char, 128> filename_; |
1638 FILE* file_; | 1644 FILE* file_; |
1639 int scope_depth_; | 1645 int scope_depth_; |
1640 }; | 1646 }; |
1641 | 1647 |
1642 } // namespace internal | 1648 } // namespace internal |
1643 } // namespace v8 | 1649 } // namespace v8 |
1644 | 1650 |
1645 #endif // V8_ISOLATE_H_ | 1651 #endif // V8_ISOLATE_H_ |
OLD | NEW |