| 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_builder.h" | 9 #include "vm/flow_graph_builder.h" |
| 10 #include "vm/flow_graph_compiler.h" | 10 #include "vm/flow_graph_compiler.h" |
| (...skipping 966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 977 return AbstractType::null(); | 977 return AbstractType::null(); |
| 978 } | 978 } |
| 979 | 979 |
| 980 | 980 |
| 981 RawAbstractType* BinaryOpComp::StaticType() const { | 981 RawAbstractType* BinaryOpComp::StaticType() const { |
| 982 // TODO(srdjan): Compute based on input types (ICData). | 982 // TODO(srdjan): Compute based on input types (ICData). |
| 983 return Type::DynamicType(); | 983 return Type::DynamicType(); |
| 984 } | 984 } |
| 985 | 985 |
| 986 | 986 |
| 987 RawAbstractType* DoubleBinaryOpComp::StaticType() const { |
| 988 return Type::DoubleInterface(); |
| 989 } |
| 990 |
| 991 |
| 987 RawAbstractType* UnarySmiOpComp::StaticType() const { | 992 RawAbstractType* UnarySmiOpComp::StaticType() const { |
| 988 return Type::IntInterface(); | 993 return Type::IntInterface(); |
| 989 } | 994 } |
| 990 | 995 |
| 991 | 996 |
| 992 RawAbstractType* NumberNegateComp::StaticType() const { | 997 RawAbstractType* NumberNegateComp::StaticType() const { |
| 993 return Type::NumberInterface(); | 998 return Type::NumberInterface(); |
| 994 } | 999 } |
| 995 | 1000 |
| 996 | 1001 |
| (...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1442 if (compiler->is_ssa()) { | 1447 if (compiler->is_ssa()) { |
| 1443 ASSERT(locs()->in(0).IsRegister()); | 1448 ASSERT(locs()->in(0).IsRegister()); |
| 1444 __ PushRegister(locs()->in(0).reg()); | 1449 __ PushRegister(locs()->in(0).reg()); |
| 1445 } | 1450 } |
| 1446 } | 1451 } |
| 1447 | 1452 |
| 1448 | 1453 |
| 1449 #undef __ | 1454 #undef __ |
| 1450 | 1455 |
| 1451 } // namespace dart | 1456 } // namespace dart |
| OLD | NEW |