| 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 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 637 const Array& argument_names() const { return ast_node_.arguments()->names(); } | 637 const Array& argument_names() const { return ast_node_.arguments()->names(); } |
| 638 intptr_t token_pos() const { return ast_node_.token_pos(); } | 638 intptr_t token_pos() const { return ast_node_.token_pos(); } |
| 639 | 639 |
| 640 virtual intptr_t ArgumentCount() const { return arguments_->length(); } | 640 virtual intptr_t ArgumentCount() const { return arguments_->length(); } |
| 641 PushArgumentInstr* ArgumentAt(intptr_t index) const { | 641 PushArgumentInstr* ArgumentAt(intptr_t index) const { |
| 642 return (*arguments_)[index]; | 642 return (*arguments_)[index]; |
| 643 } | 643 } |
| 644 | 644 |
| 645 virtual void PrintOperandsTo(BufferFormatter* f) const; | 645 virtual void PrintOperandsTo(BufferFormatter* f) const; |
| 646 | 646 |
| 647 virtual bool CanDeoptimize() const { return false; } | 647 virtual bool CanDeoptimize() const { return true; } |
| 648 virtual intptr_t ResultCid() const { return kDynamicCid; } | 648 virtual intptr_t ResultCid() const { return kDynamicCid; } |
| 649 | 649 |
| 650 private: | 650 private: |
| 651 const ClosureCallNode& ast_node_; | 651 const ClosureCallNode& ast_node_; |
| 652 ZoneGrowableArray<PushArgumentInstr*>* arguments_; | 652 ZoneGrowableArray<PushArgumentInstr*>* arguments_; |
| 653 | 653 |
| 654 DISALLOW_COPY_AND_ASSIGN(ClosureCallComp); | 654 DISALLOW_COPY_AND_ASSIGN(ClosureCallComp); |
| 655 }; | 655 }; |
| 656 | 656 |
| 657 | 657 |
| (...skipping 2602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3260 ForwardInstructionIterator* current_iterator_; | 3260 ForwardInstructionIterator* current_iterator_; |
| 3261 | 3261 |
| 3262 private: | 3262 private: |
| 3263 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 3263 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 3264 }; | 3264 }; |
| 3265 | 3265 |
| 3266 | 3266 |
| 3267 } // namespace dart | 3267 } // namespace dart |
| 3268 | 3268 |
| 3269 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 3269 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |