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

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

Issue 130843008: A64: Add support for floating-point registers in PushSafepointRegistersScope. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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 | « no previous file | src/a64/lithium-codegen-a64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 static const int kMaxNumRegisters = kNumberOfFPRegisters; 249 static const int kMaxNumRegisters = kNumberOfFPRegisters;
250 250
251 // Crankshaft can use all the FP registers except: 251 // Crankshaft can use all the FP registers except:
252 // - d29 which is used in crankshaft as a double scratch register 252 // - d29 which is used in crankshaft as a double scratch register
253 // - d30 which is used to keep the 0 double value 253 // - d30 which is used to keep the 0 double value
254 // - d31 which is used in the MacroAssembler as a double scratch register 254 // - d31 which is used in the MacroAssembler as a double scratch register
255 static const int kNumReservedRegisters = 3; 255 static const int kNumReservedRegisters = 3;
256 static const int kMaxNumAllocatableRegisters = 256 static const int kMaxNumAllocatableRegisters =
257 kNumberOfFPRegisters - kNumReservedRegisters; 257 kNumberOfFPRegisters - kNumReservedRegisters;
258 static int NumAllocatableRegisters() { return kMaxNumAllocatableRegisters; } 258 static int NumAllocatableRegisters() { return kMaxNumAllocatableRegisters; }
259 static const RegList kAllocatableFPRegisters =
260 (1 << kMaxNumAllocatableRegisters) - 1;
259 261
260 static FPRegister FromAllocationIndex(int index) { 262 static FPRegister FromAllocationIndex(int index) {
261 ASSERT((index >= 0) && (index < NumAllocatableRegisters())); 263 ASSERT((index >= 0) && (index < NumAllocatableRegisters()));
262 return from_code(index); 264 return from_code(index);
263 } 265 }
264 266
265 static const char* AllocationIndexToString(int index) { 267 static const char* AllocationIndexToString(int index) {
266 ASSERT((index >= 0) && (index < NumAllocatableRegisters())); 268 ASSERT((index >= 0) && (index < NumAllocatableRegisters()));
267 const char* const names[] = { 269 const char* const names[] = {
268 "d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7", 270 "d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7",
(...skipping 1764 matching lines...) Expand 10 before | Expand all | Expand 10 after
2033 class EnsureSpace BASE_EMBEDDED { 2035 class EnsureSpace BASE_EMBEDDED {
2034 public: 2036 public:
2035 explicit EnsureSpace(Assembler* assembler) { 2037 explicit EnsureSpace(Assembler* assembler) {
2036 assembler->CheckBuffer(); 2038 assembler->CheckBuffer();
2037 } 2039 }
2038 }; 2040 };
2039 2041
2040 } } // namespace v8::internal 2042 } } // namespace v8::internal
2041 2043
2042 #endif // V8_A64_ASSEMBLER_A64_H_ 2044 #endif // V8_A64_ASSEMBLER_A64_H_
OLDNEW
« no previous file with comments | « no previous file | src/a64/lithium-codegen-a64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698