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

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

Issue 258793002: ARM64: Generate optimized code for Math.floor and Math.round with double outputs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Change C-style comments to C++-style comments Created 6 years, 7 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/arm64/lithium-arm64.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 // 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 const unsigned kWordSizeLog2 = 5; 100 const unsigned kWordSizeLog2 = 5;
101 const unsigned kWordSizeInBytes = kWordSize >> 3; 101 const unsigned kWordSizeInBytes = kWordSize >> 3;
102 const unsigned kWordSizeInBytesLog2 = kWordSizeLog2 - 3; 102 const unsigned kWordSizeInBytesLog2 = kWordSizeLog2 - 3;
103 const unsigned kDoubleWordSize = 64; 103 const unsigned kDoubleWordSize = 64;
104 const unsigned kDoubleWordSizeInBytes = kDoubleWordSize >> 3; 104 const unsigned kDoubleWordSizeInBytes = kDoubleWordSize >> 3;
105 const unsigned kQuadWordSize = 128; 105 const unsigned kQuadWordSize = 128;
106 const unsigned kQuadWordSizeInBytes = kQuadWordSize >> 3; 106 const unsigned kQuadWordSizeInBytes = kQuadWordSize >> 3;
107 // AArch64 floating-point specifics. These match IEEE-754. 107 // AArch64 floating-point specifics. These match IEEE-754.
108 const unsigned kDoubleMantissaBits = 52; 108 const unsigned kDoubleMantissaBits = 52;
109 const unsigned kDoubleExponentBits = 11; 109 const unsigned kDoubleExponentBits = 11;
110 const unsigned kDoubleExponentBias = 1023;
110 const unsigned kFloatMantissaBits = 23; 111 const unsigned kFloatMantissaBits = 23;
111 const unsigned kFloatExponentBits = 8; 112 const unsigned kFloatExponentBits = 8;
112 113
113 #define REGISTER_CODE_LIST(R) \ 114 #define REGISTER_CODE_LIST(R) \
114 R(0) R(1) R(2) R(3) R(4) R(5) R(6) R(7) \ 115 R(0) R(1) R(2) R(3) R(4) R(5) R(6) R(7) \
115 R(8) R(9) R(10) R(11) R(12) R(13) R(14) R(15) \ 116 R(8) R(9) R(10) R(11) R(12) R(13) R(14) R(15) \
116 R(16) R(17) R(18) R(19) R(20) R(21) R(22) R(23) \ 117 R(16) R(17) R(18) R(19) R(20) R(21) R(22) R(23) \
117 R(24) R(25) R(26) R(27) R(28) R(29) R(30) R(31) 118 R(24) R(25) R(26) R(27) R(28) R(29) R(30) R(31)
118 119
119 #define INSTRUCTION_FIELDS_LIST(V_) \ 120 #define INSTRUCTION_FIELDS_LIST(V_) \
(...skipping 1119 matching lines...) Expand 10 before | Expand all | Expand 10 after
1239 }; 1240 };
1240 1241
1241 enum UnallocatedOp { 1242 enum UnallocatedOp {
1242 UnallocatedFixed = 0x00000000, 1243 UnallocatedFixed = 0x00000000,
1243 UnallocatedFMask = 0x00000000 1244 UnallocatedFMask = 0x00000000
1244 }; 1245 };
1245 1246
1246 } } // namespace v8::internal 1247 } } // namespace v8::internal
1247 1248
1248 #endif // V8_ARM64_CONSTANTS_ARM64_H_ 1249 #endif // V8_ARM64_CONSTANTS_ARM64_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm64/lithium-arm64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698