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

Side by Side Diff: src/platform-linux.cc

Issue 6904164: ARM: Changed the handling of compiletime CPU feature detection (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 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 | « src/arm/assembler-arm.cc ('k') | tools/gyp/v8.gyp » ('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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 PrintF("ERROR: Binary not compiled with -mfloat-abi=hard but with " 103 PrintF("ERROR: Binary not compiled with -mfloat-abi=hard but with "
104 "-DUSE_EABI_HARDFLOAT\n"); 104 "-DUSE_EABI_HARDFLOAT\n");
105 exit(1); 105 exit(1);
106 #endif 106 #endif
107 } 107 }
108 #endif 108 #endif
109 } 109 }
110 110
111 111
112 uint64_t OS::CpuFeaturesImpliedByPlatform() { 112 uint64_t OS::CpuFeaturesImpliedByPlatform() {
113 #if (defined(__VFP_FP__) && !defined(__SOFTFP__)) 113 #if(defined(__mips_hard_float) && __mips_hard_float != 0)
114 // Here gcc is telling us that we are on an ARM and gcc is assuming
115 // that we have VFP3 instructions. If gcc can assume it then so can
116 // we. VFPv3 implies ARMv7, see ARM DDI 0406B, page A1-6.
117 return 1u << VFP3 | 1u << ARMv7;
118 #elif CAN_USE_ARMV7_INSTRUCTIONS
119 return 1u << ARMv7;
120 #elif(defined(__mips_hard_float) && __mips_hard_float != 0)
121 // Here gcc is telling us that we are on an MIPS and gcc is assuming that we 114 // Here gcc is telling us that we are on an MIPS and gcc is assuming that we
122 // have FPU instructions. If gcc can assume it then so can we. 115 // have FPU instructions. If gcc can assume it then so can we.
123 return 1u << FPU; 116 return 1u << FPU;
124 #else 117 #else
125 return 0; // Linux runs on anything. 118 return 0; // Linux runs on anything.
126 #endif 119 #endif
127 } 120 }
128 121
129 122
130 #ifdef __arm__ 123 #ifdef __arm__
(...skipping 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after
1147 1140
1148 void Sampler::Stop() { 1141 void Sampler::Stop() {
1149 ASSERT(IsActive()); 1142 ASSERT(IsActive());
1150 SignalSender::RemoveActiveSampler(this); 1143 SignalSender::RemoveActiveSampler(this);
1151 SetActive(false); 1144 SetActive(false);
1152 } 1145 }
1153 1146
1154 #endif // ENABLE_LOGGING_AND_PROFILING 1147 #endif // ENABLE_LOGGING_AND_PROFILING
1155 1148
1156 } } // namespace v8::internal 1149 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.cc ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698