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

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

Issue 1435313002: Refactor dependent code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 CHECK_EQ(0, unused_property_fields()); 343 CHECK_EQ(0, unused_property_fields());
344 CHECK_EQ(Heap::GetStaticVisitorIdForMap(this), visitor_id()); 344 CHECK_EQ(Heap::GetStaticVisitorIdForMap(this), visitor_id());
345 } 345 }
346 346
347 347
348 void Map::VerifyOmittedMapChecks() { 348 void Map::VerifyOmittedMapChecks() {
349 if (!FLAG_omit_map_checks_for_leaf_maps) return; 349 if (!FLAG_omit_map_checks_for_leaf_maps) return;
350 if (!is_stable() || 350 if (!is_stable() ||
351 is_deprecated() || 351 is_deprecated() ||
352 is_dictionary_map()) { 352 is_dictionary_map()) {
353 CHECK_EQ(0, dependent_code()->number_of_entries( 353 CHECK(dependent_code()->IsEmpty(DependentCode::kPrototypeCheckGroup));
354 DependentCode::kPrototypeCheckGroup));
355 } 354 }
356 } 355 }
357 356
358 357
359 void CodeCache::CodeCacheVerify() { 358 void CodeCache::CodeCacheVerify() {
360 VerifyHeapPointer(default_cache()); 359 VerifyHeapPointer(default_cache());
361 VerifyHeapPointer(normal_type_cache()); 360 VerifyHeapPointer(normal_type_cache());
362 CHECK(default_cache()->IsFixedArray()); 361 CHECK(default_cache()->IsFixedArray());
363 CHECK(normal_type_cache()->IsUndefined() 362 CHECK(normal_type_cache()->IsUndefined()
364 || normal_type_cache()->IsCodeCacheHashTable()); 363 || normal_type_cache()->IsCodeCacheHashTable());
(...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after
1309 1308
1310 // Both are done at the same time. 1309 // Both are done at the same time.
1311 CHECK_EQ(new_it.done(), old_it.done()); 1310 CHECK_EQ(new_it.done(), old_it.done());
1312 } 1311 }
1313 1312
1314 1313
1315 #endif // DEBUG 1314 #endif // DEBUG
1316 1315
1317 } // namespace internal 1316 } // namespace internal
1318 } // namespace v8 1317 } // 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