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

Issue 1134343003: Fix constant evaluation dependency analysis for const external factories. (Closed)

Created:
5 years, 7 months ago by Paul Berry
Modified:
5 years, 7 months ago
Reviewers:
scheglov
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix constant evaluation dependency analysis for const external factories. With the current constant evaluator, the bug is benign because we only do dependency analysis within a library cycle, and the library cycle containing dart:core (which is the only library cycle with const external factories) contains no invocations of those const external factories. But in the new task model we do full dependency analysis across library cycles, so the dependency analysis needs to be correct in order for the const external factory to be safely invoked. R=scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/eb6d1e2579710409c1e6d5704fb621a9934f4625

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -0 lines) Patch
M pkg/analyzer/lib/src/generated/constant.dart View 1 chunk +9 lines, -0 lines 0 comments Download
M pkg/analyzer/test/src/task/dart_test.dart View 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (1 generated)
Paul Berry
This should fix the exception you emailed about on Friday.
5 years, 7 months ago (2015-05-18 20:11:20 UTC) #2
scheglov
LGTM
5 years, 7 months ago (2015-05-18 20:14:19 UTC) #3
Paul Berry
5 years, 7 months ago (2015-05-18 20:18:37 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
eb6d1e2579710409c1e6d5704fb621a9934f4625 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698