| OLD | NEW |
| 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 #include "vm/intermediate_language.h" | 5 #include "vm/intermediate_language.h" |
| 6 | 6 |
| 7 #include "vm/bit_vector.h" | 7 #include "vm/bit_vector.h" |
| 8 #include "vm/dart_entry.h" | 8 #include "vm/dart_entry.h" |
| 9 #include "vm/flow_graph_allocator.h" | 9 #include "vm/flow_graph_allocator.h" |
| 10 #include "vm/flow_graph_builder.h" | 10 #include "vm/flow_graph_builder.h" |
| (...skipping 1358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1369 RawAbstractType* UnboxIntegerInstr::CompileType() const { | 1369 RawAbstractType* UnboxIntegerInstr::CompileType() const { |
| 1370 return Type::null(); | 1370 return Type::null(); |
| 1371 } | 1371 } |
| 1372 | 1372 |
| 1373 | 1373 |
| 1374 RawAbstractType* UnarySmiOpInstr::CompileType() const { | 1374 RawAbstractType* UnarySmiOpInstr::CompileType() const { |
| 1375 return Type::SmiType(); | 1375 return Type::SmiType(); |
| 1376 } | 1376 } |
| 1377 | 1377 |
| 1378 | 1378 |
| 1379 RawAbstractType* DoubleToDoubleInstr::CompileType() const { | |
| 1380 return Type::Double(); | |
| 1381 } | |
| 1382 | |
| 1383 | |
| 1384 RawAbstractType* SmiToDoubleInstr::CompileType() const { | 1379 RawAbstractType* SmiToDoubleInstr::CompileType() const { |
| 1385 return Type::Double(); | 1380 return Type::Double(); |
| 1386 } | 1381 } |
| 1387 | 1382 |
| 1388 | 1383 |
| 1389 RawAbstractType* DoubleToIntegerInstr::CompileType() const { | 1384 RawAbstractType* DoubleToIntegerInstr::CompileType() const { |
| 1390 return Type::IntType(); | 1385 return Type::IntType(); |
| 1391 } | 1386 } |
| 1392 | 1387 |
| 1393 | 1388 |
| (...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2203 ASSERT(!new_min.IsUnknown() && !new_max.IsUnknown()); | 2198 ASSERT(!new_min.IsUnknown() && !new_max.IsUnknown()); |
| 2204 set_overflow(new_min.Overflowed() || new_max.Overflowed()); | 2199 set_overflow(new_min.Overflowed() || new_max.Overflowed()); |
| 2205 | 2200 |
| 2206 range_ = new Range(new_min.Clamp(), new_max.Clamp()); | 2201 range_ = new Range(new_min.Clamp(), new_max.Clamp()); |
| 2207 } | 2202 } |
| 2208 | 2203 |
| 2209 | 2204 |
| 2210 #undef __ | 2205 #undef __ |
| 2211 | 2206 |
| 2212 } // namespace dart | 2207 } // namespace dart |
| OLD | NEW |