[cleanup] Remove unused runtime function
The ThrowIllegalInvocation runtime function is not used anywhere. Bug: Change-Id: I1bb5386e917f0a4ff787a071cef5e13a3f85ee30 Reviewed-on: https://chromium-review.googlesource.com/600230 Commit-Queue: Yang Guo <yangguo@chromium.org> Reviewed-by: Yang Guo <yangguo@chromium.org> Cr-Commit-Position: refs/heads/master@{#47185}
This commit is contained in:
parent
a90f361fdc
commit
cfb019f528
@ -211,13 +211,6 @@ RUNTIME_FUNCTION(Runtime_ThrowCannotConvertToPrimitive) {
|
||||
isolate, NewTypeError(MessageTemplate::kCannotConvertToPrimitive));
|
||||
}
|
||||
|
||||
RUNTIME_FUNCTION(Runtime_ThrowIllegalInvocation) {
|
||||
HandleScope scope(isolate);
|
||||
DCHECK_EQ(0, args.length());
|
||||
THROW_NEW_ERROR_RETURN_FAILURE(
|
||||
isolate, NewTypeError(MessageTemplate::kIllegalInvocation));
|
||||
}
|
||||
|
||||
RUNTIME_FUNCTION(Runtime_ThrowIncompatibleMethodReceiver) {
|
||||
HandleScope scope(isolate);
|
||||
DCHECK_EQ(2, args.length());
|
||||
|
@ -305,7 +305,6 @@ namespace internal {
|
||||
F(ThrowConstructedNonConstructable, 1, 1) \
|
||||
F(ThrowConstructorReturnedNonObject, 0, 1) \
|
||||
F(ThrowGeneratorRunning, 0, 1) \
|
||||
F(ThrowIllegalInvocation, 0, 1) \
|
||||
F(ThrowIncompatibleMethodReceiver, 2, 1) \
|
||||
F(ThrowInvalidHint, 1, 1) \
|
||||
F(ThrowInvalidStringLength, 0, 1) \
|
||||
|
Loading…
Reference in New Issue
Block a user