Index: src/builtins/builtins-conversion.cc |
diff --git a/src/builtins/builtins-conversion.cc b/src/builtins/builtins-conversion.cc |
index b32f5660d922eda14ac58edd6afe75dc52c0a3dd..5292b16cde0eb5aaaea281368f8d2c94c2db4177 100644 |
--- a/src/builtins/builtins-conversion.cc |
+++ b/src/builtins/builtins-conversion.cc |
@@ -344,7 +344,7 @@ void Builtins::Generate_ToLength(compiler::CodeAssemblerState* state) { |
Node* len = var_len.value(); |
// Check if {len} is a positive Smi. |
- assembler.GotoIf(assembler.WordIsPositiveSmi(len), &return_len); |
+ assembler.GotoIf(assembler.TaggedIsPositiveSmi(len), &return_len); |
// Check if {len} is a (negative) Smi. |
assembler.GotoIf(assembler.TaggedIsSmi(len), &return_zero); |