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

Side by Side Diff: src/platform.h

Issue 6905098: ARM: Support hardfloat in SCons build and make it a build time setting (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added CAN_USE_VFP_INSTRUCTIONS when hardfloat is used 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/flag-definitions.h ('k') | src/platform-linux.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 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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 // of the CPU and the OS. The bits in the answer correspond to the bit 287 // of the CPU and the OS. The bits in the answer correspond to the bit
288 // positions indicated by the members of the CpuFeature enum from globals.h 288 // positions indicated by the members of the CpuFeature enum from globals.h
289 static uint64_t CpuFeaturesImpliedByPlatform(); 289 static uint64_t CpuFeaturesImpliedByPlatform();
290 290
291 // Returns the double constant NAN 291 // Returns the double constant NAN
292 static double nan_value(); 292 static double nan_value();
293 293
294 // Support runtime detection of VFP3 on ARM CPUs. 294 // Support runtime detection of VFP3 on ARM CPUs.
295 static bool ArmCpuHasFeature(CpuFeature feature); 295 static bool ArmCpuHasFeature(CpuFeature feature);
296 296
297 // Support runtime detection of whether the hard float option of the
298 // EABI is used.
299 static bool ArmUsingHardFloat();
300
297 // Support runtime detection of FPU on MIPS CPUs. 301 // Support runtime detection of FPU on MIPS CPUs.
298 static bool MipsCpuHasFeature(CpuFeature feature); 302 static bool MipsCpuHasFeature(CpuFeature feature);
299 303
300 // Returns the activation frame alignment constraint or zero if 304 // Returns the activation frame alignment constraint or zero if
301 // the platform doesn't care. Guaranteed to be a power of two. 305 // the platform doesn't care. Guaranteed to be a power of two.
302 static int ActivationFrameAlignment(); 306 static int ActivationFrameAlignment();
303 307
304 static void ReleaseStore(volatile AtomicWord* ptr, AtomicWord value); 308 static void ReleaseStore(volatile AtomicWord* ptr, AtomicWord value);
305 309
306 #if defined(V8_TARGET_ARCH_IA32) 310 #if defined(V8_TARGET_ARCH_IA32)
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 int samples_taken_; // Counts stack samples taken. 658 int samples_taken_; // Counts stack samples taken.
655 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); 659 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler);
656 }; 660 };
657 661
658 662
659 #endif // ENABLE_LOGGING_AND_PROFILING 663 #endif // ENABLE_LOGGING_AND_PROFILING
660 664
661 } } // namespace v8::internal 665 } } // namespace v8::internal
662 666
663 #endif // V8_PLATFORM_H_ 667 #endif // V8_PLATFORM_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/platform-linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698