Index: src/vm-state.h |
diff --git a/src/vm-state.h b/src/vm-state.h |
index 81a90e3c080e312481924358386f4547e7ffddfe..7e723a5282b426c16360984900b8feecee7ddc51 100644 |
--- a/src/vm-state.h |
+++ b/src/vm-state.h |
@@ -33,7 +33,14 @@ class ExternalCallbackScope BASE_EMBEDDED { |
inline ExternalCallbackScope(Isolate* isolate, Address callback); |
inline ~ExternalCallbackScope(); |
Address callback() { return callback_; } |
- Address* callback_address() { return &callback_; } |
+ Address* callback_entrypoint_address() { |
+ if (callback_ == nullptr) return nullptr; |
+#if USES_FUNCTION_DESCRIPTORS |
+ return FUNCTION_ENTRYPOINT_ADDRESS(callback_); |
+#else |
+ return &callback_; |
+#endif |
+ } |
ExternalCallbackScope* previous() { return previous_scope_; } |
inline Address scope_address(); |