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

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

Issue 10701054: Enable stub generation using Hydrogen/Lithium (again) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: First pass at pre-VFP2 RA Created 8 years, 1 month 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 } 194 }
195 195
196 // Indicate that code has changed. 196 // Indicate that code has changed.
197 CPU::FlushICache(pc_, instruction_count); 197 CPU::FlushICache(pc_, instruction_count);
198 } 198 }
199 199
200 200
201 // ----------------------------------------------------------------------------- 201 // -----------------------------------------------------------------------------
202 // Register constants. 202 // Register constants.
203 203
204 const int Register::kRegisterCodeByAllocationIndex[kNumAllocatableRegisters] = { 204 const int
205 Register::kRegisterCodeByAllocationIndex[kMaxNumAllocatableRegisters] = {
205 // rax, rbx, rdx, rcx, rdi, r8, r9, r11, r14, r15 206 // rax, rbx, rdx, rcx, rdi, r8, r9, r11, r14, r15
206 0, 3, 2, 1, 7, 8, 9, 11, 14, 15 207 0, 3, 2, 1, 7, 8, 9, 11, 14, 15
207 }; 208 };
208 209
209 const int Register::kAllocationIndexByRegisterCode[kNumRegisters] = { 210 const int Register::kAllocationIndexByRegisterCode[kNumRegisters] = {
210 0, 3, 2, 1, -1, -1, -1, 4, 5, 6, -1, 7, -1, -1, 8, 9 211 0, 3, 2, 1, -1, -1, -1, 4, 5, 6, -1, 7, -1, -1, 8, 9
211 }; 212 };
212 213
213 214
214 // ----------------------------------------------------------------------------- 215 // -----------------------------------------------------------------------------
(...skipping 2837 matching lines...) Expand 10 before | Expand all | Expand 10 after
3052 bool RelocInfo::IsCodedSpecially() { 3053 bool RelocInfo::IsCodedSpecially() {
3053 // The deserializer needs to know whether a pointer is specially coded. Being 3054 // The deserializer needs to know whether a pointer is specially coded. Being
3054 // specially coded on x64 means that it is a relative 32 bit address, as used 3055 // specially coded on x64 means that it is a relative 32 bit address, as used
3055 // by branch instructions. 3056 // by branch instructions.
3056 return (1 << rmode_) & kApplyMask; 3057 return (1 << rmode_) & kApplyMask;
3057 } 3058 }
3058 3059
3059 } } // namespace v8::internal 3060 } } // namespace v8::internal
3060 3061
3061 #endif // V8_TARGET_ARCH_X64 3062 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698