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

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

Issue 2091019: CPU profiler: make code events handling scalable. (Closed)
Patch Set: Created 10 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
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 1322 matching lines...) Expand 10 before | Expand all | Expand 10 after
1333 1333
1334 int OS::ActivationFrameAlignment() { 1334 int OS::ActivationFrameAlignment() {
1335 #ifdef _WIN64 1335 #ifdef _WIN64
1336 return 16; // Windows 64-bit ABI requires the stack to be 16-byte aligned. 1336 return 16; // Windows 64-bit ABI requires the stack to be 16-byte aligned.
1337 #else 1337 #else
1338 return 8; // Floating-point math runs faster with 8-byte alignment. 1338 return 8; // Floating-point math runs faster with 8-byte alignment.
1339 #endif 1339 #endif
1340 } 1340 }
1341 1341
1342 1342
1343 void OS::ReleaseStore(volatile AtomicWord* ptr, AtomicWord value) {
1344 MemoryBarrier();
1345 *ptr = value;
1346 }
1347
1348
1343 bool VirtualMemory::IsReserved() { 1349 bool VirtualMemory::IsReserved() {
1344 return address_ != NULL; 1350 return address_ != NULL;
1345 } 1351 }
1346 1352
1347 1353
1348 VirtualMemory::VirtualMemory(size_t size) { 1354 VirtualMemory::VirtualMemory(size_t size) {
1349 address_ = VirtualAlloc(NULL, size, MEM_RESERVE, PAGE_NOACCESS); 1355 address_ = VirtualAlloc(NULL, size, MEM_RESERVE, PAGE_NOACCESS);
1350 size_ = size; 1356 size_ = size;
1351 } 1357 }
1352 1358
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
1896 1902
1897 // Release the thread handles 1903 // Release the thread handles
1898 CloseHandle(data_->sampler_thread_); 1904 CloseHandle(data_->sampler_thread_);
1899 CloseHandle(data_->profiled_thread_); 1905 CloseHandle(data_->profiled_thread_);
1900 } 1906 }
1901 1907
1902 1908
1903 #endif // ENABLE_LOGGING_AND_PROFILING 1909 #endif // ENABLE_LOGGING_AND_PROFILING
1904 1910
1905 } } // namespace v8::internal 1911 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform-macos.cc ('k') | src/unbound-queue.h » ('j') | src/unbound-queue.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698