diff --git a/src/builtins/builtins-function-gen.cc b/src/builtins/builtins-function-gen.cc index f5a173c71e..77596b3b8c 100644 --- a/src/builtins/builtins-function-gen.cc +++ b/src/builtins/builtins-function-gen.cc @@ -28,13 +28,12 @@ TF_BUILTIN(FastFunctionPrototypeBind, CodeStubAssembler) { Node* receiver_map = LoadMap(receiver); { - Label fast(this); Node* instance_type = LoadMapInstanceType(receiver_map); - GotoIf(Word32Equal(instance_type, Int32Constant(JS_FUNCTION_TYPE)), &fast); - GotoIf(Word32Equal(instance_type, Int32Constant(JS_BOUND_FUNCTION_TYPE)), - &fast); - Goto(&slow); - BIND(&fast); + GotoIfNot( + Word32Or( + Word32Equal(instance_type, Int32Constant(JS_FUNCTION_TYPE)), + Word32Equal(instance_type, Int32Constant(JS_BOUND_FUNCTION_TYPE))), + &slow); } // Disallow binding of slow-mode functions. We need to figure out whether the