| 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 1038 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1104 static v8::Isolate* GetDefaultIsolateForLocking(); | 1103 static v8::Isolate* GetDefaultIsolateForLocking(); |
| 1105 | 1104 |
| 1106 MarkingThread** marking_threads() { | 1105 MarkingThread** marking_threads() { |
| 1107 return marking_thread_; | 1106 return marking_thread_; |
| 1108 } | 1107 } |
| 1109 | 1108 |
| 1110 SweeperThread** sweeper_threads() { | 1109 SweeperThread** sweeper_threads() { |
| 1111 return sweeper_thread_; | 1110 return sweeper_thread_; |
| 1112 } | 1111 } |
| 1113 | 1112 |
| 1114 CallbackTable* callback_table() { | |
| 1115 return callback_table_; | |
| 1116 } | |
| 1117 void set_callback_table(CallbackTable* callback_table) { | |
| 1118 callback_table_ = callback_table; | |
| 1119 } | |
| 1120 | |
| 1121 int id() const { return static_cast<int>(id_); } | 1113 int id() const { return static_cast<int>(id_); } |
| 1122 | 1114 |
| 1123 HStatistics* GetHStatistics(); | 1115 HStatistics* GetHStatistics(); |
| 1124 HTracer* GetHTracer(); | 1116 HTracer* GetHTracer(); |
| 1125 | 1117 |
| 1126 FunctionEntryHook function_entry_hook() { return function_entry_hook_; } | 1118 FunctionEntryHook function_entry_hook() { return function_entry_hook_; } |
| 1127 void set_function_entry_hook(FunctionEntryHook function_entry_hook) { | 1119 void set_function_entry_hook(FunctionEntryHook function_entry_hook) { |
| 1128 function_entry_hook_ = function_entry_hook; | 1120 function_entry_hook_ = function_entry_hook; |
| 1129 } | 1121 } |
| 1130 | 1122 |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1356 static const intptr_t name##_debug_offset_; | 1348 static const intptr_t name##_debug_offset_; |
| 1357 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 1349 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
| 1358 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 1350 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
| 1359 #undef ISOLATE_FIELD_OFFSET | 1351 #undef ISOLATE_FIELD_OFFSET |
| 1360 #endif | 1352 #endif |
| 1361 | 1353 |
| 1362 DeferredHandles* deferred_handles_head_; | 1354 DeferredHandles* deferred_handles_head_; |
| 1363 OptimizingCompilerThread optimizing_compiler_thread_; | 1355 OptimizingCompilerThread optimizing_compiler_thread_; |
| 1364 MarkingThread** marking_thread_; | 1356 MarkingThread** marking_thread_; |
| 1365 SweeperThread** sweeper_thread_; | 1357 SweeperThread** sweeper_thread_; |
| 1366 CallbackTable* callback_table_; | |
| 1367 | 1358 |
| 1368 // Counts deopt points if deopt_every_n_times is enabled. | 1359 // Counts deopt points if deopt_every_n_times is enabled. |
| 1369 unsigned int stress_deopt_count_; | 1360 unsigned int stress_deopt_count_; |
| 1370 | 1361 |
| 1371 friend class ExecutionAccess; | 1362 friend class ExecutionAccess; |
| 1372 friend class HandleScopeImplementer; | 1363 friend class HandleScopeImplementer; |
| 1373 friend class IsolateInitializer; | 1364 friend class IsolateInitializer; |
| 1374 friend class MarkingThread; | 1365 friend class MarkingThread; |
| 1375 friend class OptimizingCompilerThread; | 1366 friend class OptimizingCompilerThread; |
| 1376 friend class SweeperThread; | 1367 friend class SweeperThread; |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1516 | 1507 |
| 1517 // Mark the native context with out of memory. | 1508 // Mark the native context with out of memory. |
| 1518 inline void Context::mark_out_of_memory() { | 1509 inline void Context::mark_out_of_memory() { |
| 1519 native_context()->set_out_of_memory(HEAP->true_value()); | 1510 native_context()->set_out_of_memory(HEAP->true_value()); |
| 1520 } | 1511 } |
| 1521 | 1512 |
| 1522 | 1513 |
| 1523 } } // namespace v8::internal | 1514 } } // namespace v8::internal |
| 1524 | 1515 |
| 1525 #endif // V8_ISOLATE_H_ | 1516 #endif // V8_ISOLATE_H_ |
| OLD | NEW |