Index: src/builtins/builtins-array-gen.cc |
diff --git a/src/builtins/builtins-array-gen.cc b/src/builtins/builtins-array-gen.cc |
index abe31e6ce8f7c097f3c9919419791a288ae85912..31d92f78bb61de53d4f421dc9985320e9b4dc1b3 100644 |
--- a/src/builtins/builtins-array-gen.cc |
+++ b/src/builtins/builtins-array-gen.cc |
@@ -332,8 +332,7 @@ class ArrayBuiltinCodeStubAssembler : public CodeStubAssembler { |
BIND(¬_js_array); |
Node* len_property = |
GetProperty(context(), o(), isolate()->factory()->length_string()); |
- merged_length.Bind( |
- CallStub(CodeFactory::ToLength(isolate()), context(), len_property)); |
+ merged_length.Bind(ToLength_Inline(context(), len_property)); |
Goto(&has_length); |
BIND(&has_length); |
len_ = merged_length.value(); |
@@ -2181,8 +2180,7 @@ TF_BUILTIN(ArrayIteratorPrototypeNext, CodeStubAssembler) { |
{ |
Node* length = |
GetProperty(context, array, factory()->length_string()); |
- Callable to_length = CodeFactory::ToLength(isolate()); |
- var_length.Bind(CallStub(to_length, context, length)); |
+ var_length.Bind(ToLength_Inline(context, length)); |
Goto(&done); |
} |