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

Side by Side Diff: src/platform.h

Issue 125133002: ARM: Enable the subnormal floats on QNX. Base URL: git://github.com/v8/v8.git@master
Patch Set: Created 6 years, 11 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 | « no previous file | src/platform-posix.cc » ('j') | src/platform-qnx.cc » ('J')
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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 // The total amount of physical memory available on the current system. 304 // The total amount of physical memory available on the current system.
305 static uint64_t TotalPhysicalMemory(); 305 static uint64_t TotalPhysicalMemory();
306 306
307 // Maximum size of the virtual memory. 0 means there is no artificial 307 // Maximum size of the virtual memory. 0 means there is no artificial
308 // limit. 308 // limit.
309 static intptr_t MaxVirtualMemory(); 309 static intptr_t MaxVirtualMemory();
310 310
311 // Returns the double constant NAN 311 // Returns the double constant NAN
312 static double nan_value(); 312 static double nan_value();
313 313
314 // Enable the subnormal float support on ARM CPUs.
315 static void ArmEnableSubnormalFloat();
316
314 // Support runtime detection of whether the hard float option of the 317 // Support runtime detection of whether the hard float option of the
315 // EABI is used. 318 // EABI is used.
316 static bool ArmUsingHardFloat(); 319 static bool ArmUsingHardFloat();
317 320
318 // Returns the activation frame alignment constraint or zero if 321 // Returns the activation frame alignment constraint or zero if
319 // the platform doesn't care. Guaranteed to be a power of two. 322 // the platform doesn't care. Guaranteed to be a power of two.
320 static int ActivationFrameAlignment(); 323 static int ActivationFrameAlignment();
321 324
322 #if defined(V8_TARGET_ARCH_IA32) 325 #if defined(V8_TARGET_ARCH_IA32)
323 // Limit below which the extra overhead of the MemCopy function is likely 326 // Limit below which the extra overhead of the MemCopy function is likely
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 char name_[kMaxThreadNameLength]; 614 char name_[kMaxThreadNameLength];
612 int stack_size_; 615 int stack_size_;
613 Semaphore* start_semaphore_; 616 Semaphore* start_semaphore_;
614 617
615 DISALLOW_COPY_AND_ASSIGN(Thread); 618 DISALLOW_COPY_AND_ASSIGN(Thread);
616 }; 619 };
617 620
618 } } // namespace v8::internal 621 } } // namespace v8::internal
619 622
620 #endif // V8_PLATFORM_H_ 623 #endif // V8_PLATFORM_H_
OLDNEW
« no previous file with comments | « no previous file | src/platform-posix.cc » ('j') | src/platform-qnx.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698