Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(435)

Side by Side Diff: src/x64/codegen-x64.h

Issue 22267005: Use StackArgumenstAccessor and kPCOnStackSize/kFPOnStackSize to compute stack address/operand (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased with bleeding_edge Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x64/codegen-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x64/codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698