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

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/interceptor_simplifier.dart

Issue 266913017: Convert property methods into getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 6 years, 7 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: sdk/lib/_internal/compiler/implementation/ssa/interceptor_simplifier.dart
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/interceptor_simplifier.dart b/sdk/lib/_internal/compiler/implementation/ssa/interceptor_simplifier.dart
index f3c309899b9dfaa9d5723f4ddca759fd0a28ada7..61d0a755cf7fa663a06adb31cda906ed6fd3758d 100644
--- a/sdk/lib/_internal/compiler/implementation/ssa/interceptor_simplifier.dart
+++ b/sdk/lib/_internal/compiler/implementation/ssa/interceptor_simplifier.dart
@@ -130,7 +130,7 @@ class SsaSimplifyInterceptors extends HBaseVisitor
// code is completely insensitive to the specific instance subclasses, we
// can use the non-leaf class directly.
ClassElement element = input.instructionType.singleClass(compiler);
- if (element != null && element.isNative()) {
+ if (element != null && element.isNative) {
constantInterceptor = element;
}
}
@@ -139,7 +139,7 @@ class SsaSimplifyInterceptors extends HBaseVisitor
// If we just happen to be in an instance method of the constant
// interceptor, `this` is a shorter alias.
- if (constantInterceptor == work.element.getEnclosingClass() &&
+ if (constantInterceptor == work.element.enclosingClass &&
graph.thisInstruction != null) {
return graph.thisInstruction;
}
@@ -263,13 +263,13 @@ class SsaSimplifyInterceptors extends HBaseVisitor
Selector selector = node.selector;
HInstruction instruction;
- if (selector.isGetter()) {
+ if (selector.isGetter) {
instruction = new HInvokeDynamicGetter(
selector,
node.element,
<HInstruction>[constant, node.inputs[1]],
node.instructionType);
- } else if (selector.isSetter()) {
+ } else if (selector.isSetter) {
instruction = new HInvokeDynamicSetter(
selector,
node.element,

Powered by Google App Engine
This is Rietveld 408576698