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

Side by Side Diff: src/isolate.h

Issue 2919953003: Clean up issues raised on previous CL. (Closed)
Patch Set: Created 3 years, 6 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 | « no previous file | src/isolate.cc » ('j') | src/isolate.cc » ('J')
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
(...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 #define NATIVE_CONTEXT_FIELD_ACCESSOR(index, type, name) \ 863 #define NATIVE_CONTEXT_FIELD_ACCESSOR(index, type, name) \
864 inline Handle<type> name(); \ 864 inline Handle<type> name(); \
865 inline bool is_##name(type* value); 865 inline bool is_##name(type* value);
866 NATIVE_CONTEXT_FIELDS(NATIVE_CONTEXT_FIELD_ACCESSOR) 866 NATIVE_CONTEXT_FIELDS(NATIVE_CONTEXT_FIELD_ACCESSOR)
867 #undef NATIVE_CONTEXT_FIELD_ACCESSOR 867 #undef NATIVE_CONTEXT_FIELD_ACCESSOR
868 868
869 Bootstrapper* bootstrapper() { return bootstrapper_; } 869 Bootstrapper* bootstrapper() { return bootstrapper_; }
870 Counters* counters() { 870 Counters* counters() {
871 // Call InitializeLoggingAndCounters() if logging is needed before 871 // Call InitializeLoggingAndCounters() if logging is needed before
872 // the isolate is fully initialized. 872 // the isolate is fully initialized.
873 DCHECK(counters_ != NULL); 873 DCHECK(counters_shared_.get() != NULL);
Mircea Trofin 2017/06/05 15:35:11 Nit: I realize this is existing code, but DCHECK_N
kschimpf 2017/06/05 18:05:43 Done.
874 return counters_; 874 return counters_shared_.get();
875 } 875 }
876 std::shared_ptr<Counters> counters_shared() { return counters_shared_; } 876 std::shared_ptr<Counters> counters_shared() { return counters_shared_; }
877 RuntimeProfiler* runtime_profiler() { return runtime_profiler_; } 877 RuntimeProfiler* runtime_profiler() { return runtime_profiler_; }
878 CompilationCache* compilation_cache() { return compilation_cache_; } 878 CompilationCache* compilation_cache() { return compilation_cache_; }
879 Logger* logger() { 879 Logger* logger() {
880 // Call InitializeLoggingAndCounters() if logging is needed before 880 // Call InitializeLoggingAndCounters() if logging is needed before
881 // the isolate is fully initialized. 881 // the isolate is fully initialized.
882 DCHECK(logger_ != NULL); 882 DCHECK(logger_ != NULL);
883 return logger_; 883 return logger_;
884 } 884 }
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
1423 1423
1424 base::Atomic32 id_; 1424 base::Atomic32 id_;
1425 EntryStackItem* entry_stack_; 1425 EntryStackItem* entry_stack_;
1426 int stack_trace_nesting_level_; 1426 int stack_trace_nesting_level_;
1427 StringStream* incomplete_message_; 1427 StringStream* incomplete_message_;
1428 Address isolate_addresses_[kIsolateAddressCount + 1]; // NOLINT 1428 Address isolate_addresses_[kIsolateAddressCount + 1]; // NOLINT
1429 Bootstrapper* bootstrapper_; 1429 Bootstrapper* bootstrapper_;
1430 RuntimeProfiler* runtime_profiler_; 1430 RuntimeProfiler* runtime_profiler_;
1431 CompilationCache* compilation_cache_; 1431 CompilationCache* compilation_cache_;
1432 std::shared_ptr<Counters> counters_shared_; 1432 std::shared_ptr<Counters> counters_shared_;
1433 Counters* counters_;
1434 base::RecursiveMutex break_access_; 1433 base::RecursiveMutex break_access_;
1435 Logger* logger_; 1434 Logger* logger_;
1436 StackGuard stack_guard_; 1435 StackGuard stack_guard_;
1437 StatsTable* stats_table_; 1436 StatsTable* stats_table_;
1438 StubCache* load_stub_cache_; 1437 StubCache* load_stub_cache_;
1439 StubCache* store_stub_cache_; 1438 StubCache* store_stub_cache_;
1440 CodeAgingHelper* code_aging_helper_; 1439 CodeAgingHelper* code_aging_helper_;
1441 DeoptimizerData* deoptimizer_data_; 1440 DeoptimizerData* deoptimizer_data_;
1442 bool deoptimizer_lazy_throw_; 1441 bool deoptimizer_lazy_throw_;
1443 MaterializedObjectStore* materialized_object_store_; 1442 MaterializedObjectStore* materialized_object_store_;
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
1817 1816
1818 EmbeddedVector<char, 128> filename_; 1817 EmbeddedVector<char, 128> filename_;
1819 FILE* file_; 1818 FILE* file_;
1820 int scope_depth_; 1819 int scope_depth_;
1821 }; 1820 };
1822 1821
1823 } // namespace internal 1822 } // namespace internal
1824 } // namespace v8 1823 } // namespace v8
1825 1824
1826 #endif // V8_ISOLATE_H_ 1825 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « no previous file | src/isolate.cc » ('j') | src/isolate.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698