| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_COMPILER_INSTRUCTION_H_ | 5 #ifndef V8_COMPILER_INSTRUCTION_H_ |
| 6 #define V8_COMPILER_INSTRUCTION_H_ | 6 #define V8_COMPILER_INSTRUCTION_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 706 : bailout_id_(bailout_id), | 706 : bailout_id_(bailout_id), |
| 707 parameters_count_(parameters_count), | 707 parameters_count_(parameters_count), |
| 708 locals_count_(locals_count), | 708 locals_count_(locals_count), |
| 709 stack_count_(stack_count) {} | 709 stack_count_(stack_count) {} |
| 710 | 710 |
| 711 BailoutId bailout_id() const { return bailout_id_; } | 711 BailoutId bailout_id() const { return bailout_id_; } |
| 712 int parameters_count() { return parameters_count_; } | 712 int parameters_count() { return parameters_count_; } |
| 713 int locals_count() { return locals_count_; } | 713 int locals_count() { return locals_count_; } |
| 714 int stack_count() { return stack_count_; } | 714 int stack_count() { return stack_count_; } |
| 715 | 715 |
| 716 int size() { return parameters_count_ + locals_count_ + stack_count_; } | 716 int size() { |
| 717 return parameters_count_ + locals_count_ + stack_count_ + |
| 718 1; // Includes context. |
| 719 } |
| 717 | 720 |
| 718 private: | 721 private: |
| 719 BailoutId bailout_id_; | 722 BailoutId bailout_id_; |
| 720 int parameters_count_; | 723 int parameters_count_; |
| 721 int locals_count_; | 724 int locals_count_; |
| 722 int stack_count_; | 725 int stack_count_; |
| 723 }; | 726 }; |
| 724 | 727 |
| 725 OStream& operator<<(OStream& os, const Constant& constant); | 728 OStream& operator<<(OStream& os, const Constant& constant); |
| 726 | 729 |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 861 DeoptimizationVector deoptimization_entries_; | 864 DeoptimizationVector deoptimization_entries_; |
| 862 }; | 865 }; |
| 863 | 866 |
| 864 OStream& operator<<(OStream& os, const InstructionSequence& code); | 867 OStream& operator<<(OStream& os, const InstructionSequence& code); |
| 865 | 868 |
| 866 } // namespace compiler | 869 } // namespace compiler |
| 867 } // namespace internal | 870 } // namespace internal |
| 868 } // namespace v8 | 871 } // namespace v8 |
| 869 | 872 |
| 870 #endif // V8_COMPILER_INSTRUCTION_H_ | 873 #endif // V8_COMPILER_INSTRUCTION_H_ |
| OLD | NEW |