| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 2462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2473 dst_type_(AbstractType::ZoneHandle(dst_type.raw())), | 2473 dst_type_(AbstractType::ZoneHandle(dst_type.raw())), |
| 2474 dst_name_(dst_name) { | 2474 dst_name_(dst_name) { |
| 2475 ASSERT(!dst_type.IsNull()); | 2475 ASSERT(!dst_type.IsNull()); |
| 2476 ASSERT(!dst_name.IsNull()); | 2476 ASSERT(!dst_name.IsNull()); |
| 2477 SetInputAt(0, value); | 2477 SetInputAt(0, value); |
| 2478 SetInputAt(1, instantiator); | 2478 SetInputAt(1, instantiator); |
| 2479 SetInputAt(2, instantiator_type_arguments); | 2479 SetInputAt(2, instantiator_type_arguments); |
| 2480 } | 2480 } |
| 2481 | 2481 |
| 2482 DECLARE_INSTRUCTION(AssertAssignable) | 2482 DECLARE_INSTRUCTION(AssertAssignable) |
| 2483 virtual CompileType* ComputeInitialType() const; | 2483 virtual CompileType ComputeType() const; |
| 2484 virtual bool RecomputeType(); | 2484 virtual bool RecomputeType(); |
| 2485 | 2485 |
| 2486 Value* value() const { return inputs_[0]; } | 2486 Value* value() const { return inputs_[0]; } |
| 2487 Value* instantiator() const { return inputs_[1]; } | 2487 Value* instantiator() const { return inputs_[1]; } |
| 2488 Value* instantiator_type_arguments() const { return inputs_[2]; } | 2488 Value* instantiator_type_arguments() const { return inputs_[2]; } |
| 2489 | 2489 |
| 2490 virtual intptr_t token_pos() const { return token_pos_; } | 2490 virtual intptr_t token_pos() const { return token_pos_; } |
| 2491 const AbstractType& dst_type() const { return dst_type_; } | 2491 const AbstractType& dst_type() const { return dst_type_; } |
| 2492 void set_dst_type(const AbstractType& dst_type) { | 2492 void set_dst_type(const AbstractType& dst_type) { |
| 2493 dst_type_ = dst_type.raw(); | 2493 dst_type_ = dst_type.raw(); |
| (...skipping 5274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7768 Isolate* isolate, bool opt) const { \ | 7768 Isolate* isolate, bool opt) const { \ |
| 7769 UNIMPLEMENTED(); \ | 7769 UNIMPLEMENTED(); \ |
| 7770 return NULL; \ | 7770 return NULL; \ |
| 7771 } \ | 7771 } \ |
| 7772 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } | 7772 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } |
| 7773 | 7773 |
| 7774 | 7774 |
| 7775 } // namespace dart | 7775 } // namespace dart |
| 7776 | 7776 |
| 7777 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 7777 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |