| Index: src/debug.h
|
| diff --git a/src/debug.h b/src/debug.h
|
| index 80e6970e34caccbceb0d0f499443b9b6f7bd1dc2..c412f8d60a4062eb3f40db5238baee44facfef45 100644
|
| --- a/src/debug.h
|
| +++ b/src/debug.h
|
| @@ -342,12 +342,13 @@ class Debug {
|
| };
|
|
|
| // Support for setting the address to jump to when returning from break point.
|
| - Address* after_break_target_address() {
|
| - return reinterpret_cast<Address*>(&thread_local_.after_break_target_);
|
| + Address after_break_target_address() {
|
| + return reinterpret_cast<Address>(&thread_local_.after_break_target_);
|
| }
|
| - Address* restarter_frame_function_pointer_address() {
|
| +
|
| + Address restarter_frame_function_pointer_address() {
|
| Object*** address = &thread_local_.restarter_frame_function_pointer_;
|
| - return reinterpret_cast<Address*>(address);
|
| + return reinterpret_cast<Address>(address);
|
| }
|
|
|
| // Support for saving/restoring registers when handling debug break calls.
|
| @@ -918,39 +919,6 @@ class DisableBreak BASE_EMBEDDED {
|
| bool prev_disable_break_;
|
| };
|
|
|
| -
|
| -// Debug_Address encapsulates the Address pointers used in generating debug
|
| -// code.
|
| -class Debug_Address {
|
| - public:
|
| - explicit Debug_Address(Debug::AddressId id) : id_(id) { }
|
| -
|
| - static Debug_Address AfterBreakTarget() {
|
| - return Debug_Address(Debug::k_after_break_target_address);
|
| - }
|
| -
|
| - static Debug_Address RestarterFrameFunctionPointer() {
|
| - return Debug_Address(Debug::k_restarter_frame_function_pointer);
|
| - }
|
| -
|
| - Address address(Isolate* isolate) const {
|
| - Debug* debug = isolate->debug();
|
| - switch (id_) {
|
| - case Debug::k_after_break_target_address:
|
| - return reinterpret_cast<Address>(debug->after_break_target_address());
|
| - case Debug::k_restarter_frame_function_pointer:
|
| - return reinterpret_cast<Address>(
|
| - debug->restarter_frame_function_pointer_address());
|
| - default:
|
| - UNREACHABLE();
|
| - return NULL;
|
| - }
|
| - }
|
| -
|
| - private:
|
| - Debug::AddressId id_;
|
| -};
|
| -
|
| } } // namespace v8::internal
|
|
|
| #endif // V8_DEBUG_H_
|
|
|