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

Side by Side Diff: src/platform.h

Issue 6759025: Version 3.2.6 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 9 years, 8 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/parser.cc ('k') | src/platform-freebsd.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 FPU on MIPS CPUs.
298 static bool MipsCpuHasFeature(CpuFeature feature);
299
297 // Returns the activation frame alignment constraint or zero if 300 // Returns the activation frame alignment constraint or zero if
298 // the platform doesn't care. Guaranteed to be a power of two. 301 // the platform doesn't care. Guaranteed to be a power of two.
299 static int ActivationFrameAlignment(); 302 static int ActivationFrameAlignment();
300 303
301 static void ReleaseStore(volatile AtomicWord* ptr, AtomicWord value); 304 static void ReleaseStore(volatile AtomicWord* ptr, AtomicWord value);
302 305
303 private: 306 private:
304 static const int msPerSecond = 1000; 307 static const int msPerSecond = 1000;
305 308
306 DISALLOW_IMPLICIT_CONSTRUCTORS(OS); 309 DISALLOW_IMPLICIT_CONSTRUCTORS(OS);
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 int samples_taken_; // Counts stack samples taken. 668 int samples_taken_; // Counts stack samples taken.
666 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); 669 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler);
667 }; 670 };
668 671
669 672
670 #endif // ENABLE_LOGGING_AND_PROFILING 673 #endif // ENABLE_LOGGING_AND_PROFILING
671 674
672 } } // namespace v8::internal 675 } } // namespace v8::internal
673 676
674 #endif // V8_PLATFORM_H_ 677 #endif // V8_PLATFORM_H_
OLDNEW
« no previous file with comments | « src/parser.cc ('k') | src/platform-freebsd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698