| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |