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

Side by Side Diff: src/platform.h

Issue 275433004: Require SSE2 support for the ia32 port. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/mips/deoptimizer-mips.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 SSE2 271 // OS. For example MacOSX doesn't run on any x86 CPUs that don't have CMOV
272 // instructions. 272 // instructions.
273 // This is a little messy because the interpretation is subject to the cross 273 // 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 274 // 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 275 // positions indicated by the members of the CpuFeature enum from globals.h
276 static uint64_t CpuFeaturesImpliedByPlatform(); 276 static uint64_t CpuFeaturesImpliedByPlatform();
277 277
278 // The total amount of physical memory available on the current system. 278 // The total amount of physical memory available on the current system.
279 static uint64_t TotalPhysicalMemory(); 279 static uint64_t TotalPhysicalMemory();
280 280
281 // Maximum size of the virtual memory. 0 means there is no artificial 281 // Maximum size of the virtual memory. 0 means there is no artificial
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 char name_[kMaxThreadNameLength]; 585 char name_[kMaxThreadNameLength];
586 int stack_size_; 586 int stack_size_;
587 Semaphore* start_semaphore_; 587 Semaphore* start_semaphore_;
588 588
589 DISALLOW_COPY_AND_ASSIGN(Thread); 589 DISALLOW_COPY_AND_ASSIGN(Thread);
590 }; 590 };
591 591
592 } } // namespace v8::internal 592 } } // namespace v8::internal
593 593
594 #endif // V8_PLATFORM_H_ 594 #endif // V8_PLATFORM_H_
OLDNEW
« no previous file with comments | « src/mips/deoptimizer-mips.cc ('k') | src/platform-posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698