| 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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 V(Object*, string_stream_current_security_token, NULL) \ | 361 V(Object*, string_stream_current_security_token, NULL) \ |
| 362 /* TODO(isolates): Release this on destruction? */ \ | 362 /* TODO(isolates): Release this on destruction? */ \ |
| 363 V(int*, irregexp_interpreter_backtrack_stack_cache, NULL) \ | 363 V(int*, irregexp_interpreter_backtrack_stack_cache, NULL) \ |
| 364 /* Serializer state. */ \ | 364 /* Serializer state. */ \ |
| 365 V(ExternalReferenceTable*, external_reference_table, NULL) \ | 365 V(ExternalReferenceTable*, external_reference_table, NULL) \ |
| 366 /* AstNode state. */ \ | 366 /* AstNode state. */ \ |
| 367 V(int, ast_node_id, 0) \ | 367 V(int, ast_node_id, 0) \ |
| 368 V(unsigned, ast_node_count, 0) \ | 368 V(unsigned, ast_node_count, 0) \ |
| 369 /* SafeStackFrameIterator activations count. */ \ | 369 /* SafeStackFrameIterator activations count. */ \ |
| 370 V(int, safe_stack_iterator_counter, 0) \ | 370 V(int, safe_stack_iterator_counter, 0) \ |
| 371 V(HeapProfiler*, heap_profiler, NULL) \ | |
| 372 V(bool, observer_delivery_pending, false) \ | 371 V(bool, observer_delivery_pending, false) \ |
| 373 V(HStatistics*, hstatistics, NULL) \ | 372 V(HStatistics*, hstatistics, NULL) \ |
| 374 V(HTracer*, htracer, NULL) \ | 373 V(HTracer*, htracer, NULL) \ |
| 375 ISOLATE_DEBUGGER_INIT_LIST(V) | 374 ISOLATE_DEBUGGER_INIT_LIST(V) |
| 376 | 375 |
| 377 class Isolate { | 376 class Isolate { |
| 378 // These forward declarations are required to make the friend declarations in | 377 // These forward declarations are required to make the friend declarations in |
| 379 // PerIsolateThreadData work on some older versions of gcc. | 378 // PerIsolateThreadData work on some older versions of gcc. |
| 380 class ThreadDataTable; | 379 class ThreadDataTable; |
| 381 class EntryStackItem; | 380 class EntryStackItem; |
| (...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 969 Debug* debug() { | 968 Debug* debug() { |
| 970 if (!NoBarrier_Load(&debugger_initialized_)) InitializeDebugger(); | 969 if (!NoBarrier_Load(&debugger_initialized_)) InitializeDebugger(); |
| 971 return debug_; | 970 return debug_; |
| 972 } | 971 } |
| 973 #endif | 972 #endif |
| 974 | 973 |
| 975 inline bool IsDebuggerActive(); | 974 inline bool IsDebuggerActive(); |
| 976 inline bool DebuggerHasBreakPoints(); | 975 inline bool DebuggerHasBreakPoints(); |
| 977 | 976 |
| 978 CpuProfiler* cpu_profiler() const { return cpu_profiler_; } | 977 CpuProfiler* cpu_profiler() const { return cpu_profiler_; } |
| 978 HeapProfiler* heap_profiler() const { return heap_profiler_; } |
| 979 | 979 |
| 980 #ifdef DEBUG | 980 #ifdef DEBUG |
| 981 HistogramInfo* heap_histograms() { return heap_histograms_; } | 981 HistogramInfo* heap_histograms() { return heap_histograms_; } |
| 982 | 982 |
| 983 JSObject::SpillInformation* js_spill_information() { | 983 JSObject::SpillInformation* js_spill_information() { |
| 984 return &js_spill_information_; | 984 return &js_spill_information_; |
| 985 } | 985 } |
| 986 | 986 |
| 987 int* code_kind_statistics() { return code_kind_statistics_; } | 987 int* code_kind_statistics() { return code_kind_statistics_; } |
| 988 | 988 |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1306 | 1306 |
| 1307 bool allow_compiler_thread_handle_deref_; | 1307 bool allow_compiler_thread_handle_deref_; |
| 1308 bool allow_execution_thread_handle_deref_; | 1308 bool allow_execution_thread_handle_deref_; |
| 1309 #endif | 1309 #endif |
| 1310 | 1310 |
| 1311 #ifdef ENABLE_DEBUGGER_SUPPORT | 1311 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 1312 Debugger* debugger_; | 1312 Debugger* debugger_; |
| 1313 Debug* debug_; | 1313 Debug* debug_; |
| 1314 #endif | 1314 #endif |
| 1315 CpuProfiler* cpu_profiler_; | 1315 CpuProfiler* cpu_profiler_; |
| 1316 HeapProfiler* heap_profiler_; |
| 1316 | 1317 |
| 1317 #define GLOBAL_BACKING_STORE(type, name, initialvalue) \ | 1318 #define GLOBAL_BACKING_STORE(type, name, initialvalue) \ |
| 1318 type name##_; | 1319 type name##_; |
| 1319 ISOLATE_INIT_LIST(GLOBAL_BACKING_STORE) | 1320 ISOLATE_INIT_LIST(GLOBAL_BACKING_STORE) |
| 1320 #undef GLOBAL_BACKING_STORE | 1321 #undef GLOBAL_BACKING_STORE |
| 1321 | 1322 |
| 1322 #define GLOBAL_ARRAY_BACKING_STORE(type, name, length) \ | 1323 #define GLOBAL_ARRAY_BACKING_STORE(type, name, length) \ |
| 1323 type name##_[length]; | 1324 type name##_[length]; |
| 1324 ISOLATE_INIT_ARRAY_LIST(GLOBAL_ARRAY_BACKING_STORE) | 1325 ISOLATE_INIT_ARRAY_LIST(GLOBAL_ARRAY_BACKING_STORE) |
| 1325 #undef GLOBAL_ARRAY_BACKING_STORE | 1326 #undef GLOBAL_ARRAY_BACKING_STORE |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1490 | 1491 |
| 1491 // Mark the native context with out of memory. | 1492 // Mark the native context with out of memory. |
| 1492 inline void Context::mark_out_of_memory() { | 1493 inline void Context::mark_out_of_memory() { |
| 1493 native_context()->set_out_of_memory(HEAP->true_value()); | 1494 native_context()->set_out_of_memory(HEAP->true_value()); |
| 1494 } | 1495 } |
| 1495 | 1496 |
| 1496 | 1497 |
| 1497 } } // namespace v8::internal | 1498 } } // namespace v8::internal |
| 1498 | 1499 |
| 1499 #endif // V8_ISOLATE_H_ | 1500 #endif // V8_ISOLATE_H_ |
| OLD | NEW |