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

Side by Side Diff: lib/compiler/implementation/ssa/types.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 abstract class HType { 7 abstract class HType {
6 const HType(); 8 const HType();
7 9
8 /** 10 /**
9 * Returns an [HType] that represents [type] and all types that have 11 * Returns an [HType] that represents [type] and all types that have
10 * [type] as supertype. 12 * [type] as supertype.
11 */ 13 */
12 factory HType.fromBoundedType(DartType type, 14 factory HType.fromBoundedType(DartType type,
13 Compiler compiler, 15 Compiler compiler,
14 [bool canBeNull = false]) { 16 [bool canBeNull = false]) {
(...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 operator [](HInstruction instruction) { 869 operator [](HInstruction instruction) {
868 HType result = _map[instruction]; 870 HType result = _map[instruction];
869 if (result == null) return instruction.guaranteedType; 871 if (result == null) return instruction.guaranteedType;
870 return result; 872 return result;
871 } 873 }
872 874
873 operator []=(HInstruction instruction, HType value) { 875 operator []=(HInstruction instruction, HType value) {
874 _map[instruction] = value; 876 _map[instruction] = value;
875 } 877 }
876 } 878 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/ssa/optimize.dart ('k') | lib/compiler/implementation/ssa/types_propagation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698