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

Side by Side Diff: lib/compiler/implementation/ssa/value_range_analyzer.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 /** 7 /**
6 * A [Value] represents both symbolic values like the value of a 8 * A [Value] represents both symbolic values like the value of a
7 * parameter, or the length of an array, and concrete values, like 9 * parameter, or the length of an array, and concrete values, like
8 * constants. 10 * constants.
9 */ 11 */
10 abstract class Value { 12 abstract class Value {
11 const Value(); 13 const Value();
12 14
13 Value operator +(Value other); 15 Value operator +(Value other);
14 Value operator -(Value other); 16 Value operator -(Value other);
(...skipping 922 matching lines...) Expand 10 before | Expand all | Expand 10 after
937 if (instruction is HPhi && !instruction.block.isLoopHeader()) { 939 if (instruction is HPhi && !instruction.block.isLoopHeader()) {
938 HInstruction result = unwrap(instruction.inputs[0]); 940 HInstruction result = unwrap(instruction.inputs[0]);
939 for (int i = 1; i < instruction.inputs.length; i++) { 941 for (int i = 1; i < instruction.inputs.length; i++) {
940 if (result != unwrap(instruction.inputs[i])) return instruction; 942 if (result != unwrap(instruction.inputs[i])) return instruction;
941 } 943 }
942 return result; 944 return result;
943 } 945 }
944 return instruction; 946 return instruction;
945 } 947 }
946 } 948 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/ssa/validate.dart ('k') | lib/compiler/implementation/ssa/value_set.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698