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

Issue 18170003: Fix bug in the inliner when dealing with named optional parameters. (Closed)

Created:
7 years, 5 months ago by Florian Schneider
Modified:
7 years, 5 months ago
Reviewers:
srdjan
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Fix bug in the inliner when dealing with named optional parameters. In case of a name mismatch the inliner would still inline the target method as if nothing was wrong. Added a check that all actual named arguments are matched against a formal parameter. TEST=tests/language/named_parameters_with_conversions_test.dart R=srdjan@google.com Committed: https://code.google.com/p/dart/source/detail?r=24954

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -11 lines) Patch
M runtime/vm/flow_graph_inliner.cc View 7 chunks +15 lines, -8 lines 0 comments Download
M tests/language/named_parameters_with_conversions_test.dart View 4 chunks +8 lines, -3 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Florian Schneider
This bug existed in a long time (probably since inlining with named parameters was enabled), ...
7 years, 5 months ago (2013-07-12 12:26:11 UTC) #1
srdjan
LGTM
7 years, 5 months ago (2013-07-12 15:55:45 UTC) #2
Florian Schneider
7 years, 5 months ago (2013-07-12 16:02:07 UTC) #3
Message was sent while issue was closed.
Committed patchset #1 manually as r24954 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698