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

Side by Side Diff: pkg/compiler/lib/src/ssa/value_range_analyzer.dart

Issue 2619813005: Use entities in various ssa helpers. (Closed)
Patch Set: Fix comments. Created 3 years, 11 months 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
« no previous file with comments | « pkg/compiler/lib/src/ssa/types_propagation.dart ('k') | no next file » | 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 import '../constant_system_dart.dart'; 5 import '../constant_system_dart.dart';
6 import '../constants/constant_system.dart'; 6 import '../constants/constant_system.dart';
7 import '../constants/values.dart'; 7 import '../constants/values.dart';
8 import '../js_backend/js_backend.dart';
9 import '../js_backend/backend_helpers.dart'; 8 import '../js_backend/backend_helpers.dart';
10 import '../world.dart' show ClosedWorld; 9 import '../world.dart' show ClosedWorld;
11 import 'nodes.dart'; 10 import 'nodes.dart';
12 import 'optimize.dart'; 11 import 'optimize.dart';
13 12
14 class ValueRangeInfo { 13 class ValueRangeInfo {
15 final ConstantSystem constantSystem; 14 final ConstantSystem constantSystem;
16 15
17 IntValue intZero; 16 IntValue intZero;
18 IntValue intOne; 17 IntValue intOne;
(...skipping 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after
1106 } 1105 }
1107 1106
1108 Range handleBinaryOperation(HBinaryArithmetic instruction) { 1107 Range handleBinaryOperation(HBinaryArithmetic instruction) {
1109 Range leftRange = visit(instruction.left); 1108 Range leftRange = visit(instruction.left);
1110 Range rightRange = visit(instruction.right); 1109 Range rightRange = visit(instruction.right);
1111 if (leftRange == null || rightRange == null) return null; 1110 if (leftRange == null || rightRange == null) return null;
1112 BinaryOperation operation = instruction.operation(info.constantSystem); 1111 BinaryOperation operation = instruction.operation(info.constantSystem);
1113 return operation.apply(leftRange, rightRange); 1112 return operation.apply(leftRange, rightRange);
1114 } 1113 }
1115 } 1114 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ssa/types_propagation.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698