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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/emitter.dart

Issue 663813004: dart2js: Remove dead code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update template. Created 6 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/emitter.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/emitter.dart b/sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/emitter.dart
index ff746b282f03c1e6785b835ff63c7a25b8777dcd..cd7f93293aa48c713156205c6365d7a8d4b2f31d 100644
--- a/sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/emitter.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/emitter.dart
@@ -920,15 +920,13 @@ class OldEmitter implements Emitter {
// lazyInitializer(prototype, 'name', fieldName, getterName, initial);
// The name is used for error reporting. The 'initial' must be a
// closure that constructs the initial value.
- jsAst.Expression getter = buildLazyInitializedGetter(element);
- jsAst.Expression init = js('#(#,#,#,#,#,#)',
+ jsAst.Expression init = js('#(#,#,#,#,#)',
[js(lazyInitializerName),
js(isolateProperties),
js.string(element.name),
js.string(namer.getNameX(element)),
js.string(namer.getLazyInitializerName(element)),
- code,
- getter == null ? [] : [getter]]);
+ code]);
buffer.write(jsAst.prettyPrint(init, compiler,
monitor: compiler.dumpInfoTask));
buffer.write("$N");
@@ -936,11 +934,6 @@ class OldEmitter implements Emitter {
}
}
- jsAst.Expression buildLazyInitializedGetter(VariableElement element) {
- // Nothing to do, the 'lazy' function will create the getter.
- return null;
- }
-
bool isConstantInlinedOrAlreadyEmitted(ConstantValue constant) {
if (constant.isFunction) return true; // Already emitted.
if (constant.isPrimitive) return true; // Inlined.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698