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

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

Issue 2314703002: Split World usage into open, inference, and closed world. (Closed)
Patch Set: Updated cf. comments Created 4 years, 3 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/kernel_ast_adapter.dart
diff --git a/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart b/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart
index 6c3c8355ebc4c14999b9e2caeb76287d1ea4dae9..deaef9b3668117e3954a2f8ec3783042d5641681 100644
--- a/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart
+++ b/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart
@@ -68,7 +68,7 @@ class KernelAstAdapter {
bool getCanThrow(ir.Procedure procedure) {
FunctionElement function = getElement(procedure);
- return !_compiler.world.getCannotThrow(function);
+ return !_compiler.closedWorld.getCannotThrow(function);
}
TypeMask returnTypeOf(ir.Procedure node) {
@@ -77,7 +77,7 @@ class KernelAstAdapter {
}
SideEffects getSideEffects(ir.Node node) {
- return _compiler.world.getSideEffectsOfElement(getElement(node));
+ return _compiler.closedWorld.getSideEffectsOfElement(getElement(node));
}
// TODO(het): Create the selector directly from the invocation
« no previous file with comments | « pkg/compiler/lib/src/ssa/invoke_dynamic_specializers.dart ('k') | pkg/compiler/lib/src/ssa/locals_handler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698