Index: src/builtins/builtins-regexp.cc |
diff --git a/src/builtins/builtins-regexp.cc b/src/builtins/builtins-regexp.cc |
index a121a951c9da4abf6ca8d99fed8c4e6545592e99..554887b7dda31ba1d34dc1af0358ddf2b0dd3b2e 100644 |
--- a/src/builtins/builtins-regexp.cc |
+++ b/src/builtins/builtins-regexp.cc |
@@ -322,7 +322,7 @@ void Builtins::Generate_RegExpPrototypeExec(CodeStubAssembler* a) { |
Node* const null = a->NullConstant(); |
Node* const int_zero = a->IntPtrConstant(0); |
- Node* const smi_zero = a->SmiConstant(Smi::kZero); |
+ Node* const smi_zero = a->SmiConstant(Smi::FromInt(0)); |
// Ensure {receiver} is a JSRegExp. |
Node* const regexp_map = a->ThrowIfNotInstanceType( |