| 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 "src/allocation.h" |     9 #include "src/allocation.h" | 
|    10 #include "src/assert-scope.h" |    10 #include "src/assert-scope.h" | 
| (...skipping 14 matching lines...) Expand all  Loading... | 
|    25 #include "src/zone.h" |    25 #include "src/zone.h" | 
|    26  |    26  | 
|    27 namespace v8 { |    27 namespace v8 { | 
|    28  |    28  | 
|    29 namespace base { |    29 namespace base { | 
|    30 class RandomNumberGenerator; |    30 class RandomNumberGenerator; | 
|    31 } |    31 } | 
|    32  |    32  | 
|    33 namespace internal { |    33 namespace internal { | 
|    34  |    34  | 
 |    35 class BackgroundParserThread; | 
|    35 class Bootstrapper; |    36 class Bootstrapper; | 
|    36 class CallInterfaceDescriptor; |    37 class CallInterfaceDescriptor; | 
|    37 class CodeGenerator; |    38 class CodeGenerator; | 
|    38 class CodeRange; |    39 class CodeRange; | 
|    39 class CodeStubInterfaceDescriptor; |    40 class CodeStubInterfaceDescriptor; | 
|    40 class CodeTracer; |    41 class CodeTracer; | 
|    41 class CompilationCache; |    42 class CompilationCache; | 
|    42 class ConsStringIteratorOp; |    43 class ConsStringIteratorOp; | 
|    43 class ContextSlotCache; |    44 class ContextSlotCache; | 
|    44 class Counters; |    45 class Counters; | 
| (...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1048     // Thread is only available with flag enabled. |  1049     // Thread is only available with flag enabled. | 
|  1049     DCHECK(optimizing_compiler_thread_ == NULL || |  1050     DCHECK(optimizing_compiler_thread_ == NULL || | 
|  1050            FLAG_concurrent_recompilation); |  1051            FLAG_concurrent_recompilation); | 
|  1051     return optimizing_compiler_thread_ != NULL && FLAG_concurrent_osr; |  1052     return optimizing_compiler_thread_ != NULL && FLAG_concurrent_osr; | 
|  1052   } |  1053   } | 
|  1053  |  1054  | 
|  1054   OptimizingCompilerThread* optimizing_compiler_thread() { |  1055   OptimizingCompilerThread* optimizing_compiler_thread() { | 
|  1055     return optimizing_compiler_thread_; |  1056     return optimizing_compiler_thread_; | 
|  1056   } |  1057   } | 
|  1057  |  1058  | 
 |  1059   BackgroundParserThread* background_parser_thread() { | 
 |  1060     return background_parser_thread_; | 
 |  1061   } | 
 |  1062  | 
|  1058   int num_sweeper_threads() const { |  1063   int num_sweeper_threads() const { | 
|  1059     return num_sweeper_threads_; |  1064     return num_sweeper_threads_; | 
|  1060   } |  1065   } | 
|  1061  |  1066  | 
|  1062   SweeperThread** sweeper_threads() { |  1067   SweeperThread** sweeper_threads() { | 
|  1063     return sweeper_thread_; |  1068     return sweeper_thread_; | 
|  1064   } |  1069   } | 
|  1065  |  1070  | 
|  1066   int id() const { return static_cast<int>(id_); } |  1071   int id() const { return static_cast<int>(id_); } | 
|  1067  |  1072  | 
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1306   // between compilation units. |  1311   // between compilation units. | 
|  1307 #define ISOLATE_FIELD_OFFSET(type, name, ignored)                              \ |  1312 #define ISOLATE_FIELD_OFFSET(type, name, ignored)                              \ | 
|  1308   static const intptr_t name##_debug_offset_; |  1313   static const intptr_t name##_debug_offset_; | 
|  1309   ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |  1314   ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 
|  1310   ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |  1315   ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 
|  1311 #undef ISOLATE_FIELD_OFFSET |  1316 #undef ISOLATE_FIELD_OFFSET | 
|  1312 #endif |  1317 #endif | 
|  1313  |  1318  | 
|  1314   DeferredHandles* deferred_handles_head_; |  1319   DeferredHandles* deferred_handles_head_; | 
|  1315   OptimizingCompilerThread* optimizing_compiler_thread_; |  1320   OptimizingCompilerThread* optimizing_compiler_thread_; | 
 |  1321   BackgroundParserThread* background_parser_thread_; | 
|  1316   SweeperThread** sweeper_thread_; |  1322   SweeperThread** sweeper_thread_; | 
|  1317   int num_sweeper_threads_; |  1323   int num_sweeper_threads_; | 
|  1318  |  1324  | 
|  1319   // Counts deopt points if deopt_every_n_times is enabled. |  1325   // Counts deopt points if deopt_every_n_times is enabled. | 
|  1320   unsigned int stress_deopt_count_; |  1326   unsigned int stress_deopt_count_; | 
|  1321  |  1327  | 
|  1322   int next_optimization_id_; |  1328   int next_optimization_id_; | 
|  1323  |  1329  | 
|  1324   // List of callbacks when a Call completes. |  1330   // List of callbacks when a Call completes. | 
|  1325   List<CallCompletedCallback> call_completed_callbacks_; |  1331   List<CallCompletedCallback> call_completed_callbacks_; | 
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1531   } |  1537   } | 
|  1532  |  1538  | 
|  1533   EmbeddedVector<char, 128> filename_; |  1539   EmbeddedVector<char, 128> filename_; | 
|  1534   FILE* file_; |  1540   FILE* file_; | 
|  1535   int scope_depth_; |  1541   int scope_depth_; | 
|  1536 }; |  1542 }; | 
|  1537  |  1543  | 
|  1538 } }  // namespace v8::internal |  1544 } }  // namespace v8::internal | 
|  1539  |  1545  | 
|  1540 #endif  // V8_ISOLATE_H_ |  1546 #endif  // V8_ISOLATE_H_ | 
| OLD | NEW |