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

Unified Diff: dart/compiler/java/com/google/dart/compiler/backend/js/NoOptimizationStrategy.java

Issue 9353015: Remove dartc optimizing backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix minor test issues Created 8 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
Index: dart/compiler/java/com/google/dart/compiler/backend/js/NoOptimizationStrategy.java
diff --git a/dart/compiler/java/com/google/dart/compiler/backend/js/NoOptimizationStrategy.java b/dart/compiler/java/com/google/dart/compiler/backend/js/NoOptimizationStrategy.java
deleted file mode 100644
index 2398d9bf3f16d1912b9f8acd82f7e50273354bf3..0000000000000000000000000000000000000000
--- a/dart/compiler/java/com/google/dart/compiler/backend/js/NoOptimizationStrategy.java
+++ /dev/null
@@ -1,80 +0,0 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-package com.google.dart.compiler.backend.js;
-
-import com.google.dart.compiler.ast.DartArrayAccess;
-import com.google.dart.compiler.ast.DartBinaryExpression;
-import com.google.dart.compiler.ast.DartExpression;
-import com.google.dart.compiler.ast.DartFunctionExpression;
-import com.google.dart.compiler.ast.DartMethodInvocation;
-import com.google.dart.compiler.ast.DartUnaryExpression;
-import com.google.dart.compiler.ast.DartUnit;
-import com.google.dart.compiler.backend.common.TypeHeuristic.FieldKind;
-import com.google.dart.compiler.resolver.ClassElement;
-import com.google.dart.compiler.resolver.ConstructorElement;
-import com.google.dart.compiler.resolver.CoreTypeProvider;
-import com.google.dart.compiler.resolver.Element;
-import com.google.dart.compiler.resolver.FieldElement;
-
-class NoOptimizationStrategy implements OptimizationStrategy {
-
- public NoOptimizationStrategy(DartUnit unit, CoreTypeProvider typeProvider) {
- }
-
- @Override
- public boolean canSkipOperatorShim(DartBinaryExpression x) {
- return false;
- }
-
- @Override
- public boolean canSkipArrayAccessShim(DartArrayAccess array, boolean isAssignee) {
- return false;
- }
-
- @Override
- public FieldElement findOptimizableFieldElementFor(DartExpression expr, FieldKind fieldKind) {
- return null;
- }
-
- @Override
- public Element findElementFor(DartMethodInvocation expr) {
- return (Element) expr.getTargetSymbol();
- }
-
- @Override
- public boolean canSkipOperatorShim(DartUnaryExpression x) {
- return false;
- }
-
- @Override
- public boolean canSkipNormalization(DartBinaryExpression receiver) {
- return false;
- }
-
- @Override
- public boolean canSkipNormalization(DartUnaryExpression expr) {
- return false;
- }
-
- @Override
- public boolean canInlineInitializers(ConstructorElement constructorElement) {
- return false;
- }
-
- @Override
- public boolean canEmitOptimizedClassConstructor(ClassElement classElement) {
- return false;
- }
-
- @Override
- public boolean isWhitelistedNativeField(FieldElement field, FieldKind fieldKind) {
- return false;
- }
-
- @Override
- public boolean canOptimizeFunctionExpressionBind(DartFunctionExpression expr) {
- return false;
- }
-}

Powered by Google App Engine
This is Rietveld 408576698