diff --git a/src/builtins/builtins-regexp-gen.cc b/src/builtins/builtins-regexp-gen.cc index e8c305916b..72b9726656 100644 --- a/src/builtins/builtins-regexp-gen.cc +++ b/src/builtins/builtins-regexp-gen.cc @@ -560,7 +560,7 @@ TNode RegExpBuiltinsAssembler::RegExpExecInternal( // Tier-up in runtime to compiler if ticks are non-zero. TNode ticks = CAST( UnsafeLoadFixedArrayElement(data, JSRegExp::kIrregexpTierUpTicksIndex)); - GotoIf(TruncateIntPtrToInt32(BitcastTaggedSignedToWord(ticks)), &runtime); + GotoIf(SmiToInt32(ticks), &runtime); IncrementCounter(isolate()->counters()->regexp_entry_native(), 1);