Index: src/builtins/builtins-object.cc |
diff --git a/src/builtins/builtins-object.cc b/src/builtins/builtins-object.cc |
index 3588304a1c34628c69245a65320b09b368630ca7..4536fc9b8a23e81bafafb8ad354d3ebac68b38f6 100644 |
--- a/src/builtins/builtins-object.cc |
+++ b/src/builtins/builtins-object.cc |
@@ -443,13 +443,8 @@ void Builtins::Generate_ObjectProtoToString(CodeStubAssembler* assembler) { |
Node* map = assembler->LoadMap(receiver); |
// Return object if the proxy {receiver} is not callable. |
- assembler->Branch( |
- assembler->Word32Equal( |
- assembler->Word32And( |
- assembler->LoadMapBitField(map), |
- assembler->Int32Constant(1 << Map::kIsCallable)), |
- assembler->Int32Constant(0)), |
- &return_object, &return_function); |
+ assembler->Branch(assembler->IsCallableMap(map), &return_function, |
+ &return_object); |
} |
// Default |