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

Side by Side Diff: src/objects.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/json-parser.h ('k') | src/parsing/parser.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/objects.h" 5 #include "src/objects.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <iomanip> 8 #include <iomanip>
9 #include <sstream> 9 #include <sstream>
10 10
(...skipping 8629 matching lines...) Expand 10 before | Expand all | Expand 10 after
8640 } 8640 }
8641 } 8641 }
8642 accumulator->NextPrototype(); // Prepare for accumulating keys. 8642 accumulator->NextPrototype(); // Prepare for accumulating keys.
8643 // 15. If extensibleTarget is true and targetNonconfigurableKeys is empty, 8643 // 15. If extensibleTarget is true and targetNonconfigurableKeys is empty,
8644 // then: 8644 // then:
8645 if (extensible_target && nonconfigurable_keys_length == 0) { 8645 if (extensible_target && nonconfigurable_keys_length == 0) {
8646 // 15a. Return trapResult. 8646 // 15a. Return trapResult.
8647 return accumulator->AddKeysFromProxy(proxy, trap_result); 8647 return accumulator->AddKeysFromProxy(proxy, trap_result);
8648 } 8648 }
8649 // 16. Let uncheckedResultKeys be a new List which is a copy of trapResult. 8649 // 16. Let uncheckedResultKeys be a new List which is a copy of trapResult.
8650 Zone set_zone; 8650 Zone set_zone(isolate->allocator());
8651 const int kPresent = 1; 8651 const int kPresent = 1;
8652 const int kGone = 0; 8652 const int kGone = 0;
8653 IdentityMap<int> unchecked_result_keys(isolate->heap(), &set_zone); 8653 IdentityMap<int> unchecked_result_keys(isolate->heap(), &set_zone);
8654 int unchecked_result_keys_size = 0; 8654 int unchecked_result_keys_size = 0;
8655 for (int i = 0; i < trap_result->length(); ++i) { 8655 for (int i = 0; i < trap_result->length(); ++i) {
8656 DCHECK(trap_result->get(i)->IsUniqueName()); 8656 DCHECK(trap_result->get(i)->IsUniqueName());
8657 Object* key = trap_result->get(i); 8657 Object* key = trap_result->get(i);
8658 int* entry = unchecked_result_keys.Get(key); 8658 int* entry = unchecked_result_keys.Get(key);
8659 if (*entry != kPresent) { 8659 if (*entry != kPresent) {
8660 *entry = kPresent; 8660 *entry = kPresent;
(...skipping 11093 matching lines...) Expand 10 before | Expand all | Expand 10 after
19754 if (cell->value() != *new_value) { 19754 if (cell->value() != *new_value) {
19755 cell->set_value(*new_value); 19755 cell->set_value(*new_value);
19756 Isolate* isolate = cell->GetIsolate(); 19756 Isolate* isolate = cell->GetIsolate();
19757 cell->dependent_code()->DeoptimizeDependentCodeGroup( 19757 cell->dependent_code()->DeoptimizeDependentCodeGroup(
19758 isolate, DependentCode::kPropertyCellChangedGroup); 19758 isolate, DependentCode::kPropertyCellChangedGroup);
19759 } 19759 }
19760 } 19760 }
19761 19761
19762 } // namespace internal 19762 } // namespace internal
19763 } // namespace v8 19763 } // namespace v8
OLDNEW
« no previous file with comments | « src/json-parser.h ('k') | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698