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

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

Issue 11087047: Allow unaligned accesses for ARMv7. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comments Created 8 years, 2 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/arm/assembler-arm.cc ('k') | src/arm/macro-assembler-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 // 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 #if !defined(__arm__) 68 #if !defined(__arm__)
69 # define CAN_USE_ARMV5_INSTRUCTIONS 1 69 # define CAN_USE_ARMV5_INSTRUCTIONS 1
70 # define CAN_USE_THUMB_INSTRUCTIONS 1 70 # define CAN_USE_THUMB_INSTRUCTIONS 1
71 71
72 # ifndef CAN_USE_UNALIGNED_ACCESSES 72 # ifndef CAN_USE_UNALIGNED_ACCESSES
73 # define CAN_USE_UNALIGNED_ACCESSES 1 73 # define CAN_USE_UNALIGNED_ACCESSES 1
74 # endif 74 # endif
75 75
76 #endif 76 #endif
77 77
78 #if CAN_USE_UNALIGNED_ACCESSES
79 #define V8_TARGET_CAN_READ_UNALIGNED 1
80 #endif
81
82 // Using blx may yield better code, so use it when required or when available 78 // Using blx may yield better code, so use it when required or when available
83 #if defined(USE_THUMB_INTERWORK) || defined(CAN_USE_ARMV5_INSTRUCTIONS) 79 #if defined(USE_THUMB_INTERWORK) || defined(CAN_USE_ARMV5_INSTRUCTIONS)
84 #define USE_BLX 1 80 #define USE_BLX 1
85 #endif 81 #endif
86 82
87 namespace v8 { 83 namespace v8 {
88 namespace internal { 84 namespace internal {
89 85
90 // Constant pool marker. 86 // Constant pool marker.
91 const int kConstantPoolMarkerMask = 0xffe00000; 87 const int kConstantPoolMarkerMask = 0xffe00000;
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 static int Number(const char* name, bool* is_double); 762 static int Number(const char* name, bool* is_double);
767 763
768 private: 764 private:
769 static const char* names_[kNumVFPRegisters]; 765 static const char* names_[kNumVFPRegisters];
770 }; 766 };
771 767
772 768
773 } } // namespace v8::internal 769 } } // namespace v8::internal
774 770
775 #endif // V8_ARM_CONSTANTS_ARM_H_ 771 #endif // V8_ARM_CONSTANTS_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698