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

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

Issue 1113002: Implement function calls on ARM using the blx instruction when available. Usi... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 9 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-inl.h ('k') | src/arm/debug-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 // 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)
77 #define USE_BLX 1
78 #endif
79
75 namespace assembler { 80 namespace assembler {
76 namespace arm { 81 namespace arm {
77 82
78 // Number of registers in normal ARM mode. 83 // Number of registers in normal ARM mode.
79 static const int kNumRegisters = 16; 84 static const int kNumRegisters = 16;
80 85
81 // VFP support. 86 // VFP support.
82 static const int kNumVFPRegisters = 48; 87 static const int kNumVFPRegisters = 48;
83 88
84 // PC is register 15. 89 // PC is register 15.
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 static const char* Name(int reg); 347 static const char* Name(int reg);
343 348
344 private: 349 private:
345 static const char* names_[kNumVFPRegisters]; 350 static const char* names_[kNumVFPRegisters];
346 }; 351 };
347 352
348 353
349 } } // namespace assembler::arm 354 } } // namespace assembler::arm
350 355
351 #endif // V8_ARM_CONSTANTS_ARM_H_ 356 #endif // V8_ARM_CONSTANTS_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/assembler-arm-inl.h ('k') | src/arm/debug-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698