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

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

Issue 2868603002: [ARM] Improve VFP register moves. (Closed)
Patch Set: Rebase. Created 3 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
« no previous file with comments | « src/arm/assembler-arm.cc ('k') | src/arm/disasm-arm.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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_ARM_CONSTANTS_ARM_H_ 5 #ifndef V8_ARM_CONSTANTS_ARM_H_
6 #define V8_ARM_CONSTANTS_ARM_H_ 6 #define V8_ARM_CONSTANTS_ARM_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "src/base/logging.h" 10 #include "src/base/logging.h"
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 // Gap to make it easier to extract U and size. 335 // Gap to make it easier to extract U and size.
336 NeonU8 = 4, 336 NeonU8 = 4,
337 NeonU16 = 5, 337 NeonU16 = 5,
338 NeonU32 = 6 338 NeonU32 = 6
339 }; 339 };
340 340
341 inline int NeonU(NeonDataType dt) { return static_cast<int>(dt) >> 2; } 341 inline int NeonU(NeonDataType dt) { return static_cast<int>(dt) >> 2; }
342 inline int NeonSz(NeonDataType dt) { return static_cast<int>(dt) & 0x3; } 342 inline int NeonSz(NeonDataType dt) { return static_cast<int>(dt) & 0x3; }
343 343
344 // Convert sizes to data types (U bit is clear). 344 // Convert sizes to data types (U bit is clear).
345 inline NeonDataType NeonSizeToDatatype(NeonSize size) { 345 inline NeonDataType NeonSizeToDataType(NeonSize size) {
346 DCHECK_NE(Neon64, size);
346 return static_cast<NeonDataType>(size); 347 return static_cast<NeonDataType>(size);
347 } 348 }
348 349
350 inline NeonSize NeonDataTypeToSize(NeonDataType dt) {
351 return static_cast<NeonSize>(NeonSz(dt));
352 }
353
349 enum NeonListType { 354 enum NeonListType {
350 nlt_1 = 0x7, 355 nlt_1 = 0x7,
351 nlt_2 = 0xA, 356 nlt_2 = 0xA,
352 nlt_3 = 0x6, 357 nlt_3 = 0x6,
353 nlt_4 = 0x2 358 nlt_4 = 0x2
354 }; 359 };
355 360
356 // ----------------------------------------------------------------------------- 361 // -----------------------------------------------------------------------------
357 // Supervisor Call (svc) specific support. 362 // Supervisor Call (svc) specific support.
358 363
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 729
725 private: 730 private:
726 static const char* names_[kNumVFPRegisters]; 731 static const char* names_[kNumVFPRegisters];
727 }; 732 };
728 733
729 734
730 } // namespace internal 735 } // namespace internal
731 } // namespace v8 736 } // namespace v8
732 737
733 #endif // V8_ARM_CONSTANTS_ARM_H_ 738 #endif // V8_ARM_CONSTANTS_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.cc ('k') | src/arm/disasm-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698