Index: src/builtins/builtins-string.cc |
diff --git a/src/builtins/builtins-string.cc b/src/builtins/builtins-string.cc |
index f2b784cf053b409f5a7982329d3839582afa9d27..ac9742339e87e577c9b4d1b3deca5acf10400766 100644 |
--- a/src/builtins/builtins-string.cc |
+++ b/src/builtins/builtins-string.cc |
@@ -420,7 +420,7 @@ TF_BUILTIN(StringFromCharCode, CodeStubAssembler) { |
Node* argc = Parameter(BuiltinDescriptor::kArgumentsCount); |
Node* context = Parameter(BuiltinDescriptor::kContext); |
- CodeStubArguments arguments(this, argc); |
+ CodeStubArguments arguments(this, ChangeInt32ToIntPtr(argc)); |
// From now on use word-size argc value. |
argc = arguments.GetLength(); |
@@ -886,7 +886,7 @@ TF_BUILTIN(StringPrototypeIndexOf, StringBuiltinsAssembler) { |
Node* argc = Parameter(BuiltinDescriptor::kArgumentsCount); |
Node* context = Parameter(BuiltinDescriptor::kContext); |
- CodeStubArguments arguments(this, argc); |
+ CodeStubArguments arguments(this, ChangeInt32ToIntPtr(argc)); |
Node* receiver = arguments.GetReceiver(); |
// From now on use word-size argc value. |
argc = arguments.GetLength(); |