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

Side by Side Diff: src/base/platform/platform-solaris.cc

Issue 2299753002: Made zone segments aligned in memory and included a pointer to the zone in the header. Larger objec…
Patch Set: Added a zone segment pool for small segments to avoid frequent sys calls Created 4 years, 3 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
« no previous file with comments | « src/base/platform/platform-qnx.cc ('k') | src/base/platform/platform-win32.cc » ('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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Platform-specific code for Solaris 10 goes here. For the POSIX-compatible 5 // Platform-specific code for Solaris 10 goes here. For the POSIX-compatible
6 // parts, the implementation is in platform-posix.cc. 6 // parts, the implementation is in platform-posix.cc.
7 7
8 #ifdef __sparc 8 #ifdef __sparc
9 # error "V8 does not support the SPARC CPU architecture." 9 # error "V8 does not support the SPARC CPU architecture."
10 #endif 10 #endif
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 127
128 VirtualMemory::~VirtualMemory() { 128 VirtualMemory::~VirtualMemory() {
129 if (IsReserved()) { 129 if (IsReserved()) {
130 bool result = ReleaseRegion(address(), size()); 130 bool result = ReleaseRegion(address(), size());
131 DCHECK(result); 131 DCHECK(result);
132 USE(result); 132 USE(result);
133 } 133 }
134 } 134 }
135 135
136 136 bool VirtualMemory::IsReserved() const { return address_ != NULL; }
137 bool VirtualMemory::IsReserved() {
138 return address_ != NULL;
139 }
140
141 137
142 void VirtualMemory::Reset() { 138 void VirtualMemory::Reset() {
143 address_ = NULL; 139 address_ = NULL;
144 size_ = 0; 140 size_ = 0;
145 } 141 }
146 142
147 143
148 bool VirtualMemory::Commit(void* address, size_t size, bool is_executable) { 144 bool VirtualMemory::Commit(void* address, size_t size, bool is_executable) {
149 return CommitRegion(address, size, is_executable); 145 return CommitRegion(address, size, is_executable);
150 } 146 }
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 } 204 }
209 205
210 206
211 bool VirtualMemory::HasLazyCommits() { 207 bool VirtualMemory::HasLazyCommits() {
212 // TODO(alph): implement for the platform. 208 // TODO(alph): implement for the platform.
213 return false; 209 return false;
214 } 210 }
215 211
216 } // namespace base 212 } // namespace base
217 } // namespace v8 213 } // namespace v8
OLDNEW
« no previous file with comments | « src/base/platform/platform-qnx.cc ('k') | src/base/platform/platform-win32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698