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

Unified Diff: pkg/compiler/lib/src/cps_ir/type_mask_system.dart

Issue 1657613004: dart2js cps: More type rules in type propagation. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Rebase Created 4 years, 10 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 | « pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart ('k') | pkg/compiler/lib/src/cps_ir/type_propagation.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/cps_ir/type_mask_system.dart
diff --git a/pkg/compiler/lib/src/cps_ir/type_mask_system.dart b/pkg/compiler/lib/src/cps_ir/type_mask_system.dart
index 0a21c3f657152af2c858ed7ef23181c27822e378..5b30cafa0f93a8876ec464fbec642c576d94894f 100644
--- a/pkg/compiler/lib/src/cps_ir/type_mask_system.dart
+++ b/pkg/compiler/lib/src/cps_ir/type_mask_system.dart
@@ -559,11 +559,8 @@ class TypeMaskSystem implements AbstractValueDomain {
if (isDefinitelyString(type)) {
return stringType;
}
- if (type.satisfies(helpers.typedArrayClass, classWorld)) {
- if (type.satisfies(helpers.typedArrayOfIntClass, classWorld)) {
- return intType;
- }
- return numType;
+ if (type.satisfies(helpers.jsIndexingBehaviorInterface, classWorld)) {
+ return getInvokeReturnType(new Selector.index(), type);
}
return dynamicType;
}
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart ('k') | pkg/compiler/lib/src/cps_ir/type_propagation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698