[cleanup] Remove unused function Isolate::GetMessageLocation
Bug: v8:8834 Change-Id: Ief3c02a05252d3e234e524e9fa3582280f70ae22 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1569439 Auto-Submit: Dan Elphick <delphick@chromium.org> Reviewed-by: Ross McIlroy <rmcilroy@chromium.org> Commit-Queue: Dan Elphick <delphick@chromium.org> Cr-Commit-Position: refs/heads/master@{#60877}
This commit is contained in:
parent
bd8fb77f72
commit
23eec7c5ad
@ -2354,23 +2354,6 @@ void Isolate::ReportPendingMessagesFromJavaScript() {
|
||||
ReportPendingMessagesImpl(true);
|
||||
}
|
||||
|
||||
MessageLocation Isolate::GetMessageLocation() {
|
||||
DCHECK(has_pending_exception());
|
||||
|
||||
if (thread_local_top()->pending_exception_ !=
|
||||
ReadOnlyRoots(heap()).termination_exception() &&
|
||||
!thread_local_top()->pending_message_obj_->IsTheHole(this)) {
|
||||
Handle<JSMessageObject> message_obj(
|
||||
JSMessageObject::cast(thread_local_top()->pending_message_obj_), this);
|
||||
Handle<Script> script(message_obj->script(), this);
|
||||
int start_pos = message_obj->start_position();
|
||||
int end_pos = message_obj->end_position();
|
||||
return MessageLocation(script, start_pos, end_pos);
|
||||
}
|
||||
|
||||
return MessageLocation();
|
||||
}
|
||||
|
||||
bool Isolate::OptionalRescheduleException(bool clear_exception) {
|
||||
DCHECK(has_pending_exception());
|
||||
PropagatePendingExceptionToExternalTryCatch();
|
||||
|
@ -776,9 +776,6 @@ class Isolate final : private HiddenFactory {
|
||||
// Implements code shared between the two above methods
|
||||
void ReportPendingMessagesImpl(bool report_externally);
|
||||
|
||||
// Return pending location if any or unfilled structure.
|
||||
MessageLocation GetMessageLocation();
|
||||
|
||||
// Promote a scheduled exception to pending. Asserts has_scheduled_exception.
|
||||
Object PromoteScheduledException();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user