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

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

Issue 14500006: Merged r14465 into trunk branch. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 7 years, 8 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/version.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 const Register r10 = { kRegister_r10_Code }; 195 const Register r10 = { kRegister_r10_Code };
196 const Register r11 = { kRegister_r11_Code }; 196 const Register r11 = { kRegister_r11_Code };
197 const Register r12 = { kRegister_r12_Code }; 197 const Register r12 = { kRegister_r12_Code };
198 const Register r13 = { kRegister_r13_Code }; 198 const Register r13 = { kRegister_r13_Code };
199 const Register r14 = { kRegister_r14_Code }; 199 const Register r14 = { kRegister_r14_Code };
200 const Register r15 = { kRegister_r15_Code }; 200 const Register r15 = { kRegister_r15_Code };
201 const Register no_reg = { kRegister_no_reg_Code }; 201 const Register no_reg = { kRegister_no_reg_Code };
202 202
203 #ifdef _WIN64 203 #ifdef _WIN64
204 // Windows calling convention 204 // Windows calling convention
205 const Register arg_reg_1 = rcx; 205 const Register arg_reg_1 = { kRegister_rcx_Code };
206 const Register arg_reg_2 = rdx; 206 const Register arg_reg_2 = { kRegister_rdx_Code };
207 const Register arg_reg_3 = r8; 207 const Register arg_reg_3 = { kRegister_r8_Code };
208 const Register arg_reg_4 = r9; 208 const Register arg_reg_4 = { kRegister_r9_Code };
209 #else 209 #else
210 // AMD64 calling convention 210 // AMD64 calling convention
211 const Register arg_reg_1 = rdi; 211 const Register arg_reg_1 = { kRegister_rdi_Code };
212 const Register arg_reg_2 = rsi; 212 const Register arg_reg_2 = { kRegister_rsi_Code };
213 const Register arg_reg_3 = rdx; 213 const Register arg_reg_3 = { kRegister_rdx_Code };
214 const Register arg_reg_4 = rcx; 214 const Register arg_reg_4 = { kRegister_rcx_Code };
215 #endif // _WIN64 215 #endif // _WIN64
216 216
217 struct XMMRegister { 217 struct XMMRegister {
218 static const int kMaxNumRegisters = 16; 218 static const int kMaxNumRegisters = 16;
219 static const int kMaxNumAllocatableRegisters = 15; 219 static const int kMaxNumAllocatableRegisters = 15;
220 static int NumAllocatableRegisters() { 220 static int NumAllocatableRegisters() {
221 return kMaxNumAllocatableRegisters; 221 return kMaxNumAllocatableRegisters;
222 } 222 }
223 223
224 static int ToAllocationIndex(XMMRegister reg) { 224 static int ToAllocationIndex(XMMRegister reg) {
(...skipping 1426 matching lines...) Expand 10 before | Expand all | Expand 10 after
1651 private: 1651 private:
1652 Assembler* assembler_; 1652 Assembler* assembler_;
1653 #ifdef DEBUG 1653 #ifdef DEBUG
1654 int space_before_; 1654 int space_before_;
1655 #endif 1655 #endif
1656 }; 1656 };
1657 1657
1658 } } // namespace v8::internal 1658 } } // namespace v8::internal
1659 1659
1660 #endif // V8_X64_ASSEMBLER_X64_H_ 1660 #endif // V8_X64_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/version.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698