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

Unified Diff: pkg/compiler/lib/src/ssa/optimize.dart

Issue 1153243003: dart2js: Use frequency of occurence to sort metadata indices. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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/ssa/optimize.dart
diff --git a/pkg/compiler/lib/src/ssa/optimize.dart b/pkg/compiler/lib/src/ssa/optimize.dart
index 953a6f48f96a5881dff9bd33dfd6c001729d8e91..a7339f6a1c52419b7950e53b540ffb418bbcf67b 100644
--- a/pkg/compiler/lib/src/ssa/optimize.dart
+++ b/pkg/compiler/lib/src/ssa/optimize.dart
@@ -1037,6 +1037,8 @@ class SsaDeadCodeEliminator extends HGraphVisitor implements OptimizationPhase {
Map<HInstruction, bool> trivialDeadStoreReceivers =
new Maplet<HInstruction, bool>();
bool eliminatedSideEffects = false;
+ JavaScriptBackend get backend => compiler.backend;
karlklose 2015/05/28 09:39:53 Is this getter used?
herhut 2015/06/01 12:09:42 Thanks! Not anymore...
+
SsaDeadCodeEliminator(this.compiler, this.optimizer);
HInstruction zapInstructionCache;
@@ -1044,7 +1046,9 @@ class SsaDeadCodeEliminator extends HGraphVisitor implements OptimizationPhase {
if (zapInstructionCache == null) {
// A constant with no type does not pollute types at phi nodes.
ConstantValue constant =
- new DummyConstantValue(const TypeMask.nonNullEmpty());
+ new DummyConstantValue(
+ DummyConstantKinds.emptyValue,
+ const TypeMask.nonNullEmpty());
zapInstructionCache = analyzer.graph.addConstant(constant, compiler);
}
return zapInstructionCache;

Powered by Google App Engine
This is Rietveld 408576698