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

Side by Side Diff: src/platform.h

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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 static void VPrintError(const char* format, va_list args); 165 static void VPrintError(const char* format, va_list args);
166 166
167 // Allocate/Free memory used by JS heap. Pages are readable/writable, but 167 // Allocate/Free memory used by JS heap. Pages are readable/writable, but
168 // they are not guaranteed to be executable unless 'executable' is true. 168 // they are not guaranteed to be executable unless 'executable' is true.
169 // Returns the address of allocated memory, or NULL if failed. 169 // Returns the address of allocated memory, or NULL if failed.
170 static void* Allocate(const size_t requested, 170 static void* Allocate(const size_t requested,
171 size_t* allocated, 171 size_t* allocated,
172 bool is_executable); 172 bool is_executable);
173 static void Free(void* address, const size_t size); 173 static void Free(void* address, const size_t size);
174 174
175 // This is the granularity at which the ProtectCode(...) call can set page
176 // permissions.
177 static intptr_t CommitPageSize();
178
175 // Mark code segments non-writable. 179 // Mark code segments non-writable.
176 static void ProtectCode(void* address, const size_t size); 180 static void ProtectCode(void* address, const size_t size);
177 181
178 // Assign memory as a guard page so that access will cause an exception. 182 // Assign memory as a guard page so that access will cause an exception.
179 static void Guard(void* address, const size_t size); 183 static void Guard(void* address, const size_t size);
180 184
181 // Generate a random address to be used for hinting mmap(). 185 // Generate a random address to be used for hinting mmap().
182 static void* GetRandomMmapAddr(); 186 static void* GetRandomMmapAddr();
183 187
184 // Get the Alignment guaranteed by Allocate(). 188 // Get the Alignment guaranteed by Allocate().
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 Atomic32 active_; 688 Atomic32 active_;
685 PlatformData* data_; // Platform specific data. 689 PlatformData* data_; // Platform specific data.
686 int samples_taken_; // Counts stack samples taken. 690 int samples_taken_; // Counts stack samples taken.
687 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); 691 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler);
688 }; 692 };
689 693
690 694
691 } } // namespace v8::internal 695 } } // namespace v8::internal
692 696
693 #endif // V8_PLATFORM_H_ 697 #endif // V8_PLATFORM_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/platform-posix.cc » ('j') | src/store-buffer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698