| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 #include "optimizing-compiler-thread.h" | 45 #include "optimizing-compiler-thread.h" |
| 46 #include "regexp-stack.h" | 46 #include "regexp-stack.h" |
| 47 #include "runtime-profiler.h" | 47 #include "runtime-profiler.h" |
| 48 #include "runtime.h" | 48 #include "runtime.h" |
| 49 #include "zone.h" | 49 #include "zone.h" |
| 50 | 50 |
| 51 namespace v8 { | 51 namespace v8 { |
| 52 namespace internal { | 52 namespace internal { |
| 53 | 53 |
| 54 class Bootstrapper; | 54 class Bootstrapper; |
| 55 class CallbackTable; | |
| 56 class CodeGenerator; | 55 class CodeGenerator; |
| 57 class CodeRange; | 56 class CodeRange; |
| 58 struct CodeStubInterfaceDescriptor; | 57 struct CodeStubInterfaceDescriptor; |
| 59 class CompilationCache; | 58 class CompilationCache; |
| 60 class ContextSlotCache; | 59 class ContextSlotCache; |
| 61 class ContextSwitcher; | 60 class ContextSwitcher; |
| 62 class Counters; | 61 class Counters; |
| 63 class CpuFeatures; | 62 class CpuFeatures; |
| 64 class CpuProfiler; | 63 class CpuProfiler; |
| 65 class DeoptimizerData; | 64 class DeoptimizerData; |
| (...skipping 1043 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1109 static v8::Isolate* GetDefaultIsolateForLocking(); | 1108 static v8::Isolate* GetDefaultIsolateForLocking(); |
| 1110 | 1109 |
| 1111 MarkingThread** marking_threads() { | 1110 MarkingThread** marking_threads() { |
| 1112 return marking_thread_; | 1111 return marking_thread_; |
| 1113 } | 1112 } |
| 1114 | 1113 |
| 1115 SweeperThread** sweeper_threads() { | 1114 SweeperThread** sweeper_threads() { |
| 1116 return sweeper_thread_; | 1115 return sweeper_thread_; |
| 1117 } | 1116 } |
| 1118 | 1117 |
| 1119 CallbackTable* callback_table() { | |
| 1120 return callback_table_; | |
| 1121 } | |
| 1122 void set_callback_table(CallbackTable* callback_table) { | |
| 1123 callback_table_ = callback_table; | |
| 1124 } | |
| 1125 | |
| 1126 int id() const { return static_cast<int>(id_); } | 1118 int id() const { return static_cast<int>(id_); } |
| 1127 | 1119 |
| 1128 HStatistics* GetHStatistics(); | 1120 HStatistics* GetHStatistics(); |
| 1129 HTracer* GetHTracer(); | 1121 HTracer* GetHTracer(); |
| 1130 | 1122 |
| 1131 FunctionEntryHook function_entry_hook() { return function_entry_hook_; } | 1123 FunctionEntryHook function_entry_hook() { return function_entry_hook_; } |
| 1132 void set_function_entry_hook(FunctionEntryHook function_entry_hook) { | 1124 void set_function_entry_hook(FunctionEntryHook function_entry_hook) { |
| 1133 function_entry_hook_ = function_entry_hook; | 1125 function_entry_hook_ = function_entry_hook; |
| 1134 } | 1126 } |
| 1135 | 1127 |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1362 static const intptr_t name##_debug_offset_; | 1354 static const intptr_t name##_debug_offset_; |
| 1363 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 1355 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
| 1364 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 1356 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
| 1365 #undef ISOLATE_FIELD_OFFSET | 1357 #undef ISOLATE_FIELD_OFFSET |
| 1366 #endif | 1358 #endif |
| 1367 | 1359 |
| 1368 DeferredHandles* deferred_handles_head_; | 1360 DeferredHandles* deferred_handles_head_; |
| 1369 OptimizingCompilerThread optimizing_compiler_thread_; | 1361 OptimizingCompilerThread optimizing_compiler_thread_; |
| 1370 MarkingThread** marking_thread_; | 1362 MarkingThread** marking_thread_; |
| 1371 SweeperThread** sweeper_thread_; | 1363 SweeperThread** sweeper_thread_; |
| 1372 CallbackTable* callback_table_; | |
| 1373 | 1364 |
| 1374 // Counts deopt points if deopt_every_n_times is enabled. | 1365 // Counts deopt points if deopt_every_n_times is enabled. |
| 1375 unsigned int stress_deopt_count_; | 1366 unsigned int stress_deopt_count_; |
| 1376 | 1367 |
| 1377 friend class ExecutionAccess; | 1368 friend class ExecutionAccess; |
| 1378 friend class HandleScopeImplementer; | 1369 friend class HandleScopeImplementer; |
| 1379 friend class IsolateInitializer; | 1370 friend class IsolateInitializer; |
| 1380 friend class MarkingThread; | 1371 friend class MarkingThread; |
| 1381 friend class OptimizingCompilerThread; | 1372 friend class OptimizingCompilerThread; |
| 1382 friend class SweeperThread; | 1373 friend class SweeperThread; |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1522 | 1513 |
| 1523 // Mark the native context with out of memory. | 1514 // Mark the native context with out of memory. |
| 1524 inline void Context::mark_out_of_memory() { | 1515 inline void Context::mark_out_of_memory() { |
| 1525 native_context()->set_out_of_memory(HEAP->true_value()); | 1516 native_context()->set_out_of_memory(HEAP->true_value()); |
| 1526 } | 1517 } |
| 1527 | 1518 |
| 1528 | 1519 |
| 1529 } } // namespace v8::internal | 1520 } } // namespace v8::internal |
| 1530 | 1521 |
| 1531 #endif // V8_ISOLATE_H_ | 1522 #endif // V8_ISOLATE_H_ |
| OLD | NEW |