| 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 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 555 InstanceCallComp* instance_call() const { return instance_call_; } | 555 InstanceCallComp* instance_call() const { return instance_call_; } |
| 556 | 556 |
| 557 virtual intptr_t InputCount() const { return instance_call()->InputCount(); } | 557 virtual intptr_t InputCount() const { return instance_call()->InputCount(); } |
| 558 virtual Value* InputAt(intptr_t i) const { | 558 virtual Value* InputAt(intptr_t i) const { |
| 559 return instance_call()->ArgumentAt(i); | 559 return instance_call()->ArgumentAt(i); |
| 560 } | 560 } |
| 561 virtual void SetInputAt(intptr_t index, Value* value) { | 561 virtual void SetInputAt(intptr_t index, Value* value) { |
| 562 instance_call()->SetInputAt(index, value); | 562 instance_call()->SetInputAt(index, value); |
| 563 } | 563 } |
| 564 | 564 |
| 565 virtual void PrintOperandsTo(BufferFormatter* f) const { | 565 void PrintTo(BufferFormatter* f) const; |
| 566 instance_call()->PrintOperandsTo(f); | |
| 567 } | |
| 568 | 566 |
| 569 DECLARE_COMPUTATION(PolymorphicInstanceCall) | 567 DECLARE_COMPUTATION(PolymorphicInstanceCall) |
| 570 | 568 |
| 571 private: | 569 private: |
| 572 InstanceCallComp* instance_call_; | 570 InstanceCallComp* instance_call_; |
| 573 | 571 |
| 574 DISALLOW_COPY_AND_ASSIGN(PolymorphicInstanceCallComp); | 572 DISALLOW_COPY_AND_ASSIGN(PolymorphicInstanceCallComp); |
| 575 }; | 573 }; |
| 576 | 574 |
| 577 | 575 |
| (...skipping 1834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2412 const GrowableArray<BlockEntryInstr*>& block_order_; | 2410 const GrowableArray<BlockEntryInstr*>& block_order_; |
| 2413 | 2411 |
| 2414 private: | 2412 private: |
| 2415 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 2413 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 2416 }; | 2414 }; |
| 2417 | 2415 |
| 2418 | 2416 |
| 2419 } // namespace dart | 2417 } // namespace dart |
| 2420 | 2418 |
| 2421 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 2419 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |