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

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

Issue 364853007: ARM64: Quick fix for r22247. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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 | 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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_ARM64_CONSTANTS_ARM64_H_ 5 #ifndef V8_ARM64_CONSTANTS_ARM64_H_
6 #define V8_ARM64_CONSTANTS_ARM64_H_ 6 #define V8_ARM64_CONSTANTS_ARM64_H_
7 7
8 8
9 // Assert that this is an LP64 system. 9 // Assert that this is an LP64 system.
10 STATIC_ASSERT(sizeof(int) == sizeof(int32_t)); // NOLINT(runtime/sizeof) 10 STATIC_ASSERT(sizeof(int) == sizeof(int32_t)); // NOLINT(runtime/sizeof)
(...skipping 21 matching lines...) Expand all
32 const unsigned kNumberOfFPRegisters = 32; 32 const unsigned kNumberOfFPRegisters = 32;
33 // Callee saved registers are x19-x30(lr). 33 // Callee saved registers are x19-x30(lr).
34 const int kNumberOfCalleeSavedRegisters = 11; 34 const int kNumberOfCalleeSavedRegisters = 11;
35 const int kFirstCalleeSavedRegisterIndex = 19; 35 const int kFirstCalleeSavedRegisterIndex = 19;
36 // Callee saved FP registers are d8-d15. 36 // Callee saved FP registers are d8-d15.
37 const int kNumberOfCalleeSavedFPRegisters = 8; 37 const int kNumberOfCalleeSavedFPRegisters = 8;
38 const int kFirstCalleeSavedFPRegisterIndex = 8; 38 const int kFirstCalleeSavedFPRegisterIndex = 8;
39 // Callee saved registers with no specific purpose in JS are x19-x25. 39 // Callee saved registers with no specific purpose in JS are x19-x25.
40 const unsigned kJSCalleeSavedRegList = 0x03f80000; 40 const unsigned kJSCalleeSavedRegList = 0x03f80000;
41 // TODO(all): k<Y>RegSize should probably be k<Y>RegSizeInBits. 41 // TODO(all): k<Y>RegSize should probably be k<Y>RegSizeInBits.
42 const unsigned kWRegSizeInBits = 32; 42 const int kWRegSizeInBits = 32;
43 const unsigned kWRegSizeInBitsLog2 = 5; 43 const int kWRegSizeInBitsLog2 = 5;
44 const unsigned kWRegSize = kWRegSizeInBits >> 3; 44 const int kWRegSize = kWRegSizeInBits >> 3;
45 const unsigned kWRegSizeLog2 = kWRegSizeInBitsLog2 - 3; 45 const int kWRegSizeLog2 = kWRegSizeInBitsLog2 - 3;
46 const unsigned kXRegSizeInBits = 64; 46 const int kXRegSizeInBits = 64;
47 const unsigned kXRegSizeInBitsLog2 = 6; 47 const int kXRegSizeInBitsLog2 = 6;
48 const unsigned kXRegSize = kXRegSizeInBits >> 3; 48 const int kXRegSize = kXRegSizeInBits >> 3;
49 const unsigned kXRegSizeLog2 = kXRegSizeInBitsLog2 - 3; 49 const int kXRegSizeLog2 = kXRegSizeInBitsLog2 - 3;
50 const unsigned kSRegSizeInBits = 32; 50 const int kSRegSizeInBits = 32;
51 const unsigned kSRegSizeInBitsLog2 = 5; 51 const int kSRegSizeInBitsLog2 = 5;
52 const unsigned kSRegSize = kSRegSizeInBits >> 3; 52 const int kSRegSize = kSRegSizeInBits >> 3;
53 const unsigned kSRegSizeLog2 = kSRegSizeInBitsLog2 - 3; 53 const int kSRegSizeLog2 = kSRegSizeInBitsLog2 - 3;
54 const unsigned kDRegSizeInBits = 64; 54 const int kDRegSizeInBits = 64;
55 const unsigned kDRegSizeInBitsLog2 = 6; 55 const int kDRegSizeInBitsLog2 = 6;
56 const unsigned kDRegSize = kDRegSizeInBits >> 3; 56 const int kDRegSize = kDRegSizeInBits >> 3;
57 const unsigned kDRegSizeLog2 = kDRegSizeInBitsLog2 - 3; 57 const int kDRegSizeLog2 = kDRegSizeInBitsLog2 - 3;
58 const int64_t kWRegMask = 0x00000000ffffffffL; 58 const int64_t kWRegMask = 0x00000000ffffffffL;
59 const int64_t kXRegMask = 0xffffffffffffffffL; 59 const int64_t kXRegMask = 0xffffffffffffffffL;
60 const int64_t kSRegMask = 0x00000000ffffffffL; 60 const int64_t kSRegMask = 0x00000000ffffffffL;
61 const int64_t kDRegMask = 0xffffffffffffffffL; 61 const int64_t kDRegMask = 0xffffffffffffffffL;
62 // TODO(all) check if the expression below works on all compilers or if it 62 // TODO(all) check if the expression below works on all compilers or if it
63 // triggers an overflow error. 63 // triggers an overflow error.
64 const int64_t kDSignBit = 63; 64 const int64_t kDSignBit = 63;
65 const int64_t kDSignMask = 0x1L << kDSignBit; 65 const int64_t kDSignMask = 0x1L << kDSignBit;
66 const int64_t kSSignBit = 31; 66 const int64_t kSSignBit = 31;
67 const int64_t kSSignMask = 0x1L << kSSignBit; 67 const int64_t kSSignMask = 0x1L << kSSignBit;
(...skipping 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after
1241 }; 1241 };
1242 1242
1243 enum UnallocatedOp { 1243 enum UnallocatedOp {
1244 UnallocatedFixed = 0x00000000, 1244 UnallocatedFixed = 0x00000000,
1245 UnallocatedFMask = 0x00000000 1245 UnallocatedFMask = 0x00000000
1246 }; 1246 };
1247 1247
1248 } } // namespace v8::internal 1248 } } // namespace v8::internal
1249 1249
1250 #endif // V8_ARM64_CONSTANTS_ARM64_H_ 1250 #endif // V8_ARM64_CONSTANTS_ARM64_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698