Index: src/builtins/builtins-array.cc |
diff --git a/src/builtins/builtins-array.cc b/src/builtins/builtins-array.cc |
index fe83911d34b63daa0c14099fd10da5fd0b89d033..7fcc7cfba8a6b1094894d6ed98fb6be838a63b45 100644 |
--- a/src/builtins/builtins-array.cc |
+++ b/src/builtins/builtins-array.cc |
@@ -1307,8 +1307,7 @@ void Builtins::Generate_ArrayIncludes(CodeStubAssembler* assembler) { |
{ |
Label done(assembler), init_k_smi(assembler), init_k_heap_num(assembler), |
init_k_zero(assembler), init_k_n(assembler); |
- Callable call_to_integer = CodeFactory::ToInteger(assembler->isolate()); |
- Node* tagged_n = assembler->CallStub(call_to_integer, context, start_from); |
+ Node* tagged_n = assembler->ToInteger(context, start_from); |
assembler->Branch(assembler->WordIsSmi(tagged_n), &init_k_smi, |
&init_k_heap_num); |
@@ -1755,8 +1754,7 @@ void Builtins::Generate_ArrayIndexOf(CodeStubAssembler* assembler) { |
{ |
Label done(assembler), init_k_smi(assembler), init_k_heap_num(assembler), |
init_k_zero(assembler), init_k_n(assembler); |
- Callable call_to_integer = CodeFactory::ToInteger(assembler->isolate()); |
- Node* tagged_n = assembler->CallStub(call_to_integer, context, start_from); |
+ Node* tagged_n = assembler->ToInteger(context, start_from); |
assembler->Branch(assembler->WordIsSmi(tagged_n), &init_k_smi, |
&init_k_heap_num); |