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

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

Issue 1348063002: Make the universe parts into small libraries. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: 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
« no previous file with comments | « pkg/compiler/lib/src/serialization/element_serialization.dart ('k') | pkg/compiler/lib/src/ssa/ssa.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/ssa/invoke_dynamic_specializers.dart
diff --git a/pkg/compiler/lib/src/ssa/invoke_dynamic_specializers.dart b/pkg/compiler/lib/src/ssa/invoke_dynamic_specializers.dart
index be3406f3ee4a243141bdc05a13aebef62f34b564..e0c561196445be619ff6fddebe29e5e7b2fac821 100644
--- a/pkg/compiler/lib/src/ssa/invoke_dynamic_specializers.dart
+++ b/pkg/compiler/lib/src/ssa/invoke_dynamic_specializers.dart
@@ -27,11 +27,11 @@ class InvokeDynamicSpecializer {
Operation operation(ConstantSystem constantSystem) => null;
static InvokeDynamicSpecializer lookupSpecializer(Selector selector) {
- if (selector.kind == SelectorKind.INDEX) {
- return selector.name == '[]'
- ? const IndexSpecializer()
- : const IndexAssignSpecializer();
- } else if (selector.kind == SelectorKind.OPERATOR) {
+ if (selector.isIndex) {
+ return const IndexSpecializer();
+ } else if (selector.isIndexSet) {
+ return const IndexAssignSpecializer();
+ } else if (selector.isOperator) {
if (selector.name == 'unary-') {
return const UnaryNegateSpecializer();
} else if (selector.name == '~') {
@@ -69,7 +69,7 @@ class InvokeDynamicSpecializer {
} else if (selector.name == '>=') {
return const GreaterEqualSpecializer();
}
- } else if (selector.kind == SelectorKind.CALL) {
+ } else if (selector.isCall) {
if (selector.argumentCount == 1 && selector.namedArguments.length == 0) {
if (selector.name == 'codeUnitAt') {
return const CodeUnitAtSpecializer();
@@ -238,8 +238,7 @@ abstract class BinaryArithmeticSpecializer extends InvokeDynamicSpecializer {
Compiler compiler) {
if (selector.name == name) return selector;
JavaScriptBackend backend = compiler.backend;
- return new Selector(
- SelectorKind.CALL, new Name(name, backend.interceptorsLibrary),
+ return new Selector.call(new Name(name, backend.interceptorsLibrary),
new CallStructure(selector.argumentCount));
}
}
« no previous file with comments | « pkg/compiler/lib/src/serialization/element_serialization.dart ('k') | pkg/compiler/lib/src/ssa/ssa.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698