[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:
Michaël Zasso 2017-08-03 14:29:31 +02:00 committed by Commit Bot
parent a90f361fdc
commit cfb019f528
2 changed files with 0 additions and 8 deletions

View File

@ -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());

View File

@ -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) \