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

Unified Diff: runtime/vm/raw_object.h

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
Index: runtime/vm/raw_object.h
===================================================================
--- runtime/vm/raw_object.h (revision 12282)
+++ runtime/vm/raw_object.h (working copy)
@@ -612,10 +612,9 @@
intptr_t token_pos_;
intptr_t end_token_pos_;
- intptr_t num_fixed_parameters_;
- intptr_t num_optional_positional_parameters_;
- intptr_t num_optional_named_parameters_;
intptr_t usage_counter_; // Incremented while function is running.
+ int16_t num_fixed_parameters_;
+ int16_t num_optional_parameters_; // > 0: positional; < 0: named.
uint16_t deoptimization_counter_;
uint16_t kind_tag_;
};

Powered by Google App Engine
This is Rietveld 408576698