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

Side by Side Diff: src/handles.cc

Issue 1847543002: Expose a lower bound of malloc'd memory via heap statistics (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 4 years, 8 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/gdb-jit.cc ('k') | src/interpreter/interpreter.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 #include "src/handles.h" 5 #include "src/handles.h"
6 6
7 #include "src/address-map.h" 7 #include "src/address-map.h"
8 #include "src/base/logging.h" 8 #include "src/base/logging.h"
9 #include "src/identity-map.h" 9 #include "src/identity-map.h"
10 #include "src/objects-inl.h" 10 #include "src/objects-inl.h"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 111
112 Address HandleScope::current_next_address(Isolate* isolate) { 112 Address HandleScope::current_next_address(Isolate* isolate) {
113 return reinterpret_cast<Address>(&isolate->handle_scope_data()->next); 113 return reinterpret_cast<Address>(&isolate->handle_scope_data()->next);
114 } 114 }
115 115
116 116
117 Address HandleScope::current_limit_address(Isolate* isolate) { 117 Address HandleScope::current_limit_address(Isolate* isolate) {
118 return reinterpret_cast<Address>(&isolate->handle_scope_data()->limit); 118 return reinterpret_cast<Address>(&isolate->handle_scope_data()->limit);
119 } 119 }
120 120
121
122 CanonicalHandleScope::CanonicalHandleScope(Isolate* isolate) 121 CanonicalHandleScope::CanonicalHandleScope(Isolate* isolate)
123 : isolate_(isolate) { 122 : isolate_(isolate), zone_(isolate->allocator()) {
124 HandleScopeData* handle_scope_data = isolate_->handle_scope_data(); 123 HandleScopeData* handle_scope_data = isolate_->handle_scope_data();
125 prev_canonical_scope_ = handle_scope_data->canonical_scope; 124 prev_canonical_scope_ = handle_scope_data->canonical_scope;
126 handle_scope_data->canonical_scope = this; 125 handle_scope_data->canonical_scope = this;
127 root_index_map_ = new RootIndexMap(isolate); 126 root_index_map_ = new RootIndexMap(isolate);
128 identity_map_ = new IdentityMap<Object**>(isolate->heap(), &zone_); 127 identity_map_ = new IdentityMap<Object**>(isolate->heap(), &zone_);
129 canonical_level_ = handle_scope_data->level; 128 canonical_level_ = handle_scope_data->level;
130 } 129 }
131 130
132 131
133 CanonicalHandleScope::~CanonicalHandleScope() { 132 CanonicalHandleScope::~CanonicalHandleScope() {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 data->next = prev_next_; 193 data->next = prev_next_;
195 data->limit = prev_limit_; 194 data->limit = prev_limit_;
196 #ifdef DEBUG 195 #ifdef DEBUG
197 handles_detached_ = true; 196 handles_detached_ = true;
198 #endif 197 #endif
199 return deferred; 198 return deferred;
200 } 199 }
201 200
202 } // namespace internal 201 } // namespace internal
203 } // namespace v8 202 } // namespace v8
OLDNEW
« no previous file with comments | « src/gdb-jit.cc ('k') | src/interpreter/interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698