| 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 951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 962 inline bool DebuggerHasBreakPoints(); | 962 inline bool DebuggerHasBreakPoints(); |
| 963 | 963 |
| 964 #ifdef DEBUG | 964 #ifdef DEBUG |
| 965 HistogramInfo* heap_histograms() { return heap_histograms_; } | 965 HistogramInfo* heap_histograms() { return heap_histograms_; } |
| 966 | 966 |
| 967 JSObject::SpillInformation* js_spill_information() { | 967 JSObject::SpillInformation* js_spill_information() { |
| 968 return &js_spill_information_; | 968 return &js_spill_information_; |
| 969 } | 969 } |
| 970 | 970 |
| 971 int* code_kind_statistics() { return code_kind_statistics_; } | 971 int* code_kind_statistics() { return code_kind_statistics_; } |
| 972 |
| 973 bool allow_handle_deref() { return allow_handle_deref_; } |
| 974 void set_allow_handle_deref(bool allow) { allow_handle_deref_ = allow; } |
| 972 #endif | 975 #endif |
| 973 | 976 |
| 974 #if defined(V8_TARGET_ARCH_ARM) && !defined(__arm__) || \ | 977 #if defined(V8_TARGET_ARCH_ARM) && !defined(__arm__) || \ |
| 975 defined(V8_TARGET_ARCH_MIPS) && !defined(__mips__) | 978 defined(V8_TARGET_ARCH_MIPS) && !defined(__mips__) |
| 976 bool simulator_initialized() { return simulator_initialized_; } | 979 bool simulator_initialized() { return simulator_initialized_; } |
| 977 void set_simulator_initialized(bool initialized) { | 980 void set_simulator_initialized(bool initialized) { |
| 978 simulator_initialized_ = initialized; | 981 simulator_initialized_ = initialized; |
| 979 } | 982 } |
| 980 | 983 |
| 981 HashMap* simulator_i_cache() { return simulator_i_cache_; } | 984 HashMap* simulator_i_cache() { return simulator_i_cache_; } |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1259 bool simulator_initialized_; | 1262 bool simulator_initialized_; |
| 1260 HashMap* simulator_i_cache_; | 1263 HashMap* simulator_i_cache_; |
| 1261 Redirection* simulator_redirection_; | 1264 Redirection* simulator_redirection_; |
| 1262 #endif | 1265 #endif |
| 1263 | 1266 |
| 1264 #ifdef DEBUG | 1267 #ifdef DEBUG |
| 1265 // A static array of histogram info for each type. | 1268 // A static array of histogram info for each type. |
| 1266 HistogramInfo heap_histograms_[LAST_TYPE + 1]; | 1269 HistogramInfo heap_histograms_[LAST_TYPE + 1]; |
| 1267 JSObject::SpillInformation js_spill_information_; | 1270 JSObject::SpillInformation js_spill_information_; |
| 1268 int code_kind_statistics_[Code::NUMBER_OF_KINDS]; | 1271 int code_kind_statistics_[Code::NUMBER_OF_KINDS]; |
| 1272 |
| 1273 bool allow_handle_deref_; |
| 1269 #endif | 1274 #endif |
| 1270 | 1275 |
| 1271 #ifdef ENABLE_DEBUGGER_SUPPORT | 1276 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 1272 Debugger* debugger_; | 1277 Debugger* debugger_; |
| 1273 Debug* debug_; | 1278 Debug* debug_; |
| 1274 #endif | 1279 #endif |
| 1275 | 1280 |
| 1276 #define GLOBAL_BACKING_STORE(type, name, initialvalue) \ | 1281 #define GLOBAL_BACKING_STORE(type, name, initialvalue) \ |
| 1277 type name##_; | 1282 type name##_; |
| 1278 ISOLATE_INIT_LIST(GLOBAL_BACKING_STORE) | 1283 ISOLATE_INIT_LIST(GLOBAL_BACKING_STORE) |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1444 | 1449 |
| 1445 // Mark the native context with out of memory. | 1450 // Mark the native context with out of memory. |
| 1446 inline void Context::mark_out_of_memory() { | 1451 inline void Context::mark_out_of_memory() { |
| 1447 native_context()->set_out_of_memory(HEAP->true_value()); | 1452 native_context()->set_out_of_memory(HEAP->true_value()); |
| 1448 } | 1453 } |
| 1449 | 1454 |
| 1450 | 1455 |
| 1451 } } // namespace v8::internal | 1456 } } // namespace v8::internal |
| 1452 | 1457 |
| 1453 #endif // V8_ISOLATE_H_ | 1458 #endif // V8_ISOLATE_H_ |
| OLD | NEW |