| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 | 235 |
| 236 #else | 236 #else |
| 237 | 237 |
| 238 #define ISOLATE_PLATFORM_INIT_LIST(V) | 238 #define ISOLATE_PLATFORM_INIT_LIST(V) |
| 239 | 239 |
| 240 #endif | 240 #endif |
| 241 | 241 |
| 242 #ifdef ENABLE_DEBUGGER_SUPPORT | 242 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 243 | 243 |
| 244 #define ISOLATE_DEBUGGER_INIT_LIST(V) \ | 244 #define ISOLATE_DEBUGGER_INIT_LIST(V) \ |
| 245 V(uint64_t, enabled_cpu_features, 0) \ |
| 245 V(v8::Debug::EventCallback, debug_event_callback, NULL) \ | 246 V(v8::Debug::EventCallback, debug_event_callback, NULL) \ |
| 246 V(DebuggerAgent*, debugger_agent_instance, NULL) | 247 V(DebuggerAgent*, debugger_agent_instance, NULL) |
| 247 #else | 248 #else |
| 248 | 249 |
| 249 #define ISOLATE_DEBUGGER_INIT_LIST(V) | 250 #define ISOLATE_DEBUGGER_INIT_LIST(V) |
| 250 | 251 |
| 251 #endif | 252 #endif |
| 252 | 253 |
| 253 #ifdef DEBUG | 254 #ifdef DEBUG |
| 254 | 255 |
| (...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 701 | 702 |
| 702 #define GLOBAL_CONTEXT_FIELD_ACCESSOR(index, type, name) \ | 703 #define GLOBAL_CONTEXT_FIELD_ACCESSOR(index, type, name) \ |
| 703 Handle<type> name() { \ | 704 Handle<type> name() { \ |
| 704 return Handle<type>(context()->global_context()->name()); \ | 705 return Handle<type>(context()->global_context()->name()); \ |
| 705 } | 706 } |
| 706 GLOBAL_CONTEXT_FIELDS(GLOBAL_CONTEXT_FIELD_ACCESSOR) | 707 GLOBAL_CONTEXT_FIELDS(GLOBAL_CONTEXT_FIELD_ACCESSOR) |
| 707 #undef GLOBAL_CONTEXT_FIELD_ACCESSOR | 708 #undef GLOBAL_CONTEXT_FIELD_ACCESSOR |
| 708 | 709 |
| 709 Bootstrapper* bootstrapper() { return bootstrapper_; } | 710 Bootstrapper* bootstrapper() { return bootstrapper_; } |
| 710 Counters* counters() { return counters_; } | 711 Counters* counters() { return counters_; } |
| 711 // TODO(isolates): Having CPU features per isolate is probably too | |
| 712 // flexible. We only really need to have the set of currently | |
| 713 // enabled features for asserts in DEBUG builds. | |
| 714 CpuFeatures* cpu_features() { return cpu_features_; } | |
| 715 CodeRange* code_range() { return code_range_; } | 712 CodeRange* code_range() { return code_range_; } |
| 716 RuntimeProfiler* runtime_profiler() { return runtime_profiler_; } | 713 RuntimeProfiler* runtime_profiler() { return runtime_profiler_; } |
| 717 CompilationCache* compilation_cache() { return compilation_cache_; } | 714 CompilationCache* compilation_cache() { return compilation_cache_; } |
| 718 Logger* logger() { return logger_; } | 715 Logger* logger() { return logger_; } |
| 719 StackGuard* stack_guard() { return &stack_guard_; } | 716 StackGuard* stack_guard() { return &stack_guard_; } |
| 720 Heap* heap() { return &heap_; } | 717 Heap* heap() { return &heap_; } |
| 721 StatsTable* stats_table() { return stats_table_; } | 718 StatsTable* stats_table() { return stats_table_; } |
| 722 StubCache* stub_cache() { return stub_cache_; } | 719 StubCache* stub_cache() { return stub_cache_; } |
| 723 DeoptimizerData* deoptimizer_data() { return deoptimizer_data_; } | 720 DeoptimizerData* deoptimizer_data() { return deoptimizer_data_; } |
| 724 ThreadLocalTop* thread_local_top() { return &thread_local_top_; } | 721 ThreadLocalTop* thread_local_top() { return &thread_local_top_; } |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1022 StringStream* incomplete_message_; | 1019 StringStream* incomplete_message_; |
| 1023 // The preallocated memory thread singleton. | 1020 // The preallocated memory thread singleton. |
| 1024 PreallocatedMemoryThread* preallocated_memory_thread_; | 1021 PreallocatedMemoryThread* preallocated_memory_thread_; |
| 1025 Address isolate_addresses_[k_isolate_address_count + 1]; // NOLINT | 1022 Address isolate_addresses_[k_isolate_address_count + 1]; // NOLINT |
| 1026 NoAllocationStringAllocator* preallocated_message_space_; | 1023 NoAllocationStringAllocator* preallocated_message_space_; |
| 1027 | 1024 |
| 1028 Bootstrapper* bootstrapper_; | 1025 Bootstrapper* bootstrapper_; |
| 1029 RuntimeProfiler* runtime_profiler_; | 1026 RuntimeProfiler* runtime_profiler_; |
| 1030 CompilationCache* compilation_cache_; | 1027 CompilationCache* compilation_cache_; |
| 1031 Counters* counters_; | 1028 Counters* counters_; |
| 1032 CpuFeatures* cpu_features_; | |
| 1033 CodeRange* code_range_; | 1029 CodeRange* code_range_; |
| 1034 Mutex* break_access_; | 1030 Mutex* break_access_; |
| 1035 Heap heap_; | 1031 Heap heap_; |
| 1036 Logger* logger_; | 1032 Logger* logger_; |
| 1037 StackGuard stack_guard_; | 1033 StackGuard stack_guard_; |
| 1038 StatsTable* stats_table_; | 1034 StatsTable* stats_table_; |
| 1039 StubCache* stub_cache_; | 1035 StubCache* stub_cache_; |
| 1040 DeoptimizerData* deoptimizer_data_; | 1036 DeoptimizerData* deoptimizer_data_; |
| 1041 ThreadLocalTop thread_local_top_; | 1037 ThreadLocalTop thread_local_top_; |
| 1042 bool capture_stack_trace_for_uncaught_exceptions_; | 1038 bool capture_stack_trace_for_uncaught_exceptions_; |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1299 | 1295 |
| 1300 } } // namespace v8::internal | 1296 } } // namespace v8::internal |
| 1301 | 1297 |
| 1302 // TODO(isolates): Get rid of these -inl.h includes and place them only where | 1298 // TODO(isolates): Get rid of these -inl.h includes and place them only where |
| 1303 // they're needed. | 1299 // they're needed. |
| 1304 #include "allocation-inl.h" | 1300 #include "allocation-inl.h" |
| 1305 #include "zone-inl.h" | 1301 #include "zone-inl.h" |
| 1306 #include "frames-inl.h" | 1302 #include "frames-inl.h" |
| 1307 | 1303 |
| 1308 #endif // V8_ISOLATE_H_ | 1304 #endif // V8_ISOLATE_H_ |
| OLD | NEW |