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

Unified Diff: compiler/javatests/com/google/dart/compiler/DeltaBench.java

Issue 9651004: Make SourceInfo a class, rename its menthods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tweak for formatting, lazily create LainesInfo Created 8 years, 9 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: compiler/javatests/com/google/dart/compiler/DeltaBench.java
diff --git a/compiler/javatests/com/google/dart/compiler/DeltaBench.java b/compiler/javatests/com/google/dart/compiler/DeltaBench.java
index 209356dbd2cbe35adc10d21145749e1505467eb0..2c46f4eb5fc06670528cd047829c2538ce99d403 100644
--- a/compiler/javatests/com/google/dart/compiler/DeltaBench.java
+++ b/compiler/javatests/com/google/dart/compiler/DeltaBench.java
@@ -54,17 +54,18 @@ public class DeltaBench {
new HashSet<LibraryElement>());
DartUnit unit = null;
for (DartUnit current : enclosingLibraryUnit.getUnits()) {
- if (current.getSource().getName().endsWith(interestingFile)) {
+ if (current.getSourceInfo().getSource().getName().endsWith(interestingFile)) {
unit = current;
break;
}
}
start = System.currentTimeMillis();
- DartCompiler.analyzeDelta(SourceDelta.before(unit.getSource()),
+ DartSource unitSource = (DartSource) unit.getSourceInfo().getSource();
+ DartCompiler.analyzeDelta(SourceDelta.before(unitSource),
enclosingLibraryUnit.getElement(),
coreLibraryUnit.getElement(),
null, -1, -1, config, listener);
- System.err.println("analyzeDelta(" + unit.getSource().getName() + ") took " +
+ System.err.println("analyzeDelta(" + unitSource.getName() + ") took " +
(System.currentTimeMillis() - start) + "ms");
}
}

Powered by Google App Engine
This is Rietveld 408576698