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

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

Issue 1365073002: Revert of Remove register index/code indirection (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « src/arm64/simulator-arm64.h ('k') | src/assembler.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_UTILS_ARM64_H_ 5 #ifndef V8_ARM64_UTILS_ARM64_H_
6 #define V8_ARM64_UTILS_ARM64_H_ 6 #define V8_ARM64_UTILS_ARM64_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "src/arm64/constants-arm64.h" 10 #include "src/arm64/constants-arm64.h"
11 11
12 #define REGISTER_CODE_LIST(R) \
13 R(0) R(1) R(2) R(3) R(4) R(5) R(6) R(7) \
14 R(8) R(9) R(10) R(11) R(12) R(13) R(14) R(15) \
15 R(16) R(17) R(18) R(19) R(20) R(21) R(22) R(23) \
16 R(24) R(25) R(26) R(27) R(28) R(29) R(30) R(31)
17
12 namespace v8 { 18 namespace v8 {
13 namespace internal { 19 namespace internal {
14 20
15 // These are global assumptions in v8. 21 // These are global assumptions in v8.
16 STATIC_ASSERT((static_cast<int32_t>(-1) >> 1) == -1); 22 STATIC_ASSERT((static_cast<int32_t>(-1) >> 1) == -1);
17 STATIC_ASSERT((static_cast<uint32_t>(-1) >> 1) == 0x7FFFFFFF); 23 STATIC_ASSERT((static_cast<uint32_t>(-1) >> 1) == 0x7FFFFFFF);
18 24
19 // Floating point representation. 25 // Floating point representation.
20 static inline uint32_t float_to_rawbits(float value) { 26 static inline uint32_t float_to_rawbits(float value) {
21 uint32_t bits = 0; 27 uint32_t bits = 0;
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 } 147 }
142 148
143 149
144 inline float FusedMultiplyAdd(float op1, float op2, float a) { 150 inline float FusedMultiplyAdd(float op1, float op2, float a) {
145 return fmaf(op1, op2, a); 151 return fmaf(op1, op2, a);
146 } 152 }
147 153
148 } } // namespace v8::internal 154 } } // namespace v8::internal
149 155
150 #endif // V8_ARM64_UTILS_ARM64_H_ 156 #endif // V8_ARM64_UTILS_ARM64_H_
OLDNEW
« no previous file with comments | « src/arm64/simulator-arm64.h ('k') | src/assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698