| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 k_debug_break_return_address, | 225 k_debug_break_return_address, |
| 226 k_register_address | 226 k_register_address |
| 227 }; | 227 }; |
| 228 | 228 |
| 229 // Support for setting the address to jump to when returning from break point. | 229 // Support for setting the address to jump to when returning from break point. |
| 230 static Address* after_break_target_address() { | 230 static Address* after_break_target_address() { |
| 231 return reinterpret_cast<Address*>(&thread_local_.after_break_target_); | 231 return reinterpret_cast<Address*>(&thread_local_.after_break_target_); |
| 232 } | 232 } |
| 233 | 233 |
| 234 // Support for saving/restoring registers when handling debug break calls. | 234 // Support for saving/restoring registers when handling debug break calls. |
| 235 static Address* register_address(int r) { | 235 static Object** register_address(int r) { |
| 236 return reinterpret_cast<Address *>(®isters_[r]); | 236 return ®isters_[r]; |
| 237 } | 237 } |
| 238 | 238 |
| 239 // Address of the debug break return entry code. | 239 // Address of the debug break return entry code. |
| 240 static Code* debug_break_return_entry() { return debug_break_return_entry_; } | 240 static Code* debug_break_return_entry() { return debug_break_return_entry_; } |
| 241 | 241 |
| 242 // Support for getting the address of the debug break on return code. | 242 // Support for getting the address of the debug break on return code. |
| 243 static Address* debug_break_return_address() { | 243 static Code** debug_break_return_address() { |
| 244 return reinterpret_cast<Address*>(&debug_break_return_); | 244 return &debug_break_return_; |
| 245 } | 245 } |
| 246 | 246 |
| 247 static const int kEstimatedNofDebugInfoEntries = 16; | 247 static const int kEstimatedNofDebugInfoEntries = 16; |
| 248 static const int kEstimatedNofBreakPointsInFunction = 16; | 248 static const int kEstimatedNofBreakPointsInFunction = 16; |
| 249 | 249 |
| 250 static void HandleWeakDebugInfo(v8::Persistent<v8::Object> obj, void* data); | 250 static void HandleWeakDebugInfo(v8::Persistent<v8::Object> obj, void* data); |
| 251 | 251 |
| 252 friend class Debugger; | 252 friend class Debugger; |
| 253 friend Handle<FixedArray> GetDebuggedFunctions(); // Found in test-debug.cc | 253 friend Handle<FixedArray> GetDebuggedFunctions(); // Found in test-debug.cc |
| 254 | 254 |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 570 } | 570 } |
| 571 private: | 571 private: |
| 572 Debug::AddressId id_; | 572 Debug::AddressId id_; |
| 573 int reg_; | 573 int reg_; |
| 574 }; | 574 }; |
| 575 | 575 |
| 576 | 576 |
| 577 } } // namespace v8::internal | 577 } } // namespace v8::internal |
| 578 | 578 |
| 579 #endif // V8_V8_DEBUG_H_ | 579 #endif // V8_V8_DEBUG_H_ |
| OLD | NEW |