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

Side by Side Diff: src/platform.h

Issue 24269003: Add methods to enable configuration of ResourceConstraints based on limits derived at runtime. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: /s/uintptr_t/uint64_t Created 7 years, 3 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/heap.cc ('k') | src/platform-posix.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 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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 static void SignalCodeMovingGC(); 298 static void SignalCodeMovingGC();
299 299
300 // The return value indicates the CPU features we are sure of because of the 300 // The return value indicates the CPU features we are sure of because of the
301 // OS. For example MacOSX doesn't run on any x86 CPUs that don't have SSE2 301 // OS. For example MacOSX doesn't run on any x86 CPUs that don't have SSE2
302 // instructions. 302 // instructions.
303 // This is a little messy because the interpretation is subject to the cross 303 // This is a little messy because the interpretation is subject to the cross
304 // of the CPU and the OS. The bits in the answer correspond to the bit 304 // of the CPU and the OS. The bits in the answer correspond to the bit
305 // positions indicated by the members of the CpuFeature enum from globals.h 305 // positions indicated by the members of the CpuFeature enum from globals.h
306 static uint64_t CpuFeaturesImpliedByPlatform(); 306 static uint64_t CpuFeaturesImpliedByPlatform();
307 307
308 // The total amount of physical memory available on the current system.
309 static uint64_t TotalPhysicalMemory();
310
308 // Maximum size of the virtual memory. 0 means there is no artificial 311 // Maximum size of the virtual memory. 0 means there is no artificial
309 // limit. 312 // limit.
310 static intptr_t MaxVirtualMemory(); 313 static intptr_t MaxVirtualMemory();
311 314
312 // Returns the double constant NAN 315 // Returns the double constant NAN
313 static double nan_value(); 316 static double nan_value();
314 317
315 // Support runtime detection of whether the hard float option of the 318 // Support runtime detection of whether the hard float option of the
316 // EABI is used. 319 // EABI is used.
317 static bool ArmUsingHardFloat(); 320 static bool ArmUsingHardFloat();
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 char name_[kMaxThreadNameLength]; 595 char name_[kMaxThreadNameLength];
593 int stack_size_; 596 int stack_size_;
594 Semaphore* start_semaphore_; 597 Semaphore* start_semaphore_;
595 598
596 DISALLOW_COPY_AND_ASSIGN(Thread); 599 DISALLOW_COPY_AND_ASSIGN(Thread);
597 }; 600 };
598 601
599 } } // namespace v8::internal 602 } } // namespace v8::internal
600 603
601 #endif // V8_PLATFORM_H_ 604 #endif // V8_PLATFORM_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/platform-posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698