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

Side by Side Diff: src/fast-accessor-assembler.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/deoptimizer.cc ('k') | src/gdb-jit.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/fast-accessor-assembler.h" 5 #include "src/fast-accessor-assembler.h"
6 6
7 #include "src/base/logging.h" 7 #include "src/base/logging.h"
8 #include "src/code-stubs.h" // For CallApiCallbackStub. 8 #include "src/code-stubs.h" // For CallApiCallbackStub.
9 #include "src/compiler/code-stub-assembler.h" 9 #include "src/compiler/code-stub-assembler.h"
10 #include "src/handles-inl.h" 10 #include "src/handles-inl.h"
11 #include "src/objects.h" // For FAA::LoadInternalField impl. 11 #include "src/objects.h" // For FAA::LoadInternalField impl.
12 12
13 using v8::internal::compiler::CodeStubAssembler; 13 using v8::internal::compiler::CodeStubAssembler;
14 using v8::internal::compiler::Node; 14 using v8::internal::compiler::Node;
15 15
16 namespace v8 { 16 namespace v8 {
17 namespace internal { 17 namespace internal {
18 18
19 FastAccessorAssembler::FastAccessorAssembler(Isolate* isolate) 19 FastAccessorAssembler::FastAccessorAssembler(Isolate* isolate)
20 : zone_(), 20 : zone_(isolate->allocator()),
21 isolate_(isolate), 21 isolate_(isolate),
22 assembler_(new CodeStubAssembler(isolate, zone(), 1, 22 assembler_(new CodeStubAssembler(isolate, zone(), 1,
23 Code::ComputeFlags(Code::STUB), 23 Code::ComputeFlags(Code::STUB),
24 "FastAccessorAssembler")), 24 "FastAccessorAssembler")),
25 state_(kBuilding) {} 25 state_(kBuilding) {}
26 26
27 FastAccessorAssembler::~FastAccessorAssembler() { Clear(); } 27 FastAccessorAssembler::~FastAccessorAssembler() { Clear(); }
28 28
29 FastAccessorAssembler::ValueId FastAccessorAssembler::IntegerConstant( 29 FastAccessorAssembler::ValueId FastAccessorAssembler::IntegerConstant(
30 int const_value) { 30 int const_value) {
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 void FastAccessorAssembler::Clear() { 222 void FastAccessorAssembler::Clear() {
223 for (auto label : labels_) { 223 for (auto label : labels_) {
224 delete label; 224 delete label;
225 } 225 }
226 nodes_.clear(); 226 nodes_.clear();
227 labels_.clear(); 227 labels_.clear();
228 } 228 }
229 229
230 } // namespace internal 230 } // namespace internal
231 } // namespace v8 231 } // namespace v8
OLDNEW
« no previous file with comments | « src/deoptimizer.cc ('k') | src/gdb-jit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698