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

Side by Side Diff: src/isolate.h

Issue 1862653002: Move MemoryAllocator and CodeRange into Heap (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 8 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/heap/spaces-inl.h ('k') | src/isolate.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 <queue> 8 #include <queue>
9 #include <set> 9 #include <set>
10 10
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
810 NATIVE_CONTEXT_FIELDS(NATIVE_CONTEXT_FIELD_ACCESSOR) 810 NATIVE_CONTEXT_FIELDS(NATIVE_CONTEXT_FIELD_ACCESSOR)
811 #undef NATIVE_CONTEXT_FIELD_ACCESSOR 811 #undef NATIVE_CONTEXT_FIELD_ACCESSOR
812 812
813 Bootstrapper* bootstrapper() { return bootstrapper_; } 813 Bootstrapper* bootstrapper() { return bootstrapper_; }
814 Counters* counters() { 814 Counters* counters() {
815 // Call InitializeLoggingAndCounters() if logging is needed before 815 // Call InitializeLoggingAndCounters() if logging is needed before
816 // the isolate is fully initialized. 816 // the isolate is fully initialized.
817 DCHECK(counters_ != NULL); 817 DCHECK(counters_ != NULL);
818 return counters_; 818 return counters_;
819 } 819 }
820 CodeRange* code_range() { return code_range_; }
821 RuntimeProfiler* runtime_profiler() { return runtime_profiler_; } 820 RuntimeProfiler* runtime_profiler() { return runtime_profiler_; }
822 CompilationCache* compilation_cache() { return compilation_cache_; } 821 CompilationCache* compilation_cache() { return compilation_cache_; }
823 Logger* logger() { 822 Logger* logger() {
824 // Call InitializeLoggingAndCounters() if logging is needed before 823 // Call InitializeLoggingAndCounters() if logging is needed before
825 // the isolate is fully initialized. 824 // the isolate is fully initialized.
826 DCHECK(logger_ != NULL); 825 DCHECK(logger_ != NULL);
827 return logger_; 826 return logger_;
828 } 827 }
829 StackGuard* stack_guard() { return &stack_guard_; } 828 StackGuard* stack_guard() { return &stack_guard_; }
830 Heap* heap() { return &heap_; } 829 Heap* heap() { return &heap_; }
831 StatsTable* stats_table(); 830 StatsTable* stats_table();
832 StubCache* stub_cache() { return stub_cache_; } 831 StubCache* stub_cache() { return stub_cache_; }
833 CodeAgingHelper* code_aging_helper() { return code_aging_helper_; } 832 CodeAgingHelper* code_aging_helper() { return code_aging_helper_; }
834 DeoptimizerData* deoptimizer_data() { return deoptimizer_data_; } 833 DeoptimizerData* deoptimizer_data() { return deoptimizer_data_; }
835 bool deoptimizer_lazy_throw() const { return deoptimizer_lazy_throw_; } 834 bool deoptimizer_lazy_throw() const { return deoptimizer_lazy_throw_; }
836 void set_deoptimizer_lazy_throw(bool value) { 835 void set_deoptimizer_lazy_throw(bool value) {
837 deoptimizer_lazy_throw_ = value; 836 deoptimizer_lazy_throw_ = value;
838 } 837 }
839 ThreadLocalTop* thread_local_top() { return &thread_local_top_; } 838 ThreadLocalTop* thread_local_top() { return &thread_local_top_; }
840 MaterializedObjectStore* materialized_object_store() { 839 MaterializedObjectStore* materialized_object_store() {
841 return materialized_object_store_; 840 return materialized_object_store_;
842 } 841 }
843 842
844 MemoryAllocator* memory_allocator() {
845 return memory_allocator_;
846 }
847
848 KeyedLookupCache* keyed_lookup_cache() { 843 KeyedLookupCache* keyed_lookup_cache() {
849 return keyed_lookup_cache_; 844 return keyed_lookup_cache_;
850 } 845 }
851 846
852 ContextSlotCache* context_slot_cache() { 847 ContextSlotCache* context_slot_cache() {
853 return context_slot_cache_; 848 return context_slot_cache_;
854 } 849 }
855 850
856 DescriptorLookupCache* descriptor_lookup_cache() { 851 DescriptorLookupCache* descriptor_lookup_cache() {
857 return descriptor_lookup_cache_; 852 return descriptor_lookup_cache_;
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
1233 1228
1234 base::Atomic32 id_; 1229 base::Atomic32 id_;
1235 EntryStackItem* entry_stack_; 1230 EntryStackItem* entry_stack_;
1236 int stack_trace_nesting_level_; 1231 int stack_trace_nesting_level_;
1237 StringStream* incomplete_message_; 1232 StringStream* incomplete_message_;
1238 Address isolate_addresses_[kIsolateAddressCount + 1]; // NOLINT 1233 Address isolate_addresses_[kIsolateAddressCount + 1]; // NOLINT
1239 Bootstrapper* bootstrapper_; 1234 Bootstrapper* bootstrapper_;
1240 RuntimeProfiler* runtime_profiler_; 1235 RuntimeProfiler* runtime_profiler_;
1241 CompilationCache* compilation_cache_; 1236 CompilationCache* compilation_cache_;
1242 Counters* counters_; 1237 Counters* counters_;
1243 CodeRange* code_range_;
1244 base::RecursiveMutex break_access_; 1238 base::RecursiveMutex break_access_;
1245 Logger* logger_; 1239 Logger* logger_;
1246 StackGuard stack_guard_; 1240 StackGuard stack_guard_;
1247 StatsTable* stats_table_; 1241 StatsTable* stats_table_;
1248 StubCache* stub_cache_; 1242 StubCache* stub_cache_;
1249 CodeAgingHelper* code_aging_helper_; 1243 CodeAgingHelper* code_aging_helper_;
1250 DeoptimizerData* deoptimizer_data_; 1244 DeoptimizerData* deoptimizer_data_;
1251 bool deoptimizer_lazy_throw_; 1245 bool deoptimizer_lazy_throw_;
1252 MaterializedObjectStore* materialized_object_store_; 1246 MaterializedObjectStore* materialized_object_store_;
1253 ThreadLocalTop thread_local_top_; 1247 ThreadLocalTop thread_local_top_;
1254 bool capture_stack_trace_for_uncaught_exceptions_; 1248 bool capture_stack_trace_for_uncaught_exceptions_;
1255 int stack_trace_for_uncaught_exceptions_frame_limit_; 1249 int stack_trace_for_uncaught_exceptions_frame_limit_;
1256 StackTrace::StackTraceOptions stack_trace_for_uncaught_exceptions_options_; 1250 StackTrace::StackTraceOptions stack_trace_for_uncaught_exceptions_options_;
1257 MemoryAllocator* memory_allocator_;
1258 KeyedLookupCache* keyed_lookup_cache_; 1251 KeyedLookupCache* keyed_lookup_cache_;
1259 ContextSlotCache* context_slot_cache_; 1252 ContextSlotCache* context_slot_cache_;
1260 DescriptorLookupCache* descriptor_lookup_cache_; 1253 DescriptorLookupCache* descriptor_lookup_cache_;
1261 HandleScopeData handle_scope_data_; 1254 HandleScopeData handle_scope_data_;
1262 HandleScopeImplementer* handle_scope_implementer_; 1255 HandleScopeImplementer* handle_scope_implementer_;
1263 UnicodeCache* unicode_cache_; 1256 UnicodeCache* unicode_cache_;
1264 base::AccountingAllocator allocator_; 1257 base::AccountingAllocator allocator_;
1265 Zone runtime_zone_; 1258 Zone runtime_zone_;
1266 Zone interface_descriptor_zone_; 1259 Zone interface_descriptor_zone_;
1267 InnerPointerToCodeCache* inner_pointer_to_code_cache_; 1260 InnerPointerToCodeCache* inner_pointer_to_code_cache_;
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
1374 abort_on_uncaught_exception_callback_; 1367 abort_on_uncaught_exception_callback_;
1375 1368
1376 friend class ExecutionAccess; 1369 friend class ExecutionAccess;
1377 friend class HandleScopeImplementer; 1370 friend class HandleScopeImplementer;
1378 friend class OptimizingCompileDispatcher; 1371 friend class OptimizingCompileDispatcher;
1379 friend class SweeperThread; 1372 friend class SweeperThread;
1380 friend class ThreadManager; 1373 friend class ThreadManager;
1381 friend class Simulator; 1374 friend class Simulator;
1382 friend class StackGuard; 1375 friend class StackGuard;
1383 friend class ThreadId; 1376 friend class ThreadId;
1384 friend class TestMemoryAllocatorScope;
1385 friend class TestCodeRangeScope;
1386 friend class v8::Isolate; 1377 friend class v8::Isolate;
1387 friend class v8::Locker; 1378 friend class v8::Locker;
1388 friend class v8::Unlocker; 1379 friend class v8::Unlocker;
1389 friend v8::StartupData v8::V8::CreateSnapshotDataBlob(const char*); 1380 friend v8::StartupData v8::V8::CreateSnapshotDataBlob(const char*);
1390 friend v8::StartupData v8::V8::WarmUpSnapshotDataBlob(v8::StartupData, 1381 friend v8::StartupData v8::V8::WarmUpSnapshotDataBlob(v8::StartupData,
1391 const char*); 1382 const char*);
1392 1383
1393 DISALLOW_COPY_AND_ASSIGN(Isolate); 1384 DISALLOW_COPY_AND_ASSIGN(Isolate);
1394 }; 1385 };
1395 1386
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
1597 1588
1598 EmbeddedVector<char, 128> filename_; 1589 EmbeddedVector<char, 128> filename_;
1599 FILE* file_; 1590 FILE* file_;
1600 int scope_depth_; 1591 int scope_depth_;
1601 }; 1592 };
1602 1593
1603 } // namespace internal 1594 } // namespace internal
1604 } // namespace v8 1595 } // namespace v8
1605 1596
1606 #endif // V8_ISOLATE_H_ 1597 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/heap/spaces-inl.h ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698