| 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 "../include/v8-debug.h" | 8 #include "../include/v8-debug.h" |
| 9 #include "allocation.h" | 9 #include "allocation.h" |
| 10 #include "assert-scope.h" | 10 #include "assert-scope.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 class ContextSlotCache; | 38 class ContextSlotCache; |
| 39 class Counters; | 39 class Counters; |
| 40 class CpuFeatures; | 40 class CpuFeatures; |
| 41 class CpuProfiler; | 41 class CpuProfiler; |
| 42 class DeoptimizerData; | 42 class DeoptimizerData; |
| 43 class Deserializer; | 43 class Deserializer; |
| 44 class EmptyStatement; | 44 class EmptyStatement; |
| 45 class ExternalCallbackScope; | 45 class ExternalCallbackScope; |
| 46 class ExternalReferenceTable; | 46 class ExternalReferenceTable; |
| 47 class Factory; | 47 class Factory; |
| 48 class FastParserThread; |
| 48 class FunctionInfoListener; | 49 class FunctionInfoListener; |
| 49 class HandleScopeImplementer; | 50 class HandleScopeImplementer; |
| 50 class HeapProfiler; | 51 class HeapProfiler; |
| 51 class HStatistics; | 52 class HStatistics; |
| 52 class HTracer; | 53 class HTracer; |
| 53 class InlineRuntimeFunctionsTable; | 54 class InlineRuntimeFunctionsTable; |
| 54 class InnerPointerToCodeCache; | 55 class InnerPointerToCodeCache; |
| 55 class MaterializedObjectStore; | 56 class MaterializedObjectStore; |
| 56 class NoAllocationStringAllocator; | 57 class NoAllocationStringAllocator; |
| 57 class CodeAgingHelper; | 58 class CodeAgingHelper; |
| (...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1019 // Thread is only available with flag enabled. | 1020 // Thread is only available with flag enabled. |
| 1020 ASSERT(optimizing_compiler_thread_ == NULL || | 1021 ASSERT(optimizing_compiler_thread_ == NULL || |
| 1021 FLAG_concurrent_recompilation); | 1022 FLAG_concurrent_recompilation); |
| 1022 return optimizing_compiler_thread_ != NULL && FLAG_concurrent_osr; | 1023 return optimizing_compiler_thread_ != NULL && FLAG_concurrent_osr; |
| 1023 } | 1024 } |
| 1024 | 1025 |
| 1025 OptimizingCompilerThread* optimizing_compiler_thread() { | 1026 OptimizingCompilerThread* optimizing_compiler_thread() { |
| 1026 return optimizing_compiler_thread_; | 1027 return optimizing_compiler_thread_; |
| 1027 } | 1028 } |
| 1028 | 1029 |
| 1030 FastParserThread* fast_parser_thread() { |
| 1031 return fast_parser_thread_; |
| 1032 } |
| 1033 |
| 1029 int num_sweeper_threads() const { | 1034 int num_sweeper_threads() const { |
| 1030 return num_sweeper_threads_; | 1035 return num_sweeper_threads_; |
| 1031 } | 1036 } |
| 1032 | 1037 |
| 1033 SweeperThread** sweeper_threads() { | 1038 SweeperThread** sweeper_threads() { |
| 1034 return sweeper_thread_; | 1039 return sweeper_thread_; |
| 1035 } | 1040 } |
| 1036 | 1041 |
| 1037 int id() const { return static_cast<int>(id_); } | 1042 int id() const { return static_cast<int>(id_); } |
| 1038 | 1043 |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1269 // between compilation units. | 1274 // between compilation units. |
| 1270 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 1275 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
| 1271 static const intptr_t name##_debug_offset_; | 1276 static const intptr_t name##_debug_offset_; |
| 1272 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 1277 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
| 1273 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 1278 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
| 1274 #undef ISOLATE_FIELD_OFFSET | 1279 #undef ISOLATE_FIELD_OFFSET |
| 1275 #endif | 1280 #endif |
| 1276 | 1281 |
| 1277 DeferredHandles* deferred_handles_head_; | 1282 DeferredHandles* deferred_handles_head_; |
| 1278 OptimizingCompilerThread* optimizing_compiler_thread_; | 1283 OptimizingCompilerThread* optimizing_compiler_thread_; |
| 1284 FastParserThread* fast_parser_thread_; |
| 1279 SweeperThread** sweeper_thread_; | 1285 SweeperThread** sweeper_thread_; |
| 1280 int num_sweeper_threads_; | 1286 int num_sweeper_threads_; |
| 1281 | 1287 |
| 1282 // Counts deopt points if deopt_every_n_times is enabled. | 1288 // Counts deopt points if deopt_every_n_times is enabled. |
| 1283 unsigned int stress_deopt_count_; | 1289 unsigned int stress_deopt_count_; |
| 1284 | 1290 |
| 1285 int next_optimization_id_; | 1291 int next_optimization_id_; |
| 1286 | 1292 |
| 1287 // List of callbacks when a Call completes. | 1293 // List of callbacks when a Call completes. |
| 1288 List<CallCompletedCallback> call_completed_callbacks_; | 1294 List<CallCompletedCallback> call_completed_callbacks_; |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1480 } | 1486 } |
| 1481 | 1487 |
| 1482 EmbeddedVector<char, 128> filename_; | 1488 EmbeddedVector<char, 128> filename_; |
| 1483 FILE* file_; | 1489 FILE* file_; |
| 1484 int scope_depth_; | 1490 int scope_depth_; |
| 1485 }; | 1491 }; |
| 1486 | 1492 |
| 1487 } } // namespace v8::internal | 1493 } } // namespace v8::internal |
| 1488 | 1494 |
| 1489 #endif // V8_ISOLATE_H_ | 1495 #endif // V8_ISOLATE_H_ |
| OLD | NEW |