From 1d77bc29006f1d80ac343a541dd04bc127642b8e Mon Sep 17 00:00:00 2001 From: Michael Starzinger Date: Thu, 9 Nov 2017 13:00:52 +0100 Subject: [PATCH] [builtins] Small cleanup of {Builtins::CallableFor}. R=mvstanton@chromium.org Change-Id: Iff5a3741ba93ea2cc9d4b9f9907b22ce768b1cb3 Reviewed-on: https://chromium-review.googlesource.com/758840 Commit-Queue: Michael Stanton Reviewed-by: Michael Stanton Cr-Commit-Position: refs/heads/master@{#49269} --- src/builtins/builtins.cc | 44 ++++++++-------------------------------- 1 file changed, 8 insertions(+), 36 deletions(-) diff --git a/src/builtins/builtins.cc b/src/builtins/builtins.cc index 7b322351f5..55fc1c8cd8 100644 --- a/src/builtins/builtins.cc +++ b/src/builtins/builtins.cc @@ -170,43 +170,15 @@ Callable Builtins::CallableFor(Isolate* isolate, Name name) { BUILTIN_LIST(IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, CASE_OTHER, CASE_OTHER, CASE_OTHER, IGNORE_BUILTIN) #undef CASE_OTHER - case kConsoleAssert: { + case kArrayFilterLoopEagerDeoptContinuation: + case kArrayFilterLoopLazyDeoptContinuation: + case kArrayForEach: + case kArrayForEachLoopEagerDeoptContinuation: + case kArrayForEachLoopLazyDeoptContinuation: + case kArrayMapLoopEagerDeoptContinuation: + case kArrayMapLoopLazyDeoptContinuation: + case kConsoleAssert: return Callable(code, BuiltinDescriptor(isolate)); - } - case kArrayForEach: { - Handle code = BUILTIN_CODE(isolate, ArrayForEach); - return Callable(code, BuiltinDescriptor(isolate)); - } - case kArrayForEachLoopEagerDeoptContinuation: { - Handle code = - BUILTIN_CODE(isolate, ArrayForEachLoopEagerDeoptContinuation); - return Callable(code, BuiltinDescriptor(isolate)); - } - case kArrayForEachLoopLazyDeoptContinuation: { - Handle code = - BUILTIN_CODE(isolate, ArrayForEachLoopLazyDeoptContinuation); - return Callable(code, BuiltinDescriptor(isolate)); - } - case kArrayMapLoopEagerDeoptContinuation: { - Handle code = - BUILTIN_CODE(isolate, ArrayMapLoopEagerDeoptContinuation); - return Callable(code, BuiltinDescriptor(isolate)); - } - case kArrayMapLoopLazyDeoptContinuation: { - Handle code = - BUILTIN_CODE(isolate, ArrayMapLoopLazyDeoptContinuation); - return Callable(code, BuiltinDescriptor(isolate)); - } - case kArrayFilterLoopEagerDeoptContinuation: { - Handle code = - BUILTIN_CODE(isolate, ArrayFilterLoopEagerDeoptContinuation); - return Callable(code, BuiltinDescriptor(isolate)); - } - case kArrayFilterLoopLazyDeoptContinuation: { - Handle code = - BUILTIN_CODE(isolate, ArrayFilterLoopLazyDeoptContinuation); - return Callable(code, BuiltinDescriptor(isolate)); - } default: UNREACHABLE(); }