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

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

Issue 8776032: Let store buffer start out small for a 1Mbyte saving in boot (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 871 matching lines...) Expand 10 before | Expand all | Expand 10 after
882 } 882 }
883 883
884 884
885 void OS::Free(void* address, const size_t size) { 885 void OS::Free(void* address, const size_t size) {
886 // TODO(1240712): VirtualFree has a return value which is ignored here. 886 // TODO(1240712): VirtualFree has a return value which is ignored here.
887 VirtualFree(address, 0, MEM_RELEASE); 887 VirtualFree(address, 0, MEM_RELEASE);
888 USE(size); 888 USE(size);
889 } 889 }
890 890
891 891
892 intptr_t OS::CommitPageSize() {
893 return 4096;
894 }
895
896
892 void OS::ProtectCode(void* address, const size_t size) { 897 void OS::ProtectCode(void* address, const size_t size) {
893 DWORD old_protect; 898 DWORD old_protect;
894 VirtualProtect(address, size, PAGE_EXECUTE_READ, &old_protect); 899 VirtualProtect(address, size, PAGE_EXECUTE_READ, &old_protect);
895 } 900 }
896 901
897 902
898 void OS::Guard(void* address, const size_t size) { 903 void OS::Guard(void* address, const size_t size) {
899 DWORD oldprotect; 904 DWORD oldprotect;
900 VirtualProtect(address, size, PAGE_READONLY | PAGE_GUARD, &oldprotect); 905 VirtualProtect(address, size, PAGE_READONLY | PAGE_GUARD, &oldprotect);
901 } 906 }
(...skipping 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after
2033 2038
2034 2039
2035 void Sampler::Stop() { 2040 void Sampler::Stop() {
2036 ASSERT(IsActive()); 2041 ASSERT(IsActive());
2037 SamplerThread::RemoveActiveSampler(this); 2042 SamplerThread::RemoveActiveSampler(this);
2038 SetActive(false); 2043 SetActive(false);
2039 } 2044 }
2040 2045
2041 2046
2042 } } // namespace v8::internal 2047 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform-posix.cc ('k') | src/store-buffer.h » ('j') | src/store-buffer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698