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 13 matching lines...) Loading... |
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | 27 |
28 #ifndef V8_ISOLATE_H_ | 28 #ifndef V8_ISOLATE_H_ |
29 #define V8_ISOLATE_H_ | 29 #define V8_ISOLATE_H_ |
30 | 30 |
31 #include "../include/v8-debug.h" | 31 #include "../include/v8-debug.h" |
32 #include "allocation.h" | 32 #include "allocation.h" |
33 #include "apiutils.h" | 33 #include "apiutils.h" |
| 34 #include "assert-scope.h" |
34 #include "atomicops.h" | 35 #include "atomicops.h" |
35 #include "builtins.h" | 36 #include "builtins.h" |
36 #include "contexts.h" | 37 #include "contexts.h" |
37 #include "execution.h" | 38 #include "execution.h" |
38 #include "frames.h" | 39 #include "frames.h" |
39 #include "date.h" | 40 #include "date.h" |
40 #include "global-handles.h" | 41 #include "global-handles.h" |
41 #include "handles.h" | 42 #include "handles.h" |
42 #include "hashmap.h" | 43 #include "hashmap.h" |
43 #include "heap.h" | 44 #include "heap.h" |
(...skipping 943 matching lines...) Loading... |
987 HeapProfiler* heap_profiler() const { return heap_profiler_; } | 988 HeapProfiler* heap_profiler() const { return heap_profiler_; } |
988 | 989 |
989 #ifdef DEBUG | 990 #ifdef DEBUG |
990 HistogramInfo* heap_histograms() { return heap_histograms_; } | 991 HistogramInfo* heap_histograms() { return heap_histograms_; } |
991 | 992 |
992 JSObject::SpillInformation* js_spill_information() { | 993 JSObject::SpillInformation* js_spill_information() { |
993 return &js_spill_information_; | 994 return &js_spill_information_; |
994 } | 995 } |
995 | 996 |
996 int* code_kind_statistics() { return code_kind_statistics_; } | 997 int* code_kind_statistics() { return code_kind_statistics_; } |
997 | |
998 HandleDereferenceGuard::State HandleDereferenceGuardState(); | |
999 | |
1000 void SetHandleDereferenceGuardState(HandleDereferenceGuard::State state); | |
1001 #endif | 998 #endif |
1002 | 999 |
1003 #if defined(V8_TARGET_ARCH_ARM) && !defined(__arm__) || \ | 1000 #if defined(V8_TARGET_ARCH_ARM) && !defined(__arm__) || \ |
1004 defined(V8_TARGET_ARCH_MIPS) && !defined(__mips__) | 1001 defined(V8_TARGET_ARCH_MIPS) && !defined(__mips__) |
1005 bool simulator_initialized() { return simulator_initialized_; } | 1002 bool simulator_initialized() { return simulator_initialized_; } |
1006 void set_simulator_initialized(bool initialized) { | 1003 void set_simulator_initialized(bool initialized) { |
1007 simulator_initialized_ = initialized; | 1004 simulator_initialized_ = initialized; |
1008 } | 1005 } |
1009 | 1006 |
1010 HashMap* simulator_i_cache() { return simulator_i_cache_; } | 1007 HashMap* simulator_i_cache() { return simulator_i_cache_; } |
(...skipping 292 matching lines...) Loading... |
1303 bool simulator_initialized_; | 1300 bool simulator_initialized_; |
1304 HashMap* simulator_i_cache_; | 1301 HashMap* simulator_i_cache_; |
1305 Redirection* simulator_redirection_; | 1302 Redirection* simulator_redirection_; |
1306 #endif | 1303 #endif |
1307 | 1304 |
1308 #ifdef DEBUG | 1305 #ifdef DEBUG |
1309 // A static array of histogram info for each type. | 1306 // A static array of histogram info for each type. |
1310 HistogramInfo heap_histograms_[LAST_TYPE + 1]; | 1307 HistogramInfo heap_histograms_[LAST_TYPE + 1]; |
1311 JSObject::SpillInformation js_spill_information_; | 1308 JSObject::SpillInformation js_spill_information_; |
1312 int code_kind_statistics_[Code::NUMBER_OF_KINDS]; | 1309 int code_kind_statistics_[Code::NUMBER_OF_KINDS]; |
1313 | |
1314 HandleDereferenceGuard::State compiler_thread_handle_deref_state_; | |
1315 HandleDereferenceGuard::State execution_thread_handle_deref_state_; | |
1316 #endif | 1310 #endif |
1317 | 1311 |
1318 #ifdef ENABLE_DEBUGGER_SUPPORT | 1312 #ifdef ENABLE_DEBUGGER_SUPPORT |
1319 Debugger* debugger_; | 1313 Debugger* debugger_; |
1320 Debug* debug_; | 1314 Debug* debug_; |
1321 #endif | 1315 #endif |
1322 CpuProfiler* cpu_profiler_; | 1316 CpuProfiler* cpu_profiler_; |
1323 HeapProfiler* heap_profiler_; | 1317 HeapProfiler* heap_profiler_; |
1324 | 1318 |
1325 #define GLOBAL_BACKING_STORE(type, name, initialvalue) \ | 1319 #define GLOBAL_BACKING_STORE(type, name, initialvalue) \ |
(...skipping 172 matching lines...) Loading... |
1498 | 1492 |
1499 // Mark the native context with out of memory. | 1493 // Mark the native context with out of memory. |
1500 inline void Context::mark_out_of_memory() { | 1494 inline void Context::mark_out_of_memory() { |
1501 native_context()->set_out_of_memory(HEAP->true_value()); | 1495 native_context()->set_out_of_memory(HEAP->true_value()); |
1502 } | 1496 } |
1503 | 1497 |
1504 | 1498 |
1505 } } // namespace v8::internal | 1499 } } // namespace v8::internal |
1506 | 1500 |
1507 #endif // V8_ISOLATE_H_ | 1501 #endif // V8_ISOLATE_H_ |
OLD | NEW |