Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/isolate.h

Issue 2296243002: [RuntimeCallStats] Move tracing runtime instrumentation closer to the original version. (Closed)
Patch Set: Rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/interpreter/interpreter.cc ('k') | src/lookup.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
27 #include "src/zone.h" 26 #include "src/zone.h"
28 27
29 namespace v8 { 28 namespace v8 {
30 29
31 namespace base { 30 namespace base {
32 class AccountingAllocator; 31 class AccountingAllocator;
33 class RandomNumberGenerator; 32 class RandomNumberGenerator;
34 } 33 }
35 34
36 namespace internal { 35 namespace internal {
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
836 NATIVE_CONTEXT_FIELDS(NATIVE_CONTEXT_FIELD_ACCESSOR) 835 NATIVE_CONTEXT_FIELDS(NATIVE_CONTEXT_FIELD_ACCESSOR)
837 #undef NATIVE_CONTEXT_FIELD_ACCESSOR 836 #undef NATIVE_CONTEXT_FIELD_ACCESSOR
838 837
839 Bootstrapper* bootstrapper() { return bootstrapper_; } 838 Bootstrapper* bootstrapper() { return bootstrapper_; }
840 Counters* counters() { 839 Counters* counters() {
841 // Call InitializeLoggingAndCounters() if logging is needed before 840 // Call InitializeLoggingAndCounters() if logging is needed before
842 // the isolate is fully initialized. 841 // the isolate is fully initialized.
843 DCHECK(counters_ != NULL); 842 DCHECK(counters_ != NULL);
844 return counters_; 843 return counters_;
845 } 844 }
846 tracing::TraceEventStatsTable* trace_event_stats_table() {
847 return &trace_event_stats_table_;
848 }
849 RuntimeProfiler* runtime_profiler() { return runtime_profiler_; } 845 RuntimeProfiler* runtime_profiler() { return runtime_profiler_; }
850 CompilationCache* compilation_cache() { return compilation_cache_; } 846 CompilationCache* compilation_cache() { return compilation_cache_; }
851 Logger* logger() { 847 Logger* logger() {
852 // Call InitializeLoggingAndCounters() if logging is needed before 848 // Call InitializeLoggingAndCounters() if logging is needed before
853 // the isolate is fully initialized. 849 // the isolate is fully initialized.
854 DCHECK(logger_ != NULL); 850 DCHECK(logger_ != NULL);
855 return logger_; 851 return logger_;
856 } 852 }
857 StackGuard* stack_guard() { return &stack_guard_; } 853 StackGuard* stack_guard() { return &stack_guard_; }
858 Heap* heap() { return &heap_; } 854 Heap* heap() { return &heap_; }
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
1297 1293
1298 base::Atomic32 id_; 1294 base::Atomic32 id_;
1299 EntryStackItem* entry_stack_; 1295 EntryStackItem* entry_stack_;
1300 int stack_trace_nesting_level_; 1296 int stack_trace_nesting_level_;
1301 StringStream* incomplete_message_; 1297 StringStream* incomplete_message_;
1302 Address isolate_addresses_[kIsolateAddressCount + 1]; // NOLINT 1298 Address isolate_addresses_[kIsolateAddressCount + 1]; // NOLINT
1303 Bootstrapper* bootstrapper_; 1299 Bootstrapper* bootstrapper_;
1304 RuntimeProfiler* runtime_profiler_; 1300 RuntimeProfiler* runtime_profiler_;
1305 CompilationCache* compilation_cache_; 1301 CompilationCache* compilation_cache_;
1306 Counters* counters_; 1302 Counters* counters_;
1307 tracing::TraceEventStatsTable trace_event_stats_table_;
1308 base::RecursiveMutex break_access_; 1303 base::RecursiveMutex break_access_;
1309 Logger* logger_; 1304 Logger* logger_;
1310 StackGuard stack_guard_; 1305 StackGuard stack_guard_;
1311 StatsTable* stats_table_; 1306 StatsTable* stats_table_;
1312 StubCache* load_stub_cache_; 1307 StubCache* load_stub_cache_;
1313 StubCache* store_stub_cache_; 1308 StubCache* store_stub_cache_;
1314 CodeAgingHelper* code_aging_helper_; 1309 CodeAgingHelper* code_aging_helper_;
1315 DeoptimizerData* deoptimizer_data_; 1310 DeoptimizerData* deoptimizer_data_;
1316 bool deoptimizer_lazy_throw_; 1311 bool deoptimizer_lazy_throw_;
1317 MaterializedObjectStore* materialized_object_store_; 1312 MaterializedObjectStore* materialized_object_store_;
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
1674 1669
1675 EmbeddedVector<char, 128> filename_; 1670 EmbeddedVector<char, 128> filename_;
1676 FILE* file_; 1671 FILE* file_;
1677 int scope_depth_; 1672 int scope_depth_;
1678 }; 1673 };
1679 1674
1680 } // namespace internal 1675 } // namespace internal
1681 } // namespace v8 1676 } // namespace v8
1682 1677
1683 #endif // V8_ISOLATE_H_ 1678 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/interpreter/interpreter.cc ('k') | src/lookup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698