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

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

Issue 24996003: Revert "Add methods to enable configuration of ResourceConstraints based on limits derived at runti… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase Created 7 years, 2 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/platform-posix.cc ('k') | tools/gyp/v8.gyp » ('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 1253 matching lines...) Expand 10 before | Expand all | Expand 10 after
1264 if (!LoadDbgHelpAndTlHelp32()) return; 1264 if (!LoadDbgHelpAndTlHelp32()) return;
1265 HANDLE process_handle = GetCurrentProcess(); 1265 HANDLE process_handle = GetCurrentProcess();
1266 LoadSymbols(isolate, process_handle); 1266 LoadSymbols(isolate, process_handle);
1267 } 1267 }
1268 1268
1269 1269
1270 void OS::SignalCodeMovingGC() { 1270 void OS::SignalCodeMovingGC() {
1271 } 1271 }
1272 1272
1273 1273
1274 uint64_t OS::TotalPhysicalMemory() {
1275 MEMORYSTATUSEX memory_info;
1276 memory_info.dwLength = sizeof(memory_info);
1277 if (!GlobalMemoryStatusEx(&memory_info)) {
1278 UNREACHABLE();
1279 return 0;
1280 }
1281
1282 return static_cast<uint64_t>(memory_info.ullTotalPhys);
1283 }
1284
1285
1286 #else // __MINGW32__ 1274 #else // __MINGW32__
1287 void OS::LogSharedLibraryAddresses(Isolate* isolate) { } 1275 void OS::LogSharedLibraryAddresses(Isolate* isolate) { }
1288 void OS::SignalCodeMovingGC() { } 1276 void OS::SignalCodeMovingGC() { }
1289 #endif // __MINGW32__ 1277 #endif // __MINGW32__
1290 1278
1291 1279
1292 uint64_t OS::CpuFeaturesImpliedByPlatform() { 1280 uint64_t OS::CpuFeaturesImpliedByPlatform() {
1293 return 0; // Windows runs on anything. 1281 return 0; // Windows runs on anything.
1294 } 1282 }
1295 1283
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
1520 ASSERT(result); 1508 ASSERT(result);
1521 } 1509 }
1522 1510
1523 1511
1524 1512
1525 void Thread::YieldCPU() { 1513 void Thread::YieldCPU() {
1526 Sleep(0); 1514 Sleep(0);
1527 } 1515 }
1528 1516
1529 } } // namespace v8::internal 1517 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform-posix.cc ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698