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

Side by Side Diff: lib/compiler/implementation/ssa/builder.dart

Issue 11361036: Revert instance inlining. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update cf. comments Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | tests/language/instance_inline_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 part of ssa; 5 part of ssa;
6 6
7 class Interceptors { 7 class Interceptors {
8 Compiler compiler; 8 Compiler compiler;
9 Interceptors(Compiler this.compiler); 9 Interceptors(Compiler this.compiler);
10 10
(...skipping 2555 matching lines...) Expand 10 before | Expand all | Expand 10 after
2566 } 2566 }
2567 2567
2568 if (node.receiver == null) { 2568 if (node.receiver == null) {
2569 inputs.add(localsHandler.readThis()); 2569 inputs.add(localsHandler.readThis());
2570 } else { 2570 } else {
2571 visit(node.receiver); 2571 visit(node.receiver);
2572 inputs.add(pop()); 2572 inputs.add(pop());
2573 } 2573 }
2574 2574
2575 addDynamicSendArgumentsToList(node, inputs); 2575 addDynamicSendArgumentsToList(node, inputs);
2576
2576 // The first entry in the inputs list is the receiver. 2577 // The first entry in the inputs list is the receiver.
2577 pushWithPosition(new HInvokeDynamicMethod(selector, inputs), node); 2578 pushWithPosition(new HInvokeDynamicMethod(selector, inputs), node);
2578 2579
2579 if (isNotEquals) { 2580 if (isNotEquals) {
2580 HNot not = new HNot(popBoolified()); 2581 HNot not = new HNot(popBoolified());
2581 push(not); 2582 push(not);
2582 } 2583 }
2583 } 2584 }
2584 2585
2585 visitClosureSend(Send node) { 2586 visitClosureSend(Send node) {
(...skipping 2023 matching lines...) Expand 10 before | Expand all | Expand 10 after
4609 new HSubGraphBlockInformation(elseBranch.graph)); 4610 new HSubGraphBlockInformation(elseBranch.graph));
4610 4611
4611 HBasicBlock conditionStartBlock = conditionBranch.block; 4612 HBasicBlock conditionStartBlock = conditionBranch.block;
4612 conditionStartBlock.setBlockFlow(info, joinBlock); 4613 conditionStartBlock.setBlockFlow(info, joinBlock);
4613 SubGraph conditionGraph = conditionBranch.graph; 4614 SubGraph conditionGraph = conditionBranch.graph;
4614 HIf branch = conditionGraph.end.last; 4615 HIf branch = conditionGraph.end.last;
4615 assert(branch is HIf); 4616 assert(branch is HIf);
4616 branch.blockInformation = conditionStartBlock.blockFlow; 4617 branch.blockInformation = conditionStartBlock.blockFlow;
4617 } 4618 }
4618 } 4619 }
OLDNEW
« no previous file with comments | « no previous file | tests/language/instance_inline_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698