| 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 | 10 |
| 11 #include "include/v8-debug.h" | 11 #include "include/v8-debug.h" |
| 12 #include "src/allocation.h" | 12 #include "src/allocation.h" |
| 13 #include "src/base/atomicops.h" | 13 #include "src/base/atomicops.h" |
| 14 #include "src/builtins/builtins.h" | 14 #include "src/builtins/builtins.h" |
| 15 #include "src/contexts.h" | 15 #include "src/contexts.h" |
| 16 #include "src/date.h" | 16 #include "src/date.h" |
| 17 #include "src/execution.h" | 17 #include "src/execution.h" |
| 18 #include "src/frames.h" | 18 #include "src/frames.h" |
| 19 #include "src/futex-emulation.h" | 19 #include "src/futex-emulation.h" |
| 20 #include "src/global-handles.h" | 20 #include "src/global-handles.h" |
| 21 #include "src/handles.h" | 21 #include "src/handles.h" |
| 22 #include "src/heap/heap.h" | 22 #include "src/heap/heap.h" |
| 23 #include "src/messages.h" | 23 #include "src/messages.h" |
| 24 #include "src/regexp/regexp-stack.h" | 24 #include "src/regexp/regexp-stack.h" |
| 25 #include "src/runtime/runtime.h" | 25 #include "src/runtime/runtime.h" |
| 26 #include "src/tracing/trace-event.h" |
| 26 #include "src/zone.h" | 27 #include "src/zone.h" |
| 27 | 28 |
| 28 namespace v8 { | 29 namespace v8 { |
| 29 | 30 |
| 30 namespace base { | 31 namespace base { |
| 31 class AccountingAllocator; | 32 class AccountingAllocator; |
| 32 class RandomNumberGenerator; | 33 class RandomNumberGenerator; |
| 33 } | 34 } |
| 34 | 35 |
| 35 namespace internal { | 36 namespace internal { |
| (...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 835 NATIVE_CONTEXT_FIELDS(NATIVE_CONTEXT_FIELD_ACCESSOR) | 836 NATIVE_CONTEXT_FIELDS(NATIVE_CONTEXT_FIELD_ACCESSOR) |
| 836 #undef NATIVE_CONTEXT_FIELD_ACCESSOR | 837 #undef NATIVE_CONTEXT_FIELD_ACCESSOR |
| 837 | 838 |
| 838 Bootstrapper* bootstrapper() { return bootstrapper_; } | 839 Bootstrapper* bootstrapper() { return bootstrapper_; } |
| 839 Counters* counters() { | 840 Counters* counters() { |
| 840 // Call InitializeLoggingAndCounters() if logging is needed before | 841 // Call InitializeLoggingAndCounters() if logging is needed before |
| 841 // the isolate is fully initialized. | 842 // the isolate is fully initialized. |
| 842 DCHECK(counters_ != NULL); | 843 DCHECK(counters_ != NULL); |
| 843 return counters_; | 844 return counters_; |
| 844 } | 845 } |
| 846 tracing::TraceEventStatsTable* trace_event_stats_table() { |
| 847 return &trace_event_stats_table_; |
| 848 } |
| 845 RuntimeProfiler* runtime_profiler() { return runtime_profiler_; } | 849 RuntimeProfiler* runtime_profiler() { return runtime_profiler_; } |
| 846 CompilationCache* compilation_cache() { return compilation_cache_; } | 850 CompilationCache* compilation_cache() { return compilation_cache_; } |
| 847 Logger* logger() { | 851 Logger* logger() { |
| 848 // Call InitializeLoggingAndCounters() if logging is needed before | 852 // Call InitializeLoggingAndCounters() if logging is needed before |
| 849 // the isolate is fully initialized. | 853 // the isolate is fully initialized. |
| 850 DCHECK(logger_ != NULL); | 854 DCHECK(logger_ != NULL); |
| 851 return logger_; | 855 return logger_; |
| 852 } | 856 } |
| 853 StackGuard* stack_guard() { return &stack_guard_; } | 857 StackGuard* stack_guard() { return &stack_guard_; } |
| 854 Heap* heap() { return &heap_; } | 858 Heap* heap() { return &heap_; } |
| (...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1293 | 1297 |
| 1294 base::Atomic32 id_; | 1298 base::Atomic32 id_; |
| 1295 EntryStackItem* entry_stack_; | 1299 EntryStackItem* entry_stack_; |
| 1296 int stack_trace_nesting_level_; | 1300 int stack_trace_nesting_level_; |
| 1297 StringStream* incomplete_message_; | 1301 StringStream* incomplete_message_; |
| 1298 Address isolate_addresses_[kIsolateAddressCount + 1]; // NOLINT | 1302 Address isolate_addresses_[kIsolateAddressCount + 1]; // NOLINT |
| 1299 Bootstrapper* bootstrapper_; | 1303 Bootstrapper* bootstrapper_; |
| 1300 RuntimeProfiler* runtime_profiler_; | 1304 RuntimeProfiler* runtime_profiler_; |
| 1301 CompilationCache* compilation_cache_; | 1305 CompilationCache* compilation_cache_; |
| 1302 Counters* counters_; | 1306 Counters* counters_; |
| 1307 tracing::TraceEventStatsTable trace_event_stats_table_; |
| 1303 base::RecursiveMutex break_access_; | 1308 base::RecursiveMutex break_access_; |
| 1304 Logger* logger_; | 1309 Logger* logger_; |
| 1305 StackGuard stack_guard_; | 1310 StackGuard stack_guard_; |
| 1306 StatsTable* stats_table_; | 1311 StatsTable* stats_table_; |
| 1307 StubCache* load_stub_cache_; | 1312 StubCache* load_stub_cache_; |
| 1308 StubCache* store_stub_cache_; | 1313 StubCache* store_stub_cache_; |
| 1309 CodeAgingHelper* code_aging_helper_; | 1314 CodeAgingHelper* code_aging_helper_; |
| 1310 DeoptimizerData* deoptimizer_data_; | 1315 DeoptimizerData* deoptimizer_data_; |
| 1311 bool deoptimizer_lazy_throw_; | 1316 bool deoptimizer_lazy_throw_; |
| 1312 MaterializedObjectStore* materialized_object_store_; | 1317 MaterializedObjectStore* materialized_object_store_; |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1669 | 1674 |
| 1670 EmbeddedVector<char, 128> filename_; | 1675 EmbeddedVector<char, 128> filename_; |
| 1671 FILE* file_; | 1676 FILE* file_; |
| 1672 int scope_depth_; | 1677 int scope_depth_; |
| 1673 }; | 1678 }; |
| 1674 | 1679 |
| 1675 } // namespace internal | 1680 } // namespace internal |
| 1676 } // namespace v8 | 1681 } // namespace v8 |
| 1677 | 1682 |
| 1678 #endif // V8_ISOLATE_H_ | 1683 #endif // V8_ISOLATE_H_ |
| OLD | NEW |