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

Unified Diff: runtime/vm/flow_graph_inliner.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
Index: runtime/vm/flow_graph_inliner.cc
===================================================================
--- runtime/vm/flow_graph_inliner.cc (revision 11998)
+++ runtime/vm/flow_graph_inliner.cc (working copy)
@@ -31,8 +31,8 @@
StaticCallInstr* call) {
// TODO(zerny): Generalize to all calls.
- // Abort if the callee has named parameters.
- if (function.num_optional_parameters() > 0) {
+ // Abort if the callee has optional parameters.
+ if (function.HasOptionalParameters()) {
if (FLAG_trace_inlining) {
OS::Print("Inline aborted %s\nReason: optional parameters\n",
function.ToFullyQualifiedCString());
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/object.h » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698