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

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

Issue 194473005: A64: Rename k<Y>RegSize to k<Y>RegSizeInBits, and k<Y>RegSizeInBytes to k<Y>RegSize. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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/a64/codegen-a64.cc ('k') | src/a64/debug-a64.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 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 const unsigned kNumberOfFPRegisters = 32; 56 const unsigned kNumberOfFPRegisters = 32;
57 // Callee saved registers are x19-x30(lr). 57 // Callee saved registers are x19-x30(lr).
58 const int kNumberOfCalleeSavedRegisters = 11; 58 const int kNumberOfCalleeSavedRegisters = 11;
59 const int kFirstCalleeSavedRegisterIndex = 19; 59 const int kFirstCalleeSavedRegisterIndex = 19;
60 // Callee saved FP registers are d8-d15. 60 // Callee saved FP registers are d8-d15.
61 const int kNumberOfCalleeSavedFPRegisters = 8; 61 const int kNumberOfCalleeSavedFPRegisters = 8;
62 const int kFirstCalleeSavedFPRegisterIndex = 8; 62 const int kFirstCalleeSavedFPRegisterIndex = 8;
63 // Callee saved registers with no specific purpose in JS are x19-x25. 63 // Callee saved registers with no specific purpose in JS are x19-x25.
64 const unsigned kJSCalleeSavedRegList = 0x03f80000; 64 const unsigned kJSCalleeSavedRegList = 0x03f80000;
65 // TODO(all): k<Y>RegSize should probably be k<Y>RegSizeInBits. 65 // TODO(all): k<Y>RegSize should probably be k<Y>RegSizeInBits.
66 const unsigned kWRegSize = 32; 66 const unsigned kWRegSizeInBits = 32;
67 const unsigned kWRegSizeLog2 = 5; 67 const unsigned kWRegSizeInBitsLog2 = 5;
68 const unsigned kWRegSizeInBytes = kWRegSize >> 3; 68 const unsigned kWRegSize = kWRegSizeInBits >> 3;
69 const unsigned kWRegSizeInBytesLog2 = kWRegSizeLog2 - 3; 69 const unsigned kWRegSizeLog2 = kWRegSizeInBitsLog2 - 3;
70 const unsigned kXRegSize = 64; 70 const unsigned kXRegSizeInBits = 64;
71 const unsigned kXRegSizeLog2 = 6; 71 const unsigned kXRegSizeInBitsLog2 = 6;
72 const unsigned kXRegSizeInBytes = kXRegSize >> 3; 72 const unsigned kXRegSize = kXRegSizeInBits >> 3;
73 const unsigned kXRegSizeInBytesLog2 = kXRegSizeLog2 - 3; 73 const unsigned kXRegSizeLog2 = kXRegSizeInBitsLog2 - 3;
74 const unsigned kSRegSize = 32; 74 const unsigned kSRegSizeInBits = 32;
75 const unsigned kSRegSizeLog2 = 5; 75 const unsigned kSRegSizeInBitsLog2 = 5;
76 const unsigned kSRegSizeInBytes = kSRegSize >> 3; 76 const unsigned kSRegSize = kSRegSizeInBits >> 3;
77 const unsigned kSRegSizeInBytesLog2 = kSRegSizeLog2 - 3; 77 const unsigned kSRegSizeLog2 = kSRegSizeInBitsLog2 - 3;
78 const unsigned kDRegSize = 64; 78 const unsigned kDRegSizeInBits = 64;
79 const unsigned kDRegSizeLog2 = 6; 79 const unsigned kDRegSizeInBitsLog2 = 6;
80 const unsigned kDRegSizeInBytes = kDRegSize >> 3; 80 const unsigned kDRegSize = kDRegSizeInBits >> 3;
81 const unsigned kDRegSizeInBytesLog2 = kDRegSizeLog2 - 3; 81 const unsigned kDRegSizeLog2 = kDRegSizeInBitsLog2 - 3;
82 const int64_t kWRegMask = 0x00000000ffffffffL; 82 const int64_t kWRegMask = 0x00000000ffffffffL;
83 const int64_t kXRegMask = 0xffffffffffffffffL; 83 const int64_t kXRegMask = 0xffffffffffffffffL;
84 const int64_t kSRegMask = 0x00000000ffffffffL; 84 const int64_t kSRegMask = 0x00000000ffffffffL;
85 const int64_t kDRegMask = 0xffffffffffffffffL; 85 const int64_t kDRegMask = 0xffffffffffffffffL;
86 // TODO(all) check if the expression below works on all compilers or if it 86 // TODO(all) check if the expression below works on all compilers or if it
87 // triggers an overflow error. 87 // triggers an overflow error.
88 const int64_t kDSignMask = 0x1L << 63; 88 const int64_t kDSignMask = 0x1L << 63;
89 const int64_t kDSignBit = 63; 89 const int64_t kDSignBit = 63;
90 const int64_t kXSignMask = 0x1L << 63; 90 const int64_t kXSignMask = 0x1L << 63;
91 const int64_t kXSignBit = 63; 91 const int64_t kXSignBit = 63;
(...skipping 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after
1253 }; 1253 };
1254 1254
1255 enum UnallocatedOp { 1255 enum UnallocatedOp {
1256 UnallocatedFixed = 0x00000000, 1256 UnallocatedFixed = 0x00000000,
1257 UnallocatedFMask = 0x00000000 1257 UnallocatedFMask = 0x00000000
1258 }; 1258 };
1259 1259
1260 } } // namespace v8::internal 1260 } } // namespace v8::internal
1261 1261
1262 #endif // V8_A64_CONSTANTS_A64_H_ 1262 #endif // V8_A64_CONSTANTS_A64_H_
OLDNEW
« no previous file with comments | « src/a64/codegen-a64.cc ('k') | src/a64/debug-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698