Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 898f43c166fa11a1907e4fabef6c64823fe3dbf5..06df1f67c25bc380097c2cc8ca471105ec65b071 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -272,14 +272,13 @@ void Isolate::RegisterTryCatchHandler(v8::TryCatch* that) { |
// JS stack. When running without the simulator, the address |
// returned will be the address of the C++ try catch handler itself. |
Address address = reinterpret_cast<Address>( |
- SimulatorStack::RegisterCTryCatch(reinterpret_cast<uintptr_t>( |
- that->DesanitizedThis()))); |
+ SimulatorStack::RegisterCTryCatch(reinterpret_cast<uintptr_t>(that))); |
thread_local_top()->set_try_catch_handler_address(address); |
} |
void Isolate::UnregisterTryCatchHandler(v8::TryCatch* that) { |
- ASSERT(thread_local_top()->TryCatchHandler() == that->DesanitizedThis()); |
+ ASSERT(thread_local_top()->TryCatchHandler() == that); |
thread_local_top()->set_try_catch_handler_address( |
reinterpret_cast<Address>(that->next_)); |
thread_local_top()->catcher_ = NULL; |