OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 138 matching lines...) Loading... |
149 parameter_count.reg() : no_reg), | 149 parameter_count.reg() : no_reg), |
150 argument_count_immediate_(parameter_count.is_immediate() ? | 150 argument_count_immediate_(parameter_count.is_immediate() ? |
151 parameter_count.immediate() : 0), | 151 parameter_count.immediate() : 0), |
152 receiver_mode_(receiver_mode), | 152 receiver_mode_(receiver_mode), |
153 extra_displacement_to_last_argument_( | 153 extra_displacement_to_last_argument_( |
154 extra_displacement_to_last_argument) { } | 154 extra_displacement_to_last_argument) { } |
155 | 155 |
156 Operand GetArgumentOperand(int index); | 156 Operand GetArgumentOperand(int index); |
157 Operand GetReceiverOperand() { | 157 Operand GetReceiverOperand() { |
158 ASSERT(receiver_mode_ == ARGUMENTS_CONTAIN_RECEIVER); | 158 ASSERT(receiver_mode_ == ARGUMENTS_CONTAIN_RECEIVER); |
159 return GetArgumentOperand(0);; | 159 return GetArgumentOperand(0); |
160 } | 160 } |
161 | 161 |
162 private: | 162 private: |
163 const Register base_reg_; | 163 const Register base_reg_; |
164 const Register argument_count_reg_; | 164 const Register argument_count_reg_; |
165 const int argument_count_immediate_; | 165 const int argument_count_immediate_; |
166 const StackArgumentsAccessorReceiverMode receiver_mode_; | 166 const StackArgumentsAccessorReceiverMode receiver_mode_; |
167 const int extra_displacement_to_last_argument_; | 167 const int extra_displacement_to_last_argument_; |
168 | 168 |
169 DISALLOW_IMPLICIT_CONSTRUCTORS(StackArgumentsAccessor); | 169 DISALLOW_IMPLICIT_CONSTRUCTORS(StackArgumentsAccessor); |
170 }; | 170 }; |
171 | 171 |
172 | 172 |
173 } } // namespace v8::internal | 173 } } // namespace v8::internal |
174 | 174 |
175 #endif // V8_X64_CODEGEN_X64_H_ | 175 #endif // V8_X64_CODEGEN_X64_H_ |
OLD | NEW |