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

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

Issue 11037023: Use movw/movt instead of constant pool on ARMv7 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix nits 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/platform.h ('k') | src/platform-nullos.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // without vfp. 167 // without vfp.
168 if (CPUInfoContainsString("vfp") && CPUInfoContainsString("neon")) { 168 if (CPUInfoContainsString("vfp") && CPUInfoContainsString("neon")) {
169 return true; 169 return true;
170 } 170 }
171 } 171 }
172 172
173 return false; 173 return false;
174 } 174 }
175 175
176 176
177 CpuImplementer OS::GetCpuImplementer() {
178 static bool use_cached_value = false;
179 static CpuImplementer cached_value = UNKNOWN_IMPLEMENTER;
180 if (use_cached_value) {
181 return cached_value;
182 }
183 if (CPUInfoContainsString("CPU implementer\t: 0x41")) {
184 cached_value = ARM_IMPLEMENTER;
185 } else if (CPUInfoContainsString("CPU implementer\t: 0x51")) {
186 cached_value = QUALCOMM_IMPLEMENTER;
187 } else {
188 cached_value = UNKNOWN_IMPLEMENTER;
189 }
190 use_cached_value = true;
191 return cached_value;
192 }
193
194
177 bool OS::ArmUsingHardFloat() { 195 bool OS::ArmUsingHardFloat() {
178 // GCC versions 4.6 and above define __ARM_PCS or __ARM_PCS_VFP to specify 196 // GCC versions 4.6 and above define __ARM_PCS or __ARM_PCS_VFP to specify
179 // the Floating Point ABI used (PCS stands for Procedure Call Standard). 197 // the Floating Point ABI used (PCS stands for Procedure Call Standard).
180 // We use these as well as a couple of other defines to statically determine 198 // We use these as well as a couple of other defines to statically determine
181 // what FP ABI used. 199 // what FP ABI used.
182 // GCC versions 4.4 and below don't support hard-fp. 200 // GCC versions 4.4 and below don't support hard-fp.
183 // GCC versions 4.5 may support hard-fp without defining __ARM_PCS or 201 // GCC versions 4.5 may support hard-fp without defining __ARM_PCS or
184 // __ARM_PCS_VFP. 202 // __ARM_PCS_VFP.
185 203
186 #define GCC_VERSION (__GNUC__ * 10000 \ 204 #define GCC_VERSION (__GNUC__ * 10000 \
(...skipping 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1290 1308
1291 1309
1292 void Sampler::Stop() { 1310 void Sampler::Stop() {
1293 ASSERT(IsActive()); 1311 ASSERT(IsActive());
1294 SignalSender::RemoveActiveSampler(this); 1312 SignalSender::RemoveActiveSampler(this);
1295 SetActive(false); 1313 SetActive(false);
1296 } 1314 }
1297 1315
1298 1316
1299 } } // namespace v8::internal 1317 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform.h ('k') | src/platform-nullos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698