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

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

Issue 1571433002: dart2js cps: Compute intercepted classes in optimize_interceptors. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: JSArray and JSInt are special Created 4 years, 11 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/optimizers.dart
diff --git a/pkg/compiler/lib/src/cps_ir/optimizers.dart b/pkg/compiler/lib/src/cps_ir/optimizers.dart
index 0ca2173d78ae772b7b41453aa1ff8c3feae67487..45606ecc86557be7f1080835c501c9c68ed678ab 100644
--- a/pkg/compiler/lib/src/cps_ir/optimizers.dart
+++ b/pkg/compiler/lib/src/cps_ir/optimizers.dart
@@ -6,6 +6,8 @@ library dart2js.cps_ir.optimizers;
import 'cps_ir_nodes.dart';
import '../constants/values.dart';
+import '../common/names.dart';
+import '../universe/selector.dart';
export 'type_propagation.dart' show TypePropagator;
export 'scalar_replacement.dart' show ScalarReplacer;
@@ -51,3 +53,8 @@ bool isFalsyConstant(ConstantValue value) {
bool isTruthyConstant(ConstantValue value, {bool strict: false}) {
return strict ? value.isTrue : !isFalsyConstant(value);
}
+
+/// Selector that do not throw when invoked on the null class.
+final List<Selector> selectorsOnNull = <Selector>[
sra1 2016/01/08 03:24:04 Could this go in the World or somewhere? It is wid
asgerf 2016/01/08 17:17:48 I don't have a strong opinion about where to put i
+ Selectors.equals, Selectors.hashCode_, Selectors.runtimeType_,
+ Selectors.toString_];

Powered by Google App Engine
This is Rietveld 408576698