Index: src/vm-state-inl.h |
diff --git a/src/vm-state-inl.h b/src/vm-state-inl.h |
index 658773e6d6a8e06a026ae4fa9ca33a61cac3be14..5bee438b657577d2422ba1461eb91bf7647bd074 100644 |
--- a/src/vm-state-inl.h |
+++ b/src/vm-state-inl.h |
@@ -85,8 +85,7 @@ ExternalCallbackScope::ExternalCallbackScope(Isolate* isolate, Address callback) |
callback_(callback), |
previous_scope_(isolate->external_callback_scope()) { |
#ifdef USE_SIMULATOR |
- int32_t sp = Simulator::current(isolate)->get_register(Simulator::sp); |
- scope_address_ = reinterpret_cast<Address>(static_cast<intptr_t>(sp)); |
+ scope_address_ = Simulator::current(isolate)->get_sp(); |
#endif |
isolate_->set_external_callback_scope(this); |
} |