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

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

Issue 7795051: Change the x64 optimizing compiler to stop using the fixed context register rsi. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove stray edits. Created 9 years, 3 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/assembler-x64.h ('k') | src/x64/lithium-codegen-x64.h » ('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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 // Indicate that code has changed. 194 // Indicate that code has changed.
195 CPU::FlushICache(pc_, instruction_count); 195 CPU::FlushICache(pc_, instruction_count);
196 } 196 }
197 197
198 198
199 // ----------------------------------------------------------------------------- 199 // -----------------------------------------------------------------------------
200 // Register constants. 200 // Register constants.
201 201
202 const int Register::kRegisterCodeByAllocationIndex[kNumAllocatableRegisters] = { 202 const int Register::kRegisterCodeByAllocationIndex[kNumAllocatableRegisters] = {
203 // rax, rbx, rdx, rcx, rdi, r8, r9, r11, r14, r15 203 // rax, rbx, rdx, rcx, rdi, r8, r9, r11, r14, r15
204 0, 3, 2, 1, 7, 8, 9, 11, 14, 15 204 0, 3, 2, 1, 6, 7, 8, 9, 11, 14, 15
205 }; 205 };
206 206
207 const int Register::kAllocationIndexByRegisterCode[kNumRegisters] = { 207 const int Register::kAllocationIndexByRegisterCode[kNumRegisters] = {
208 0, 3, 2, 1, -1, -1, -1, 4, 5, 6, -1, 7, -1, -1, 8, 9 208 0, 3, 2, 1, -1, -1, 4, 5, 6, 7, -1, 8, -1, -1, 9, 10
209 }; 209 };
210 210
211 211
212 // ----------------------------------------------------------------------------- 212 // -----------------------------------------------------------------------------
213 // Implementation of Operand 213 // Implementation of Operand
214 214
215 Operand::Operand(Register base, int32_t disp) : rex_(0) { 215 Operand::Operand(Register base, int32_t disp) : rex_(0) {
216 len_ = 1; 216 len_ = 1;
217 if (base.is(rsp) || base.is(r12)) { 217 if (base.is(rsp) || base.is(r12)) {
218 // SIB byte is needed to encode (rsp + offset) or (r12 + offset). 218 // SIB byte is needed to encode (rsp + offset) or (r12 + offset).
(...skipping 2799 matching lines...) Expand 10 before | Expand all | Expand 10 after
3018 // specially coded on x64 means that it is a relative 32 bit address, as used 3018 // specially coded on x64 means that it is a relative 32 bit address, as used
3019 // by branch instructions. 3019 // by branch instructions.
3020 return (1 << rmode_) & kApplyMask; 3020 return (1 << rmode_) & kApplyMask;
3021 } 3021 }
3022 3022
3023 3023
3024 3024
3025 } } // namespace v8::internal 3025 } } // namespace v8::internal
3026 3026
3027 #endif // V8_TARGET_ARCH_X64 3027 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.h ('k') | src/x64/lithium-codegen-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698