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

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

Issue 11453032: Reapply class/method/field minification (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changes to bring patch up to date and fix bugs Created 8 years 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; 5 part of ssa;
6 6
7 /** 7 /**
8 * A special element for the extra parameter taken by intercepted 8 * A special element for the extra parameter taken by intercepted
9 * methods. We need to override [Element.computeType] because our 9 * methods. We need to override [Element.computeType] because our
10 * optimizers may look at its declared type. 10 * optimizers may look at its declared type.
(...skipping 3130 matching lines...) Expand 10 before | Expand all | Expand 10 after
3141 // TODO(ngeoffray): Match the VM behavior and throw an 3141 // TODO(ngeoffray): Match the VM behavior and throw an
3142 // exception at runtime. 3142 // exception at runtime.
3143 compiler.cancel('Unimplemented unresolved type variable', 3143 compiler.cancel('Unimplemented unresolved type variable',
3144 node: currentNode); 3144 node: currentNode);
3145 } 3145 }
3146 } 3146 }
3147 3147
3148 /** 3148 /**
3149 * Helper to build an instruction that builds the string representation for 3149 * Helper to build an instruction that builds the string representation for
3150 * this type, where type variables are substituted by their runtime value. 3150 * this type, where type variables are substituted by their runtime value.
3151 * Two different types must have two different string representations, so
3152 * we use the mangled, uniquified names here.
3151 * 3153 *
3152 * Examples: 3154 * Examples:
3153 * Type Template Inputs 3155 * Type Template Inputs
3154 * int 'int' [] 3156 * int 'int' []
3155 * C<int, int> 'C<int, int>' [] 3157 * C<int, int> 'C<int, int>' []
3156 * Var # [getRuntimeType(this).Var] 3158 * Var # [getRuntimeType(this).Var]
3157 * C<int, D<Var>> 'C<int, D<' + # + '>>' [getRuntimeType(this).Var] 3159 * C<int, D<Var>> 'C<int, D<' + # + '>>' [getRuntimeType(this).Var]
3158 */ 3160 */
3159 void buildTypeString(DartType type, {isInQuotes: false}) { 3161 void buildTypeString(DartType type, {isInQuotes: false}) {
3160 if (type is TypeVariableType) { 3162 if (type is TypeVariableType) {
(...skipping 1800 matching lines...) Expand 10 before | Expand all | Expand 10 after
4961 new HSubGraphBlockInformation(elseBranch.graph)); 4963 new HSubGraphBlockInformation(elseBranch.graph));
4962 4964
4963 HBasicBlock conditionStartBlock = conditionBranch.block; 4965 HBasicBlock conditionStartBlock = conditionBranch.block;
4964 conditionStartBlock.setBlockFlow(info, joinBlock); 4966 conditionStartBlock.setBlockFlow(info, joinBlock);
4965 SubGraph conditionGraph = conditionBranch.graph; 4967 SubGraph conditionGraph = conditionBranch.graph;
4966 HIf branch = conditionGraph.end.last; 4968 HIf branch = conditionGraph.end.last;
4967 assert(branch is HIf); 4969 assert(branch is HIf);
4968 branch.blockInformation = conditionStartBlock.blockFlow; 4970 branch.blockInformation = conditionStartBlock.blockFlow;
4969 } 4971 }
4970 } 4972 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698