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

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

Issue 2585223002: Access ConstantSystem through ClosedWorld. (Closed)
Patch Set: Created 4 years 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/jump_handler.dart
diff --git a/pkg/compiler/lib/src/ssa/jump_handler.dart b/pkg/compiler/lib/src/ssa/jump_handler.dart
index a50d49662f9877a5e44dca617e6580b04ca45bff..390ca5fe65fb6a3e1ec97304e85f8c5d71d441f6 100644
--- a/pkg/compiler/lib/src/ssa/jump_handler.dart
+++ b/pkg/compiler/lib/src/ssa/jump_handler.dart
@@ -211,7 +211,7 @@ class SwitchCaseJumpHandler extends TargetJumpHandler {
// TODO(het): change the graph 'addConstantXXX' to take a ConstantSystem
// instead of a Compiler.
HInstruction value = builder.graph
- .addConstantInt(targetIndexMap[label.target], builder.compiler);
+ .addConstantInt(targetIndexMap[label.target], builder.closedWorld);
builder.localsHandler.updateLocal(target, value);
assert(label.target.labels.contains(label));

Powered by Google App Engine
This is Rietveld 408576698