| 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 1018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1029 return Type::MintType(); | 1029 return Type::MintType(); |
| 1030 } | 1030 } |
| 1031 | 1031 |
| 1032 | 1032 |
| 1033 intptr_t BinaryMintOpComp::ResultCid() const { | 1033 intptr_t BinaryMintOpComp::ResultCid() const { |
| 1034 return kMintCid; | 1034 return kMintCid; |
| 1035 } | 1035 } |
| 1036 | 1036 |
| 1037 | 1037 |
| 1038 RawAbstractType* BinaryDoubleOpComp::CompileType() const { | 1038 RawAbstractType* BinaryDoubleOpComp::CompileType() const { |
| 1039 return Type::DoubleInterface(); | 1039 return Type::Double(); |
| 1040 } | 1040 } |
| 1041 | 1041 |
| 1042 | 1042 |
| 1043 intptr_t BinaryDoubleOpComp::ResultCid() const { | 1043 intptr_t BinaryDoubleOpComp::ResultCid() const { |
| 1044 return kDoubleCid; | 1044 return kDoubleCid; |
| 1045 } | 1045 } |
| 1046 | 1046 |
| 1047 | 1047 |
| 1048 RawAbstractType* UnboxedDoubleBinaryOpComp::CompileType() const { | 1048 RawAbstractType* UnboxedDoubleBinaryOpComp::CompileType() const { |
| 1049 return Type::DoubleInterface(); | 1049 return Type::Double(); |
| 1050 } | 1050 } |
| 1051 | 1051 |
| 1052 | 1052 |
| 1053 RawAbstractType* UnboxDoubleComp::CompileType() const { | 1053 RawAbstractType* UnboxDoubleComp::CompileType() const { |
| 1054 return Type::null(); | 1054 return Type::null(); |
| 1055 } | 1055 } |
| 1056 | 1056 |
| 1057 | 1057 |
| 1058 intptr_t BoxDoubleComp::ResultCid() const { | 1058 intptr_t BoxDoubleComp::ResultCid() const { |
| 1059 return kDoubleCid; | 1059 return kDoubleCid; |
| 1060 } | 1060 } |
| 1061 | 1061 |
| 1062 | 1062 |
| 1063 RawAbstractType* BoxDoubleComp::CompileType() const { | 1063 RawAbstractType* BoxDoubleComp::CompileType() const { |
| 1064 return Type::DoubleInterface(); | 1064 return Type::Double(); |
| 1065 } | 1065 } |
| 1066 | 1066 |
| 1067 | 1067 |
| 1068 RawAbstractType* UnarySmiOpComp::CompileType() const { | 1068 RawAbstractType* UnarySmiOpComp::CompileType() const { |
| 1069 return Type::SmiType(); | 1069 return Type::SmiType(); |
| 1070 } | 1070 } |
| 1071 | 1071 |
| 1072 | 1072 |
| 1073 RawAbstractType* NumberNegateComp::CompileType() const { | 1073 RawAbstractType* NumberNegateComp::CompileType() const { |
| 1074 // Implemented only for doubles. | 1074 // Implemented only for doubles. |
| 1075 return Type::DoubleInterface(); | 1075 return Type::Double(); |
| 1076 } | 1076 } |
| 1077 | 1077 |
| 1078 | 1078 |
| 1079 RawAbstractType* DoubleToDoubleComp::CompileType() const { | 1079 RawAbstractType* DoubleToDoubleComp::CompileType() const { |
| 1080 return Type::DoubleInterface(); | 1080 return Type::Double(); |
| 1081 } | 1081 } |
| 1082 | 1082 |
| 1083 | 1083 |
| 1084 RawAbstractType* SmiToDoubleComp::CompileType() const { | 1084 RawAbstractType* SmiToDoubleComp::CompileType() const { |
| 1085 return Type::DoubleInterface(); | 1085 return Type::Double(); |
| 1086 } | 1086 } |
| 1087 | 1087 |
| 1088 | 1088 |
| 1089 RawAbstractType* CheckClassComp::CompileType() const { | 1089 RawAbstractType* CheckClassComp::CompileType() const { |
| 1090 return AbstractType::null(); | 1090 return AbstractType::null(); |
| 1091 } | 1091 } |
| 1092 | 1092 |
| 1093 | 1093 |
| 1094 RawAbstractType* CheckSmiComp::CompileType() const { | 1094 RawAbstractType* CheckSmiComp::CompileType() const { |
| 1095 return AbstractType::null(); | 1095 return AbstractType::null(); |
| (...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1557 use->AddToEnvUseList(); | 1557 use->AddToEnvUseList(); |
| 1558 } | 1558 } |
| 1559 } | 1559 } |
| 1560 instr->set_env(copy); | 1560 instr->set_env(copy); |
| 1561 } | 1561 } |
| 1562 | 1562 |
| 1563 | 1563 |
| 1564 #undef __ | 1564 #undef __ |
| 1565 | 1565 |
| 1566 } // namespace dart | 1566 } // namespace dart |
| OLD | NEW |