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

Unified Diff: runtime/vm/raw_object_snapshot.cc

Issue 10910119: Implement new optional parameters syntax in the vm (issue 4290). (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/raw_object.h ('k') | tests/co19/co19-runtime.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/raw_object_snapshot.cc
===================================================================
--- runtime/vm/raw_object_snapshot.cc (revision 12003)
+++ runtime/vm/raw_object_snapshot.cc (working copy)
@@ -485,7 +485,8 @@
func.set_token_pos(reader->ReadIntptrValue());
func.set_end_token_pos(reader->ReadIntptrValue());
func.set_num_fixed_parameters(reader->ReadIntptrValue());
- func.set_num_optional_parameters(reader->ReadIntptrValue());
+ func.set_num_optional_positional_parameters(reader->ReadIntptrValue());
+ func.set_num_optional_named_parameters(reader->ReadIntptrValue());
func.set_usage_counter(reader->ReadIntptrValue());
func.set_deoptimization_counter(reader->ReadIntptrValue());
func.set_kind_tag(reader->ReadIntptrValue());
@@ -520,7 +521,8 @@
writer->WriteIntptrValue(ptr()->token_pos_);
writer->WriteIntptrValue(ptr()->end_token_pos_);
writer->WriteIntptrValue(ptr()->num_fixed_parameters_);
- writer->WriteIntptrValue(ptr()->num_optional_parameters_);
+ writer->WriteIntptrValue(ptr()->num_optional_positional_parameters_);
+ writer->WriteIntptrValue(ptr()->num_optional_named_parameters_);
writer->WriteIntptrValue(ptr()->usage_counter_);
writer->WriteIntptrValue(ptr()->deoptimization_counter_);
writer->WriteIntptrValue(ptr()->kind_tag_);
« no previous file with comments | « runtime/vm/raw_object.h ('k') | tests/co19/co19-runtime.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698