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

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

Issue 11428137: ARM: Make use of d16-d31 when available. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address Rodoloph's comments Created 8 years 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/mips/assembler-mips.h ('k') | src/serialize.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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 break; 149 break;
150 case VFP3: 150 case VFP3:
151 search_string = "vfpv3"; 151 search_string = "vfpv3";
152 break; 152 break;
153 case ARMv7: 153 case ARMv7:
154 search_string = "ARMv7"; 154 search_string = "ARMv7";
155 break; 155 break;
156 case SUDIV: 156 case SUDIV:
157 search_string = "idiva"; 157 search_string = "idiva";
158 break; 158 break;
159 case VFP32DREGS:
160 // This case is handled specially below.
161 break;
159 default: 162 default:
160 UNREACHABLE(); 163 UNREACHABLE();
161 } 164 }
162 165
166 if (feature == VFP32DREGS) {
167 return ArmCpuHasFeature(ARMv3) && !CPUInfoContainsString("d16");
Rodolph Perfetta 2012/12/17 15:37:21 Typo: ARMv3 -> VFP3
hans 2012/12/17 15:49:15 Mondays.. Thanks for catching this :)
168 }
169
163 if (CPUInfoContainsString(search_string)) { 170 if (CPUInfoContainsString(search_string)) {
164 return true; 171 return true;
165 } 172 }
166 173
167 if (feature == VFP3) { 174 if (feature == VFP3) {
168 // Some old kernels will report vfp not vfpv3. Here we make a last attempt 175 // Some old kernels will report vfp not vfpv3. Here we make a last attempt
169 // to detect vfpv3 by checking for vfp *and* neon, since neon is only 176 // to detect vfpv3 by checking for vfp *and* neon, since neon is only
170 // available on architectures with vfpv3. 177 // available on architectures with vfpv3.
171 // Checking neon on its own is not enough as it is possible to have neon 178 // Checking neon on its own is not enough as it is possible to have neon
172 // without vfp. 179 // without vfp.
(...skipping 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after
1310 1317
1311 1318
1312 void Sampler::Stop() { 1319 void Sampler::Stop() {
1313 ASSERT(IsActive()); 1320 ASSERT(IsActive());
1314 SignalSender::RemoveActiveSampler(this); 1321 SignalSender::RemoveActiveSampler(this);
1315 SetActive(false); 1322 SetActive(false);
1316 } 1323 }
1317 1324
1318 1325
1319 } } // namespace v8::internal 1326 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/assembler-mips.h ('k') | src/serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698