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