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

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

Issue 1731013: unaligned memory access support for ARMv7 Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 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/arm/regexp-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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 # define CAN_USE_ARMV5_INSTRUCTIONS 1 65 # define CAN_USE_ARMV5_INSTRUCTIONS 1
66 # define CAN_USE_THUMB_INSTRUCTIONS 1 66 # define CAN_USE_THUMB_INSTRUCTIONS 1
67 #endif 67 #endif
68 68
69 // Simulator should support ARM5 instructions. 69 // Simulator should support ARM5 instructions.
70 #if !defined(__arm__) 70 #if !defined(__arm__)
71 # define CAN_USE_ARMV5_INSTRUCTIONS 1 71 # define CAN_USE_ARMV5_INSTRUCTIONS 1
72 # define CAN_USE_THUMB_INSTRUCTIONS 1 72 # define CAN_USE_THUMB_INSTRUCTIONS 1
73 #endif 73 #endif
74 74
75 #if CAN_USE_UNALIGNED_ACCESSES
76 #define V8_TARGET_CAN_READ_UNALIGNED 1
77 #endif
78
75 // Using blx may yield better code, so use it when required or when available 79 // Using blx may yield better code, so use it when required or when available
76 #if defined(USE_THUMB_INTERWORK) || defined(CAN_USE_ARMV5_INSTRUCTIONS) 80 #if defined(USE_THUMB_INTERWORK) || defined(CAN_USE_ARMV5_INSTRUCTIONS)
77 #define USE_BLX 1 81 #define USE_BLX 1
78 #endif 82 #endif
79 83
80 namespace assembler { 84 namespace assembler {
81 namespace arm { 85 namespace arm {
82 86
83 // Number of registers in normal ARM mode. 87 // Number of registers in normal ARM mode.
84 static const int kNumRegisters = 16; 88 static const int kNumRegisters = 16;
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 static int Number(const char* name, bool* is_double); 368 static int Number(const char* name, bool* is_double);
365 369
366 private: 370 private:
367 static const char* names_[kNumVFPRegisters]; 371 static const char* names_[kNumVFPRegisters];
368 }; 372 };
369 373
370 374
371 } } // namespace assembler::arm 375 } } // namespace assembler::arm
372 376
373 #endif // V8_ARM_CONSTANTS_ARM_H_ 377 #endif // V8_ARM_CONSTANTS_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/regexp-macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698