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

Side by Side Diff: src/platform.h

Issue 6709022: Re-establish mips basic infrastructure. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Rebased on bleeding_edge r7374 Created 9 years, 9 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
« no previous file with comments | « src/objects-inl.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 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 // of the CPU and the OS. The bits in the answer correspond to the bit 286 // of the CPU and the OS. The bits in the answer correspond to the bit
287 // positions indicated by the members of the CpuFeature enum from globals.h 287 // positions indicated by the members of the CpuFeature enum from globals.h
288 static uint64_t CpuFeaturesImpliedByPlatform(); 288 static uint64_t CpuFeaturesImpliedByPlatform();
289 289
290 // Returns the double constant NAN 290 // Returns the double constant NAN
291 static double nan_value(); 291 static double nan_value();
292 292
293 // Support runtime detection of VFP3 on ARM CPUs. 293 // Support runtime detection of VFP3 on ARM CPUs.
294 static bool ArmCpuHasFeature(CpuFeature feature); 294 static bool ArmCpuHasFeature(CpuFeature feature);
295 295
296 // Support runtime detection of FPU on MIPS CPUs.
297 static bool MipsCpuHasFeature(CpuFeature feature);
298
296 // Returns the activation frame alignment constraint or zero if 299 // Returns the activation frame alignment constraint or zero if
297 // the platform doesn't care. Guaranteed to be a power of two. 300 // the platform doesn't care. Guaranteed to be a power of two.
298 static int ActivationFrameAlignment(); 301 static int ActivationFrameAlignment();
299 302
300 static void ReleaseStore(volatile AtomicWord* ptr, AtomicWord value); 303 static void ReleaseStore(volatile AtomicWord* ptr, AtomicWord value);
301 304
302 private: 305 private:
303 static const int msPerSecond = 1000; 306 static const int msPerSecond = 1000;
304 307
305 DISALLOW_IMPLICIT_CONSTRUCTORS(OS); 308 DISALLOW_IMPLICIT_CONSTRUCTORS(OS);
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 int samples_taken_; // Counts stack samples taken. 654 int samples_taken_; // Counts stack samples taken.
652 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); 655 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler);
653 }; 656 };
654 657
655 658
656 #endif // ENABLE_LOGGING_AND_PROFILING 659 #endif // ENABLE_LOGGING_AND_PROFILING
657 660
658 } } // namespace v8::internal 661 } } // namespace v8::internal
659 662
660 #endif // V8_PLATFORM_H_ 663 #endif // V8_PLATFORM_H_
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/platform-linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698