| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 7c484de53ee1e537a8abeefdce1e0cab69e4952e..9e6e7921220735cb5d9f42bd43c87bd52a0bba71 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -1848,19 +1848,10 @@ v8::TryCatch::TryCatch()
|
| rethrow_(false),
|
| has_terminated_(false) {
|
| Reset();
|
| - js_stack_comparable_address_ = this;
|
| -#ifdef V8_USE_ADDRESS_SANITIZER
|
| - void* asan_fake_stack_handle = __asan_get_current_fake_stack();
|
| - if (asan_fake_stack_handle != NULL) {
|
| - js_stack_comparable_address_ = __asan_addr_is_in_fake_stack(
|
| - asan_fake_stack_handle, js_stack_comparable_address_, NULL, NULL);
|
| - CHECK(js_stack_comparable_address_ != NULL);
|
| - }
|
| -#endif
|
| // Special handling for simulators which have a separate JS stack.
|
| - js_stack_comparable_address_ = reinterpret_cast<void*>(
|
| - v8::internal::SimulatorStack::RegisterCTryCatch(
|
| - reinterpret_cast<uintptr_t>(js_stack_comparable_address_)));
|
| + js_stack_comparable_address_ =
|
| + reinterpret_cast<void*>(v8::internal::SimulatorStack::RegisterCTryCatch(
|
| + GetCurrentStackPosition()));
|
| isolate_->RegisterTryCatchHandler(this);
|
| }
|
|
|
|
|