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

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

Issue 2954123002: Remove special casing of == null (Closed)
Patch Set: Updated cf. comments Created 3 years, 6 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 2a25e1a900fa33e0d59125249bf0b4e6e4696465..ae2cd8d1ce87c468772def4bfe3872a4f9bcdd45 100644
--- a/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart
+++ b/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart
@@ -580,7 +580,12 @@ class KernelAstTypeInferenceMap implements KernelToTypeInferenceMap {
if (send.name.name == '[]=') {
return closedWorld.commonMasks.dynamicType;
}
- return _resultOf(_target).typeOfSend(_astAdapter.getNode(send));
+ ast.Node node = _astAdapter.getNodeOrNull(send);
+ if (node == null) {
+ assert(send.name.name == '==');
+ return closedWorld.commonMasks.dynamicType;
+ }
+ return _resultOf(_target).typeOfSend(node);
}
TypeMask typeOfGet(ir.PropertyGet getter) {
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder_kernel.dart ('k') | tests/compiler/dart2js/kernel/compile_from_dill_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698