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

Side by Side Diff: pkg/compiler/lib/src/ssa/builder_kernel.dart

Issue 2668233002: Remove code supporting incremental compilation in dart2js (Closed)
Patch Set: Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'package:kernel/ast.dart' as ir; 5 import 'package:kernel/ast.dart' as ir;
6 6
7 import '../closure.dart'; 7 import '../closure.dart';
8 import '../common.dart'; 8 import '../common.dart';
9 import '../common/codegen.dart' show CodegenRegistry, CodegenWorkItem; 9 import '../common/codegen.dart' show CodegenRegistry, CodegenWorkItem;
10 import '../common/names.dart'; 10 import '../common/names.dart';
(...skipping 2610 matching lines...) Expand 10 before | Expand all | Expand 10 after
2621 2621
2622 static ir.Class _containingClass(ir.TreeNode node) { 2622 static ir.Class _containingClass(ir.TreeNode node) {
2623 while (node != null) { 2623 while (node != null) {
2624 if (node is ir.Class) return node; 2624 if (node is ir.Class) return node;
2625 node = node.parent; 2625 node = node.parent;
2626 } 2626 }
2627 return null; 2627 return null;
2628 } 2628 }
2629 2629
2630 HInstruction _buildInvokeSuper( 2630 HInstruction _buildInvokeSuper(
2631 ir.Expression invocation, List<HInstruction> arguments) { 2631 ir.Expression invocation, List<HInstruction> arguments) {
2632 // Invocation is either a method invocation or a property get/set. 2632 // Invocation is either a method invocation or a property get/set.
2633 // TODO(efortuna): Common interface? 2633 // TODO(efortuna): Common interface?
2634 // TODO(efortuna): Add source information. 2634 // TODO(efortuna): Add source information.
2635 Selector selector = astAdapter.getSelector(invocation); 2635 Selector selector = astAdapter.getSelector(invocation);
2636 HInstruction receiver = localsHandler.readThis(); 2636 HInstruction receiver = localsHandler.readThis();
2637 ir.Class surroundingClass = _containingClass(invocation); 2637 ir.Class surroundingClass = _containingClass(invocation);
2638 2638
2639 List<HInstruction> inputs = <HInstruction>[]; 2639 List<HInstruction> inputs = <HInstruction>[];
2640 if (astAdapter.isIntercepted(invocation)) { 2640 if (astAdapter.isIntercepted(invocation)) {
2641 inputs.add(_interceptorFor(receiver)); 2641 inputs.add(_interceptorFor(receiver));
2642 } 2642 }
2643 inputs.add(receiver); 2643 inputs.add(receiver);
2644 inputs.addAll(arguments); 2644 inputs.addAll(arguments);
2645 2645
2646 ir.Member interfaceTarget = invocation is ir.SuperMethodInvocation ? 2646 ir.Member interfaceTarget = invocation is ir.SuperMethodInvocation
2647 (invocation as ir.SuperMethodInvocation).interfaceTarget : 2647 ? (invocation as ir.SuperMethodInvocation).interfaceTarget
2648 (invocation as ir.SuperPropertyGet).interfaceTarget; 2648 : (invocation as ir.SuperPropertyGet).interfaceTarget;
2649 2649
2650 HInstruction instruction = new HInvokeSuper( 2650 HInstruction instruction = new HInvokeSuper(
2651 astAdapter.getMember(interfaceTarget), 2651 astAdapter.getMember(interfaceTarget),
2652 astAdapter.getClass(surroundingClass), 2652 astAdapter.getClass(surroundingClass),
2653 selector, 2653 selector,
2654 inputs, 2654 inputs,
2655 astAdapter.returnTypeOf(interfaceTarget), 2655 astAdapter.returnTypeOf(interfaceTarget),
2656 null, 2656 null,
2657 isSetter: selector.isSetter || selector.isIndexSet); 2657 isSetter: selector.isSetter || selector.isIndexSet);
2658 instruction.sideEffects = 2658 instruction.sideEffects =
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
3108 enterBlock.setBlockFlow( 3108 enterBlock.setBlockFlow(
3109 new HTryBlockInformation( 3109 new HTryBlockInformation(
3110 kernelBuilder.wrapStatementGraph(bodyGraph), 3110 kernelBuilder.wrapStatementGraph(bodyGraph),
3111 exception, 3111 exception,
3112 kernelBuilder.wrapStatementGraph(catchGraph), 3112 kernelBuilder.wrapStatementGraph(catchGraph),
3113 kernelBuilder.wrapStatementGraph(finallyGraph)), 3113 kernelBuilder.wrapStatementGraph(finallyGraph)),
3114 exitBlock); 3114 exitBlock);
3115 kernelBuilder.inTryStatement = previouslyInTryStatement; 3115 kernelBuilder.inTryStatement = previouslyInTryStatement;
3116 } 3116 }
3117 } 3117 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/serialization/modelz.dart ('k') | pkg/compiler/lib/src/ssa/interceptor_simplifier.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698