OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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_X64_CODEGEN_X64_H_ | 5 #ifndef V8_X64_CODEGEN_X64_H_ |
6 #define V8_X64_CODEGEN_X64_H_ | 6 #define V8_X64_CODEGEN_X64_H_ |
7 | 7 |
8 #include "src/ast.h" | 8 #include "src/ast.h" |
9 #include "src/macro-assembler.h" | 9 #include "src/macro-assembler.h" |
10 | 10 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 parameter_count.immediate() : 0), | 92 parameter_count.immediate() : 0), |
93 receiver_mode_(receiver_mode), | 93 receiver_mode_(receiver_mode), |
94 extra_displacement_to_last_argument_( | 94 extra_displacement_to_last_argument_( |
95 extra_displacement_to_last_argument) { } | 95 extra_displacement_to_last_argument) { } |
96 | 96 |
97 Operand GetArgumentOperand(int index); | 97 Operand GetArgumentOperand(int index); |
98 Operand GetReceiverOperand() { | 98 Operand GetReceiverOperand() { |
99 DCHECK(receiver_mode_ == ARGUMENTS_CONTAIN_RECEIVER); | 99 DCHECK(receiver_mode_ == ARGUMENTS_CONTAIN_RECEIVER); |
100 return GetArgumentOperand(0); | 100 return GetArgumentOperand(0); |
101 } | 101 } |
| 102 const Register& argument_count_reg() const { return argument_count_reg_; } |
102 | 103 |
103 private: | 104 private: |
104 const Register base_reg_; | 105 const Register base_reg_; |
105 const Register argument_count_reg_; | 106 const Register argument_count_reg_; |
106 const int argument_count_immediate_; | 107 const int argument_count_immediate_; |
107 const StackArgumentsAccessorReceiverMode receiver_mode_; | 108 const StackArgumentsAccessorReceiverMode receiver_mode_; |
108 const int extra_displacement_to_last_argument_; | 109 const int extra_displacement_to_last_argument_; |
109 | |
110 DISALLOW_IMPLICIT_CONSTRUCTORS(StackArgumentsAccessor); | |
111 }; | 110 }; |
112 | 111 |
113 | 112 |
114 } } // namespace v8::internal | 113 } } // namespace v8::internal |
115 | 114 |
116 #endif // V8_X64_CODEGEN_X64_H_ | 115 #endif // V8_X64_CODEGEN_X64_H_ |
OLD | NEW |