Index: src/runtime/runtime-scopes.cc |
diff --git a/src/runtime/runtime-scopes.cc b/src/runtime/runtime-scopes.cc |
index 77dc3cb5079d89d7a62baac2889d92f698d7130c..a56ca21da4ca85a6d9a8f5dca3e1ec74da7977c0 100644 |
--- a/src/runtime/runtime-scopes.cc |
+++ b/src/runtime/runtime-scopes.cc |
@@ -659,8 +659,8 @@ static Handle<JSArray> NewRestParam(Isolate* isolate, Object** parameters, |
RUNTIME_FUNCTION(Runtime_NewRestParam) { |
HandleScope scope(isolate); |
DCHECK(args.length() == 4); |
- Object** parameters = reinterpret_cast<Object**>(args[0]); |
- CONVERT_SMI_ARG_CHECKED(num_params, 1); |
+ CONVERT_SMI_ARG_CHECKED(num_params, 0); |
+ Object** parameters = reinterpret_cast<Object**>(args[1]); |
CONVERT_SMI_ARG_CHECKED(rest_index, 2); |
CONVERT_SMI_ARG_CHECKED(language_mode, 3); |