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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |