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

Unified Diff: pkg/compiler/lib/src/js_emitter/code_emitter_task.dart

Issue 947333004: dart2js: simplify constant expression generation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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: pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
diff --git a/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart b/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
index 7f64f57240087eb3497ec166fc84d133048d6e6a..3572ff417d7d49622697c6f5046a633eea5acfa9 100644
--- a/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
+++ b/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
@@ -417,9 +417,6 @@ abstract class Emitter {
/// Returns the JS code for accessing the embedded [global].
jsAst.Expression generateEmbeddedGlobalAccess(String global);
- /// Returns the JS code for accessing the given [constant].
- jsAst.Expression constantReference(ConstantValue constant);
-
/// Returns the JS function representing the given function.
///
/// The function must be invoked and can not be used as closure.
@@ -447,5 +444,8 @@ abstract class Emitter {
int compareConstants(ConstantValue a, ConstantValue b);
bool isConstantInlinedOrAlreadyEmitted(ConstantValue constant);
+ /// Returns the JS code for accessing the given [constant].
+ jsAst.Expression constantReference(ConstantValue constant);
floitsch 2015/02/24 23:08:48 moved here to live with the other constant-related
Johnni Winther 2015/02/25 11:37:02 Maybe 'generateConstantReference'.
floitsch 2015/02/25 16:35:18 The thing is, that it doesn't always generate a re
Johnni Winther 2015/02/26 08:24:50 I rarely read 'reference' as a verb...
floitsch 2015/02/26 13:11:33 useConstant?
Johnni Winther 2015/02/26 15:01:46 It feels wrong; like registering that we use the c
+
void invalidateCaches();
}

Powered by Google App Engine
This is Rietveld 408576698