| 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 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 const Array& argument_names() const { return ast_node_.arguments()->names(); } | 577 const Array& argument_names() const { return ast_node_.arguments()->names(); } |
| 578 intptr_t token_pos() const { return ast_node_.token_pos(); } | 578 intptr_t token_pos() const { return ast_node_.token_pos(); } |
| 579 | 579 |
| 580 virtual intptr_t ArgumentCount() const { return arguments_->length(); } | 580 virtual intptr_t ArgumentCount() const { return arguments_->length(); } |
| 581 PushArgumentInstr* ArgumentAt(intptr_t index) const { | 581 PushArgumentInstr* ArgumentAt(intptr_t index) const { |
| 582 return (*arguments_)[index]; | 582 return (*arguments_)[index]; |
| 583 } | 583 } |
| 584 | 584 |
| 585 virtual void PrintOperandsTo(BufferFormatter* f) const; | 585 virtual void PrintOperandsTo(BufferFormatter* f) const; |
| 586 | 586 |
| 587 virtual bool CanDeoptimize() const { return false; } | 587 virtual bool CanDeoptimize() const { return true; } |
| 588 virtual intptr_t ResultCid() const { return kDynamicCid; } | 588 virtual intptr_t ResultCid() const { return kDynamicCid; } |
| 589 | 589 |
| 590 private: | 590 private: |
| 591 const ClosureCallNode& ast_node_; | 591 const ClosureCallNode& ast_node_; |
| 592 ZoneGrowableArray<PushArgumentInstr*>* arguments_; | 592 ZoneGrowableArray<PushArgumentInstr*>* arguments_; |
| 593 | 593 |
| 594 DISALLOW_COPY_AND_ASSIGN(ClosureCallComp); | 594 DISALLOW_COPY_AND_ASSIGN(ClosureCallComp); |
| 595 }; | 595 }; |
| 596 | 596 |
| 597 | 597 |
| (...skipping 2584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3182 ForwardInstructionIterator* current_iterator_; | 3182 ForwardInstructionIterator* current_iterator_; |
| 3183 | 3183 |
| 3184 private: | 3184 private: |
| 3185 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 3185 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 3186 }; | 3186 }; |
| 3187 | 3187 |
| 3188 | 3188 |
| 3189 } // namespace dart | 3189 } // namespace dart |
| 3190 | 3190 |
| 3191 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 3191 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |