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 12 matching lines...) Expand all Loading... |
23 #include "src/execution.h" | 23 #include "src/execution.h" |
24 #include "src/frames.h" | 24 #include "src/frames.h" |
25 #include "src/futex-emulation.h" | 25 #include "src/futex-emulation.h" |
26 #include "src/global-handles.h" | 26 #include "src/global-handles.h" |
27 #include "src/handles.h" | 27 #include "src/handles.h" |
28 #include "src/heap/heap.h" | 28 #include "src/heap/heap.h" |
29 #include "src/messages.h" | 29 #include "src/messages.h" |
30 #include "src/regexp/regexp-stack.h" | 30 #include "src/regexp/regexp-stack.h" |
31 #include "src/runtime-profiler.h" | 31 #include "src/runtime-profiler.h" |
32 #include "src/runtime/runtime.h" | 32 #include "src/runtime/runtime.h" |
| 33 #include "src/tracing/trace-event.h" |
33 #include "src/zone.h" | 34 #include "src/zone.h" |
34 | 35 |
35 namespace v8 { | 36 namespace v8 { |
36 | 37 |
37 namespace base { | 38 namespace base { |
38 class RandomNumberGenerator; | 39 class RandomNumberGenerator; |
39 } | 40 } |
40 | 41 |
41 namespace internal { | 42 namespace internal { |
42 | 43 |
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
821 NATIVE_CONTEXT_FIELDS(NATIVE_CONTEXT_FIELD_ACCESSOR) | 822 NATIVE_CONTEXT_FIELDS(NATIVE_CONTEXT_FIELD_ACCESSOR) |
822 #undef NATIVE_CONTEXT_FIELD_ACCESSOR | 823 #undef NATIVE_CONTEXT_FIELD_ACCESSOR |
823 | 824 |
824 Bootstrapper* bootstrapper() { return bootstrapper_; } | 825 Bootstrapper* bootstrapper() { return bootstrapper_; } |
825 Counters* counters() { | 826 Counters* counters() { |
826 // Call InitializeLoggingAndCounters() if logging is needed before | 827 // Call InitializeLoggingAndCounters() if logging is needed before |
827 // the isolate is fully initialized. | 828 // the isolate is fully initialized. |
828 DCHECK(counters_ != NULL); | 829 DCHECK(counters_ != NULL); |
829 return counters_; | 830 return counters_; |
830 } | 831 } |
| 832 tracing::TraceEventStatsTable* trace_event_stats_table() { |
| 833 return &trace_event_stats_table_; |
| 834 } |
831 RuntimeProfiler* runtime_profiler() { return runtime_profiler_; } | 835 RuntimeProfiler* runtime_profiler() { return runtime_profiler_; } |
832 CompilationCache* compilation_cache() { return compilation_cache_; } | 836 CompilationCache* compilation_cache() { return compilation_cache_; } |
833 Logger* logger() { | 837 Logger* logger() { |
834 // Call InitializeLoggingAndCounters() if logging is needed before | 838 // Call InitializeLoggingAndCounters() if logging is needed before |
835 // the isolate is fully initialized. | 839 // the isolate is fully initialized. |
836 DCHECK(logger_ != NULL); | 840 DCHECK(logger_ != NULL); |
837 return logger_; | 841 return logger_; |
838 } | 842 } |
839 StackGuard* stack_guard() { return &stack_guard_; } | 843 StackGuard* stack_guard() { return &stack_guard_; } |
840 Heap* heap() { return &heap_; } | 844 Heap* heap() { return &heap_; } |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1272 | 1276 |
1273 base::Atomic32 id_; | 1277 base::Atomic32 id_; |
1274 EntryStackItem* entry_stack_; | 1278 EntryStackItem* entry_stack_; |
1275 int stack_trace_nesting_level_; | 1279 int stack_trace_nesting_level_; |
1276 StringStream* incomplete_message_; | 1280 StringStream* incomplete_message_; |
1277 Address isolate_addresses_[kIsolateAddressCount + 1]; // NOLINT | 1281 Address isolate_addresses_[kIsolateAddressCount + 1]; // NOLINT |
1278 Bootstrapper* bootstrapper_; | 1282 Bootstrapper* bootstrapper_; |
1279 RuntimeProfiler* runtime_profiler_; | 1283 RuntimeProfiler* runtime_profiler_; |
1280 CompilationCache* compilation_cache_; | 1284 CompilationCache* compilation_cache_; |
1281 Counters* counters_; | 1285 Counters* counters_; |
| 1286 tracing::TraceEventStatsTable trace_event_stats_table_; |
1282 base::RecursiveMutex break_access_; | 1287 base::RecursiveMutex break_access_; |
1283 Logger* logger_; | 1288 Logger* logger_; |
1284 StackGuard stack_guard_; | 1289 StackGuard stack_guard_; |
1285 StatsTable* stats_table_; | 1290 StatsTable* stats_table_; |
1286 StubCache* load_stub_cache_; | 1291 StubCache* load_stub_cache_; |
1287 StubCache* store_stub_cache_; | 1292 StubCache* store_stub_cache_; |
1288 CodeAgingHelper* code_aging_helper_; | 1293 CodeAgingHelper* code_aging_helper_; |
1289 DeoptimizerData* deoptimizer_data_; | 1294 DeoptimizerData* deoptimizer_data_; |
1290 bool deoptimizer_lazy_throw_; | 1295 bool deoptimizer_lazy_throw_; |
1291 MaterializedObjectStore* materialized_object_store_; | 1296 MaterializedObjectStore* materialized_object_store_; |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1643 | 1648 |
1644 EmbeddedVector<char, 128> filename_; | 1649 EmbeddedVector<char, 128> filename_; |
1645 FILE* file_; | 1650 FILE* file_; |
1646 int scope_depth_; | 1651 int scope_depth_; |
1647 }; | 1652 }; |
1648 | 1653 |
1649 } // namespace internal | 1654 } // namespace internal |
1650 } // namespace v8 | 1655 } // namespace v8 |
1651 | 1656 |
1652 #endif // V8_ISOLATE_H_ | 1657 #endif // V8_ISOLATE_H_ |
OLD | NEW |