| 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" | |
| 34 #include "src/zone.h" | 33 #include "src/zone.h" |
| 35 | 34 |
| 36 namespace v8 { | 35 namespace v8 { |
| 37 | 36 |
| 38 namespace base { | 37 namespace base { |
| 39 class RandomNumberGenerator; | 38 class RandomNumberGenerator; |
| 40 } | 39 } |
| 41 | 40 |
| 42 namespace internal { | 41 namespace internal { |
| 43 | 42 |
| (...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 834 NATIVE_CONTEXT_FIELDS(NATIVE_CONTEXT_FIELD_ACCESSOR) | 833 NATIVE_CONTEXT_FIELDS(NATIVE_CONTEXT_FIELD_ACCESSOR) |
| 835 #undef NATIVE_CONTEXT_FIELD_ACCESSOR | 834 #undef NATIVE_CONTEXT_FIELD_ACCESSOR |
| 836 | 835 |
| 837 Bootstrapper* bootstrapper() { return bootstrapper_; } | 836 Bootstrapper* bootstrapper() { return bootstrapper_; } |
| 838 Counters* counters() { | 837 Counters* counters() { |
| 839 // Call InitializeLoggingAndCounters() if logging is needed before | 838 // Call InitializeLoggingAndCounters() if logging is needed before |
| 840 // the isolate is fully initialized. | 839 // the isolate is fully initialized. |
| 841 DCHECK(counters_ != NULL); | 840 DCHECK(counters_ != NULL); |
| 842 return counters_; | 841 return counters_; |
| 843 } | 842 } |
| 844 tracing::TraceEventStatsTable* trace_event_stats_table() { | |
| 845 return &trace_event_stats_table_; | |
| 846 } | |
| 847 RuntimeProfiler* runtime_profiler() { return runtime_profiler_; } | 843 RuntimeProfiler* runtime_profiler() { return runtime_profiler_; } |
| 848 CompilationCache* compilation_cache() { return compilation_cache_; } | 844 CompilationCache* compilation_cache() { return compilation_cache_; } |
| 849 Logger* logger() { | 845 Logger* logger() { |
| 850 // Call InitializeLoggingAndCounters() if logging is needed before | 846 // Call InitializeLoggingAndCounters() if logging is needed before |
| 851 // the isolate is fully initialized. | 847 // the isolate is fully initialized. |
| 852 DCHECK(logger_ != NULL); | 848 DCHECK(logger_ != NULL); |
| 853 return logger_; | 849 return logger_; |
| 854 } | 850 } |
| 855 StackGuard* stack_guard() { return &stack_guard_; } | 851 StackGuard* stack_guard() { return &stack_guard_; } |
| 856 Heap* heap() { return &heap_; } | 852 Heap* heap() { return &heap_; } |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1288 | 1284 |
| 1289 base::Atomic32 id_; | 1285 base::Atomic32 id_; |
| 1290 EntryStackItem* entry_stack_; | 1286 EntryStackItem* entry_stack_; |
| 1291 int stack_trace_nesting_level_; | 1287 int stack_trace_nesting_level_; |
| 1292 StringStream* incomplete_message_; | 1288 StringStream* incomplete_message_; |
| 1293 Address isolate_addresses_[kIsolateAddressCount + 1]; // NOLINT | 1289 Address isolate_addresses_[kIsolateAddressCount + 1]; // NOLINT |
| 1294 Bootstrapper* bootstrapper_; | 1290 Bootstrapper* bootstrapper_; |
| 1295 RuntimeProfiler* runtime_profiler_; | 1291 RuntimeProfiler* runtime_profiler_; |
| 1296 CompilationCache* compilation_cache_; | 1292 CompilationCache* compilation_cache_; |
| 1297 Counters* counters_; | 1293 Counters* counters_; |
| 1298 tracing::TraceEventStatsTable trace_event_stats_table_; | |
| 1299 base::RecursiveMutex break_access_; | 1294 base::RecursiveMutex break_access_; |
| 1300 Logger* logger_; | 1295 Logger* logger_; |
| 1301 StackGuard stack_guard_; | 1296 StackGuard stack_guard_; |
| 1302 StatsTable* stats_table_; | 1297 StatsTable* stats_table_; |
| 1303 StubCache* load_stub_cache_; | 1298 StubCache* load_stub_cache_; |
| 1304 StubCache* store_stub_cache_; | 1299 StubCache* store_stub_cache_; |
| 1305 CodeAgingHelper* code_aging_helper_; | 1300 CodeAgingHelper* code_aging_helper_; |
| 1306 DeoptimizerData* deoptimizer_data_; | 1301 DeoptimizerData* deoptimizer_data_; |
| 1307 bool deoptimizer_lazy_throw_; | 1302 bool deoptimizer_lazy_throw_; |
| 1308 MaterializedObjectStore* materialized_object_store_; | 1303 MaterializedObjectStore* materialized_object_store_; |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1660 | 1655 |
| 1661 EmbeddedVector<char, 128> filename_; | 1656 EmbeddedVector<char, 128> filename_; |
| 1662 FILE* file_; | 1657 FILE* file_; |
| 1663 int scope_depth_; | 1658 int scope_depth_; |
| 1664 }; | 1659 }; |
| 1665 | 1660 |
| 1666 } // namespace internal | 1661 } // namespace internal |
| 1667 } // namespace v8 | 1662 } // namespace v8 |
| 1668 | 1663 |
| 1669 #endif // V8_ISOLATE_H_ | 1664 #endif // V8_ISOLATE_H_ |
| OLD | NEW |