Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Unified Diff: runtime/vm/code_generator_test.cc

Issue 10928160: Limit the maximum number of formal parameters (32K fixed and 32K optional) (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/class_finalizer.cc ('k') | runtime/vm/compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_generator_test.cc
===================================================================
--- runtime/vm/code_generator_test.cc (revision 12287)
+++ runtime/vm/code_generator_test.cc (working copy)
@@ -216,7 +216,8 @@
default_values.SetAt(0, Smi::ZoneHandle(Smi::New(1))); // b = 1.
test->set_default_parameter_values(default_values);
const Function& function = test->function();
- function.SetNumberOfParameters(num_fixed_params, num_opt_params, true);
+ function.set_num_fixed_parameters(num_fixed_params);
+ function.SetNumOptionalParameters(num_opt_params, true);
const bool has_opt_params = true;
const String& native_name =
String::ZoneHandle(Symbols::New("TestSmiSub"));
@@ -386,7 +387,8 @@
default_values.SetAt(2, Smi::ZoneHandle(Smi::New(-32)));
test->set_default_parameter_values(default_values);
const Function& function = test->function();
- function.SetNumberOfParameters(num_fixed_params, num_opt_params, true);
+ function.set_num_fixed_parameters(num_fixed_params);
+ function.SetNumOptionalParameters(num_opt_params, true);
function.set_parameter_types(Array::Handle(Array::New(num_params)));
function.set_parameter_names(Array::Handle(Array::New(num_params)));
const Type& param_type = Type::Handle(Type::DynamicType());
« no previous file with comments | « runtime/vm/class_finalizer.cc ('k') | runtime/vm/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698