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

Side by Side Diff: src/platform.h

Issue 275253004: Require CMOV support for the ia32 port. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: restore uses of cmov Created 6 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
« no previous file with comments | « src/ia32/macro-assembler-ia32.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This module contains the platform-specific code. This make the rest of the 5 // This module contains the platform-specific code. This make the rest of the
6 // code less dependent on operating system, compilers and runtime libraries. 6 // code less dependent on operating system, compilers and runtime libraries.
7 // This module does specifically not deal with differences between different 7 // This module does specifically not deal with differences between different
8 // processor architecture. 8 // processor architecture.
9 // The platform classes have the same definition for all platforms. The 9 // The platform classes have the same definition for all platforms. The
10 // implementation for a particular platform is put in platform_<os>.cc. 10 // implementation for a particular platform is put in platform_<os>.cc.
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 // occuring in shared libraries will not be properly accounted for. 261 // occuring in shared libraries will not be properly accounted for.
262 static void LogSharedLibraryAddresses(Isolate* isolate); 262 static void LogSharedLibraryAddresses(Isolate* isolate);
263 263
264 // Support for the profiler. Notifies the external profiling 264 // Support for the profiler. Notifies the external profiling
265 // process that a code moving garbage collection starts. Can do 265 // process that a code moving garbage collection starts. Can do
266 // nothing, in which case the code objects must not move (e.g., by 266 // nothing, in which case the code objects must not move (e.g., by
267 // using --never-compact) if accurate profiling is desired. 267 // using --never-compact) if accurate profiling is desired.
268 static void SignalCodeMovingGC(); 268 static void SignalCodeMovingGC();
269 269
270 // The return value indicates the CPU features we are sure of because of the 270 // The return value indicates the CPU features we are sure of because of the
271 // OS. For example MacOSX doesn't run on any x86 CPUs that don't have CMOV 271 // OS.
272 // instructions.
273 // This is a little messy because the interpretation is subject to the cross 272 // This is a little messy because the interpretation is subject to the cross
274 // of the CPU and the OS. The bits in the answer correspond to the bit 273 // of the CPU and the OS. The bits in the answer correspond to the bit
275 // positions indicated by the members of the CpuFeature enum from globals.h 274 // positions indicated by the members of the CpuFeature enum from globals.h
276 static uint64_t CpuFeaturesImpliedByPlatform(); 275 static uint64_t CpuFeaturesImpliedByPlatform();
277 276
278 // The total amount of physical memory available on the current system. 277 // The total amount of physical memory available on the current system.
279 static uint64_t TotalPhysicalMemory(); 278 static uint64_t TotalPhysicalMemory();
280 279
281 // Maximum size of the virtual memory. 0 means there is no artificial 280 // Maximum size of the virtual memory. 0 means there is no artificial
282 // limit. 281 // limit.
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 char name_[kMaxThreadNameLength]; 584 char name_[kMaxThreadNameLength];
586 int stack_size_; 585 int stack_size_;
587 Semaphore* start_semaphore_; 586 Semaphore* start_semaphore_;
588 587
589 DISALLOW_COPY_AND_ASSIGN(Thread); 588 DISALLOW_COPY_AND_ASSIGN(Thread);
590 }; 589 };
591 590
592 } } // namespace v8::internal 591 } } // namespace v8::internal
593 592
594 #endif // V8_PLATFORM_H_ 593 #endif // V8_PLATFORM_H_
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/platform-posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698