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

Issue 9601005: New analyzeLibraries method (Closed)

Created:
8 years, 9 months ago by danrubel
Modified:
8 years, 9 months ago
Reviewers:
ahe, zundel
CC:
reviews_dartlang.org
Visibility:
Public.

Description

New analyzeLibraries method Committed: https://code.google.com/p/dart/source/detail?r=4970

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -18 lines) Patch
M compiler/java/com/google/dart/compiler/DartCompiler.java View 1 16 chunks +82 lines, -18 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
danrubel
Analyze a library along with any directly and indirectly referenced libraries. Accept previously resolved libraries ...
8 years, 9 months ago (2012-03-05 04:01:22 UTC) #1
ahe
LGTM https://chromiumcodereview.appspot.com/9601005/diff/1/compiler/java/com/google/dart/compiler/DartCompiler.java File compiler/java/com/google/dart/compiler/DartCompiler.java (right): https://chromiumcodereview.appspot.com/9601005/diff/1/compiler/java/com/google/dart/compiler/DartCompiler.java#newcode867 compiler/java/com/google/dart/compiler/DartCompiler.java:867: Collection<LibraryUnit> getLibrariesToProcess() { This should be O(1), not ...
8 years, 9 months ago (2012-03-05 08:54:20 UTC) #2
danrubel
8 years, 9 months ago (2012-03-05 13:09:18 UTC) #3
https://chromiumcodereview.appspot.com/9601005/diff/1/compiler/java/com/googl...
File compiler/java/com/google/dart/compiler/DartCompiler.java (right):

https://chromiumcodereview.appspot.com/9601005/diff/1/compiler/java/com/googl...
compiler/java/com/google/dart/compiler/DartCompiler.java:867:
Collection<LibraryUnit> getLibrariesToProcess() {
On 2012/03/05 08:54:21, ahe wrote:
> This should be O(1), not O(n*n).

Good point. Cached.

https://chromiumcodereview.appspot.com/9601005/diff/1/compiler/java/com/googl...
compiler/java/com/google/dart/compiler/DartCompiler.java:1116: public static
LibraryUnit analyzeLibrary(LibrarySource lib, Map<URI, DartUnit> parsedUnits,
On 2012/03/05 08:54:21, ahe wrote:
> I don't think you need this overload, and I'd strongly recommend that you
don't
> add more overloads as it tends to complicate the API unnecessarily.

Agreed. I want to get the new API in place and tested before converting existing
callers and removing this method.

Powered by Google App Engine
This is Rietveld 408576698