Index: src/builtins/builtins-array-gen.cc |
diff --git a/src/builtins/builtins-array-gen.cc b/src/builtins/builtins-array-gen.cc |
index f96362f7240ff246faa6fff5d73fa435bf30502d..406a69d20285c30aea74cdcc771be319d084262f 100644 |
--- a/src/builtins/builtins-array-gen.cc |
+++ b/src/builtins/builtins-array-gen.cc |
@@ -348,7 +348,7 @@ class ArrayBuiltinCodeStubAssembler : public CodeStubAssembler { |
// 1. Let O be ToObject(this value). |
// 2. ReturnIfAbrupt(O) |
- o_ = CallStub(CodeFactory::ToObject(isolate()), context(), receiver()); |
+ o_ = CallBuiltin(Builtins::kToObject, context(), receiver()); |
// 3. Let len be ToLength(Get(O, "length")). |
// 4. ReturnIfAbrupt(len). |
@@ -2015,8 +2015,7 @@ class ArrayPrototypeIterationAssembler : public CodeStubAssembler { |
BIND(&if_isnotobject); |
{ |
- Callable callable = CodeFactory::ToObject(isolate()); |
- Node* result = CallStub(callable, context, receiver); |
+ Node* result = CallBuiltin(Builtins::kToObject, context, receiver); |
var_array.Bind(result); |
var_map.Bind(LoadMap(result)); |
var_type.Bind(LoadMapInstanceType(var_map.value())); |