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

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

Issue 11262032: Add 'part of' in dart2js code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
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;
6
5 class Interceptors { 7 class Interceptors {
6 Compiler compiler; 8 Compiler compiler;
7 Interceptors(Compiler this.compiler); 9 Interceptors(Compiler this.compiler);
8 10
9 SourceString mapOperatorToMethodName(Operator op) { 11 SourceString mapOperatorToMethodName(Operator op) {
10 String name = op.source.stringValue; 12 String name = op.source.stringValue;
11 if (identical(name, '+')) return const SourceString('add'); 13 if (identical(name, '+')) return const SourceString('add');
12 if (identical(name, '-')) return const SourceString('sub'); 14 if (identical(name, '-')) return const SourceString('sub');
13 if (identical(name, '*')) return const SourceString('mul'); 15 if (identical(name, '*')) return const SourceString('mul');
14 if (identical(name, '/')) return const SourceString('div'); 16 if (identical(name, '/')) return const SourceString('div');
(...skipping 4490 matching lines...) Expand 10 before | Expand all | Expand 10 after
4505 new HSubGraphBlockInformation(elseBranch.graph)); 4507 new HSubGraphBlockInformation(elseBranch.graph));
4506 4508
4507 HBasicBlock conditionStartBlock = conditionBranch.block; 4509 HBasicBlock conditionStartBlock = conditionBranch.block;
4508 conditionStartBlock.setBlockFlow(info, joinBlock); 4510 conditionStartBlock.setBlockFlow(info, joinBlock);
4509 SubGraph conditionGraph = conditionBranch.graph; 4511 SubGraph conditionGraph = conditionBranch.graph;
4510 HIf branch = conditionGraph.end.last; 4512 HIf branch = conditionGraph.end.last;
4511 assert(branch is HIf); 4513 assert(branch is HIf);
4512 branch.blockInformation = conditionStartBlock.blockFlow; 4514 branch.blockInformation = conditionStartBlock.blockFlow;
4513 } 4515 }
4514 } 4516 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/ssa/bailout.dart ('k') | lib/compiler/implementation/ssa/codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698