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/ic-inl.h" | 9 #include "src/ic-inl.h" |
10 | 10 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 argument_count_reg_(parameter_count.is_reg() ? | 89 argument_count_reg_(parameter_count.is_reg() ? |
90 parameter_count.reg() : no_reg), | 90 parameter_count.reg() : no_reg), |
91 argument_count_immediate_(parameter_count.is_immediate() ? | 91 argument_count_immediate_(parameter_count.is_immediate() ? |
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 ASSERT(receiver_mode_ == ARGUMENTS_CONTAIN_RECEIVER); | 99 DCHECK(receiver_mode_ == ARGUMENTS_CONTAIN_RECEIVER); |
100 return GetArgumentOperand(0); | 100 return GetArgumentOperand(0); |
101 } | 101 } |
102 | 102 |
103 private: | 103 private: |
104 const Register base_reg_; | 104 const Register base_reg_; |
105 const Register argument_count_reg_; | 105 const Register argument_count_reg_; |
106 const int argument_count_immediate_; | 106 const int argument_count_immediate_; |
107 const StackArgumentsAccessorReceiverMode receiver_mode_; | 107 const StackArgumentsAccessorReceiverMode receiver_mode_; |
108 const int extra_displacement_to_last_argument_; | 108 const int extra_displacement_to_last_argument_; |
109 | 109 |
110 DISALLOW_IMPLICIT_CONSTRUCTORS(StackArgumentsAccessor); | 110 DISALLOW_IMPLICIT_CONSTRUCTORS(StackArgumentsAccessor); |
111 }; | 111 }; |
112 | 112 |
113 | 113 |
114 } } // namespace v8::internal | 114 } } // namespace v8::internal |
115 | 115 |
116 #endif // V8_X64_CODEGEN_X64_H_ | 116 #endif // V8_X64_CODEGEN_X64_H_ |
OLD | NEW |