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

Side by Side Diff: src/objects-debug.cc

Issue 1328003002: [heap] No leakage of objects-visiting.h outside of heap. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-heap-scavenger
Patch Set: Rebased. Created 5 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/objects.cc ('k') | src/objects-inl.h » ('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/objects.h" 5 #include "src/objects.h"
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/disasm.h" 8 #include "src/disasm.h"
9 #include "src/disassembler.h" 9 #include "src/disassembler.h"
10 #include "src/macro-assembler.h" 10 #include "src/macro-assembler.h"
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 CHECK(!FLAG_unbox_double_fields || 336 CHECK(!FLAG_unbox_double_fields ||
337 layout_descriptor()->IsConsistentWithMap(this)); 337 layout_descriptor()->IsConsistentWithMap(this));
338 } 338 }
339 339
340 340
341 void Map::DictionaryMapVerify() { 341 void Map::DictionaryMapVerify() {
342 MapVerify(); 342 MapVerify();
343 CHECK(is_dictionary_map()); 343 CHECK(is_dictionary_map());
344 CHECK(instance_descriptors()->IsEmpty()); 344 CHECK(instance_descriptors()->IsEmpty());
345 CHECK_EQ(0, unused_property_fields()); 345 CHECK_EQ(0, unused_property_fields());
346 CHECK_EQ(StaticVisitorBase::GetVisitorId(this), visitor_id()); 346 CHECK_EQ(Heap::GetStaticVisitorIdForMap(this), visitor_id());
347 } 347 }
348 348
349 349
350 void Map::VerifyOmittedMapChecks() { 350 void Map::VerifyOmittedMapChecks() {
351 if (!FLAG_omit_map_checks_for_leaf_maps) return; 351 if (!FLAG_omit_map_checks_for_leaf_maps) return;
352 if (!is_stable() || 352 if (!is_stable() ||
353 is_deprecated() || 353 is_deprecated() ||
354 is_dictionary_map()) { 354 is_dictionary_map()) {
355 CHECK_EQ(0, dependent_code()->number_of_entries( 355 CHECK_EQ(0, dependent_code()->number_of_entries(
356 DependentCode::kPrototypeCheckGroup)); 356 DependentCode::kPrototypeCheckGroup));
(...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after
1329 1329
1330 // Both are done at the same time. 1330 // Both are done at the same time.
1331 CHECK_EQ(new_it.done(), old_it.done()); 1331 CHECK_EQ(new_it.done(), old_it.done());
1332 } 1332 }
1333 1333
1334 1334
1335 #endif // DEBUG 1335 #endif // DEBUG
1336 1336
1337 } // namespace internal 1337 } // namespace internal
1338 } // namespace v8 1338 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698