Index: src/builtins/builtins-object-gen.cc |
diff --git a/src/builtins/builtins-object-gen.cc b/src/builtins/builtins-object-gen.cc |
index 6f03d613e6690c4fd5cf2c85965f80a5f9f16b3a..c76abfdbcf27c1234f109e81246c8b7f13d34065 100644 |
--- a/src/builtins/builtins-object-gen.cc |
+++ b/src/builtins/builtins-object-gen.cc |
@@ -208,8 +208,7 @@ TF_BUILTIN(ObjectProtoToString, ObjectBuiltinsAssembler) { |
GotoIf(WordEqual(receiver, NullConstant()), &return_null); |
- Callable to_object = CodeFactory::ToObject(isolate()); |
- receiver = CallStub(to_object, context, receiver); |
+ receiver = CallBuiltin(Builtins::kToObject, context, receiver); |
Node* receiver_instance_type = LoadInstanceType(receiver); |
@@ -354,10 +353,7 @@ TF_BUILTIN(ObjectPrototypeValueOf, CodeStubAssembler) { |
Node* receiver = Parameter(Descriptor::kReceiver); |
Node* context = Parameter(Descriptor::kContext); |
- Callable to_object = CodeFactory::ToObject(isolate()); |
- receiver = CallStub(to_object, context, receiver); |
- |
- Return(receiver); |
+ Return(CallBuiltin(Builtins::kToObject, context, receiver)); |
} |
// ES #sec-object.create |