| 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 1184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1195 case Token::kBIT_AND: | 1195 case Token::kBIT_AND: |
| 1196 case Token::kBIT_OR: | 1196 case Token::kBIT_OR: |
| 1197 case Token::kBIT_XOR: | 1197 case Token::kBIT_XOR: |
| 1198 return false; | 1198 return false; |
| 1199 default: | 1199 default: |
| 1200 return overflow_; | 1200 return overflow_; |
| 1201 } | 1201 } |
| 1202 } | 1202 } |
| 1203 | 1203 |
| 1204 | 1204 |
| 1205 RawAbstractType* UnboxedMintBinaryOpInstr::CompileType() const { | 1205 RawAbstractType* BinaryMintOpInstr::CompileType() const { |
| 1206 return Type::IntType(); | 1206 return Type::IntType(); |
| 1207 } | 1207 } |
| 1208 | 1208 |
| 1209 | 1209 |
| 1210 intptr_t UnboxedMintBinaryOpInstr::ResultCid() const { | 1210 intptr_t BinaryMintOpInstr::ResultCid() const { |
| 1211 return kDynamicCid; | 1211 return kDynamicCid; |
| 1212 } | 1212 } |
| 1213 | 1213 |
| 1214 | 1214 |
| 1215 RawAbstractType* UnboxedMintUnaryOpInstr::CompileType() const { | 1215 RawAbstractType* UnaryMintOpInstr::CompileType() const { |
| 1216 return Type::IntType(); | 1216 return Type::IntType(); |
| 1217 } | 1217 } |
| 1218 | 1218 |
| 1219 | 1219 |
| 1220 intptr_t UnboxedMintUnaryOpInstr::ResultCid() const { | 1220 intptr_t UnaryMintOpInstr::ResultCid() const { |
| 1221 return kDynamicCid; | 1221 return kDynamicCid; |
| 1222 } | 1222 } |
| 1223 | 1223 |
| 1224 | 1224 |
| 1225 RawAbstractType* UnboxedDoubleBinaryOpInstr::CompileType() const { | 1225 RawAbstractType* BinaryDoubleOpInstr::CompileType() const { |
| 1226 return Type::Double(); | 1226 return Type::Double(); |
| 1227 } | 1227 } |
| 1228 | 1228 |
| 1229 | 1229 |
| 1230 intptr_t BinaryDoubleOpInstr::ResultCid() const { |
| 1231 // The output is not an instance but when it is boxed it becomes double. |
| 1232 return kDoubleCid; |
| 1233 } |
| 1234 |
| 1235 |
| 1230 RawAbstractType* MathSqrtInstr::CompileType() const { | 1236 RawAbstractType* MathSqrtInstr::CompileType() const { |
| 1231 return Type::Double(); | 1237 return Type::Double(); |
| 1232 } | 1238 } |
| 1233 | 1239 |
| 1234 | 1240 |
| 1235 RawAbstractType* UnboxDoubleInstr::CompileType() const { | 1241 RawAbstractType* UnboxDoubleInstr::CompileType() const { |
| 1236 return Type::null(); | 1242 return Type::null(); |
| 1237 } | 1243 } |
| 1238 | 1244 |
| 1239 | 1245 |
| (...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2063 new_max = new_max.Clamp(); | 2069 new_max = new_max.Clamp(); |
| 2064 } | 2070 } |
| 2065 | 2071 |
| 2066 return Range::Update(&range_, new_min, new_max); | 2072 return Range::Update(&range_, new_min, new_max); |
| 2067 } | 2073 } |
| 2068 | 2074 |
| 2069 | 2075 |
| 2070 #undef __ | 2076 #undef __ |
| 2071 | 2077 |
| 2072 } // namespace dart | 2078 } // namespace dart |
| OLD | NEW |