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

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

Issue 1305863010: dart2js cps: Store the TypeMask for each primitive in a field. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Rebase Created 5 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/cps_ir/share_interceptors.dart
diff --git a/pkg/compiler/lib/src/cps_ir/share_interceptors.dart b/pkg/compiler/lib/src/cps_ir/share_interceptors.dart
index 27afeb5099fa8dac09331107651046be630f4927..67aa417f23eaa6d6d73c9f938e2470314c5d3dbf 100644
--- a/pkg/compiler/lib/src/cps_ir/share_interceptors.dart
+++ b/pkg/compiler/lib/src/cps_ir/share_interceptors.dart
@@ -6,9 +6,15 @@ library dart2js.cps_ir.share_interceptors;
import 'cps_ir_nodes.dart';
import 'optimizers.dart';
+import 'type_mask_system.dart';
+import '../elements/elements.dart';
import '../constants/values.dart';
-/// Merges calls to `getInterceptor` when one call dominates the other.
+/// Merges calls to `getInterceptor` when one call is in scope of the other.
+///
+/// Also replaces `getInterceptor` calls with an interceptor constant when
+/// the result is known statically, and there is no interceptor already in
+/// scope.
///
/// Should run after [LoopInvariantCodeMotion] so interceptors lifted out from
/// loops can be merged.
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/scalar_replacement.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