| 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 #ifndef VM_INTERMEDIATE_LANGUAGE_H_ | 5 #ifndef VM_INTERMEDIATE_LANGUAGE_H_ |
| 6 #define VM_INTERMEDIATE_LANGUAGE_H_ | 6 #define VM_INTERMEDIATE_LANGUAGE_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 #include "vm/ast.h" | 9 #include "vm/ast.h" |
| 10 #include "vm/growable_array.h" | 10 #include "vm/growable_array.h" |
| (...skipping 2264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2275 return GetDeoptId(); | 2275 return GetDeoptId(); |
| 2276 } | 2276 } |
| 2277 | 2277 |
| 2278 virtual Representation RequiredInputRepresentation(intptr_t idx) const { | 2278 virtual Representation RequiredInputRepresentation(intptr_t idx) const { |
| 2279 ASSERT((idx == 0) || (idx == 1)); | 2279 ASSERT((idx == 0) || (idx == 1)); |
| 2280 if (receiver_class_id() == kDoubleCid) return kUnboxedDouble; | 2280 if (receiver_class_id() == kDoubleCid) return kUnboxedDouble; |
| 2281 if (receiver_class_id() == kMintCid) return kUnboxedMint; | 2281 if (receiver_class_id() == kMintCid) return kUnboxedMint; |
| 2282 return kTagged; | 2282 return kTagged; |
| 2283 } | 2283 } |
| 2284 | 2284 |
| 2285 bool IsPolymorphic() const; |
| 2286 |
| 2285 private: | 2287 private: |
| 2286 const ICData* ic_data_; | 2288 const ICData* ic_data_; |
| 2287 const intptr_t token_pos_; | 2289 const intptr_t token_pos_; |
| 2288 intptr_t receiver_class_id_; // Set by optimizer. | 2290 intptr_t receiver_class_id_; // Set by optimizer. |
| 2289 | 2291 |
| 2290 DISALLOW_COPY_AND_ASSIGN(EqualityCompareInstr); | 2292 DISALLOW_COPY_AND_ASSIGN(EqualityCompareInstr); |
| 2291 }; | 2293 }; |
| 2292 | 2294 |
| 2293 | 2295 |
| 2294 class RelationalOpInstr : public ComparisonInstr { | 2296 class RelationalOpInstr : public ComparisonInstr { |
| (...skipping 1887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4182 ForwardInstructionIterator* current_iterator_; | 4184 ForwardInstructionIterator* current_iterator_; |
| 4183 | 4185 |
| 4184 private: | 4186 private: |
| 4185 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 4187 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 4186 }; | 4188 }; |
| 4187 | 4189 |
| 4188 | 4190 |
| 4189 } // namespace dart | 4191 } // namespace dart |
| 4190 | 4192 |
| 4191 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 4193 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |