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

Side by Side Diff: src/platform.h

Issue 1320006: Updates and fixes for MIPS support. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 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
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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 // of the CPU and the OS. The bits in the answer correspond to the bit 264 // of the CPU and the OS. The bits in the answer correspond to the bit
265 // positions indicated by the members of the CpuFeature enum from globals.h 265 // positions indicated by the members of the CpuFeature enum from globals.h
266 static uint64_t CpuFeaturesImpliedByPlatform(); 266 static uint64_t CpuFeaturesImpliedByPlatform();
267 267
268 // Returns the double constant NAN 268 // Returns the double constant NAN
269 static double nan_value(); 269 static double nan_value();
270 270
271 // Support runtime detection of VFP3 on ARM CPUs. 271 // Support runtime detection of VFP3 on ARM CPUs.
272 static bool ArmCpuHasFeature(CpuFeature feature); 272 static bool ArmCpuHasFeature(CpuFeature feature);
273 273
274 // Support runtime detection of FPU on MIPS CPUs.
275 static bool MipsCpuHasFeature(CpuFeature feature);
276
274 // Returns the activation frame alignment constraint or zero if 277 // Returns the activation frame alignment constraint or zero if
275 // the platform doesn't care. Guaranteed to be a power of two. 278 // the platform doesn't care. Guaranteed to be a power of two.
276 static int ActivationFrameAlignment(); 279 static int ActivationFrameAlignment();
277 280
278 private: 281 private:
279 static const int msPerSecond = 1000; 282 static const int msPerSecond = 1000;
280 283
281 DISALLOW_IMPLICIT_CONSTRUCTORS(OS); 284 DISALLOW_IMPLICIT_CONSTRUCTORS(OS);
282 }; 285 };
283 286
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 bool active_; 567 bool active_;
565 PlatformData* data_; // Platform specific data. 568 PlatformData* data_; // Platform specific data.
566 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); 569 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler);
567 }; 570 };
568 571
569 #endif // ENABLE_LOGGING_AND_PROFILING 572 #endif // ENABLE_LOGGING_AND_PROFILING
570 573
571 } } // namespace v8::internal 574 } } // namespace v8::internal
572 575
573 #endif // V8_PLATFORM_H_ 576 #endif // V8_PLATFORM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698