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

Side by Side Diff: src/platform-win32.cc

Issue 391051: Allow a platform to indicate that some CPU features are always... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 1 month 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 1298 matching lines...) Expand 10 before | Expand all | Expand 10 after
1309 1309
1310 // Restore warnings to previous settings. 1310 // Restore warnings to previous settings.
1311 #pragma warning(pop) 1311 #pragma warning(pop)
1312 1312
1313 #else // __MINGW32__ 1313 #else // __MINGW32__
1314 void OS::LogSharedLibraryAddresses() { } 1314 void OS::LogSharedLibraryAddresses() { }
1315 int OS::StackWalk(Vector<OS::StackFrame> frames) { return 0; } 1315 int OS::StackWalk(Vector<OS::StackFrame> frames) { return 0; }
1316 #endif // __MINGW32__ 1316 #endif // __MINGW32__
1317 1317
1318 1318
1319 uint64_t OS::CpuFeaturesImpliedByPlatform() {
1320 return 0; // Windows runs on anything.
1321 }
1322
1323
1319 double OS::nan_value() { 1324 double OS::nan_value() {
1320 #ifdef _MSC_VER 1325 #ifdef _MSC_VER
1321 // Positive Quiet NaN with no payload (aka. Indeterminate) has all bits 1326 // Positive Quiet NaN with no payload (aka. Indeterminate) has all bits
1322 // in mask set, so value equals mask. 1327 // in mask set, so value equals mask.
1323 static const __int64 nanval = kQuietNaNMask; 1328 static const __int64 nanval = kQuietNaNMask;
1324 return *reinterpret_cast<const double*>(&nanval); 1329 return *reinterpret_cast<const double*>(&nanval);
1325 #else // _MSC_VER 1330 #else // _MSC_VER
1326 return NAN; 1331 return NAN;
1327 #endif // _MSC_VER 1332 #endif // _MSC_VER
1328 } 1333 }
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
1894 1899
1895 // Release the thread handles 1900 // Release the thread handles
1896 CloseHandle(data_->sampler_thread_); 1901 CloseHandle(data_->sampler_thread_);
1897 CloseHandle(data_->profiled_thread_); 1902 CloseHandle(data_->profiled_thread_);
1898 } 1903 }
1899 1904
1900 1905
1901 #endif // ENABLE_LOGGING_AND_PROFILING 1906 #endif // ENABLE_LOGGING_AND_PROFILING
1902 1907
1903 } } // namespace v8::internal 1908 } } // namespace v8::internal
OLDNEW
« src/arm/assembler-arm.h ('K') | « src/platform-nullos.cc ('k') | src/serialize.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698