| 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 991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1002 return Type::MintType(); | 1002 return Type::MintType(); |
| 1003 } | 1003 } |
| 1004 | 1004 |
| 1005 | 1005 |
| 1006 intptr_t BinaryMintOpComp::ResultCid() const { | 1006 intptr_t BinaryMintOpComp::ResultCid() const { |
| 1007 return kMintCid; | 1007 return kMintCid; |
| 1008 } | 1008 } |
| 1009 | 1009 |
| 1010 | 1010 |
| 1011 RawAbstractType* BinaryDoubleOpComp::CompileType() const { | 1011 RawAbstractType* BinaryDoubleOpComp::CompileType() const { |
| 1012 return Type::DoubleInterface(); | 1012 return Type::Double(); |
| 1013 } | 1013 } |
| 1014 | 1014 |
| 1015 | 1015 |
| 1016 intptr_t BinaryDoubleOpComp::ResultCid() const { | 1016 intptr_t BinaryDoubleOpComp::ResultCid() const { |
| 1017 return kDoubleCid; | 1017 return kDoubleCid; |
| 1018 } | 1018 } |
| 1019 | 1019 |
| 1020 | 1020 |
| 1021 RawAbstractType* UnboxedDoubleBinaryOpComp::CompileType() const { | 1021 RawAbstractType* UnboxedDoubleBinaryOpComp::CompileType() const { |
| 1022 return Type::DoubleInterface(); | 1022 return Type::Double(); |
| 1023 } | 1023 } |
| 1024 | 1024 |
| 1025 | 1025 |
| 1026 RawAbstractType* UnboxDoubleComp::CompileType() const { | 1026 RawAbstractType* UnboxDoubleComp::CompileType() const { |
| 1027 return Type::null(); | 1027 return Type::null(); |
| 1028 } | 1028 } |
| 1029 | 1029 |
| 1030 | 1030 |
| 1031 intptr_t BoxDoubleComp::ResultCid() const { | 1031 intptr_t BoxDoubleComp::ResultCid() const { |
| 1032 return kDoubleCid; | 1032 return kDoubleCid; |
| 1033 } | 1033 } |
| 1034 | 1034 |
| 1035 | 1035 |
| 1036 RawAbstractType* BoxDoubleComp::CompileType() const { | 1036 RawAbstractType* BoxDoubleComp::CompileType() const { |
| 1037 return Type::DoubleInterface(); | 1037 return Type::Double(); |
| 1038 } | 1038 } |
| 1039 | 1039 |
| 1040 | 1040 |
| 1041 RawAbstractType* UnarySmiOpComp::CompileType() const { | 1041 RawAbstractType* UnarySmiOpComp::CompileType() const { |
| 1042 return Type::SmiType(); | 1042 return Type::SmiType(); |
| 1043 } | 1043 } |
| 1044 | 1044 |
| 1045 | 1045 |
| 1046 RawAbstractType* NumberNegateComp::CompileType() const { | 1046 RawAbstractType* NumberNegateComp::CompileType() const { |
| 1047 // Implemented only for doubles. | 1047 // Implemented only for doubles. |
| 1048 return Type::DoubleInterface(); | 1048 return Type::Double(); |
| 1049 } | 1049 } |
| 1050 | 1050 |
| 1051 | 1051 |
| 1052 RawAbstractType* DoubleToDoubleComp::CompileType() const { | 1052 RawAbstractType* DoubleToDoubleComp::CompileType() const { |
| 1053 return Type::DoubleInterface(); | 1053 return Type::Double(); |
| 1054 } | 1054 } |
| 1055 | 1055 |
| 1056 | 1056 |
| 1057 RawAbstractType* SmiToDoubleComp::CompileType() const { | 1057 RawAbstractType* SmiToDoubleComp::CompileType() const { |
| 1058 return Type::DoubleInterface(); | 1058 return Type::Double(); |
| 1059 } | 1059 } |
| 1060 | 1060 |
| 1061 | 1061 |
| 1062 RawAbstractType* CheckClassComp::CompileType() const { | 1062 RawAbstractType* CheckClassComp::CompileType() const { |
| 1063 return AbstractType::null(); | 1063 return AbstractType::null(); |
| 1064 } | 1064 } |
| 1065 | 1065 |
| 1066 | 1066 |
| 1067 RawAbstractType* CheckSmiComp::CompileType() const { | 1067 RawAbstractType* CheckSmiComp::CompileType() const { |
| 1068 return AbstractType::null(); | 1068 return AbstractType::null(); |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1523 value->set_use_index(i); | 1523 value->set_use_index(i); |
| 1524 value->AddToEnvUseList(); | 1524 value->AddToEnvUseList(); |
| 1525 } | 1525 } |
| 1526 instr->set_env(copy); | 1526 instr->set_env(copy); |
| 1527 } | 1527 } |
| 1528 | 1528 |
| 1529 | 1529 |
| 1530 #undef __ | 1530 #undef __ |
| 1531 | 1531 |
| 1532 } // namespace dart | 1532 } // namespace dart |
| OLD | NEW |