| 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/disasm.h" | 7 #include "src/disasm.h" |
| 8 #include "src/disassembler.h" | 8 #include "src/disassembler.h" |
| 9 #include "src/heap/objects-visiting.h" | 9 #include "src/heap/objects-visiting.h" |
| 10 #include "src/jsregexp.h" | 10 #include "src/jsregexp.h" |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 // TODO(ishell): turn it back to SLOW_DCHECK. | 327 // TODO(ishell): turn it back to SLOW_DCHECK. |
| 328 CHECK(!FLAG_unbox_double_fields || | 328 CHECK(!FLAG_unbox_double_fields || |
| 329 layout_descriptor()->IsConsistentWithMap(this)); | 329 layout_descriptor()->IsConsistentWithMap(this)); |
| 330 } | 330 } |
| 331 | 331 |
| 332 | 332 |
| 333 void Map::DictionaryMapVerify() { | 333 void Map::DictionaryMapVerify() { |
| 334 MapVerify(); | 334 MapVerify(); |
| 335 CHECK(is_dictionary_map()); | 335 CHECK(is_dictionary_map()); |
| 336 CHECK(instance_descriptors()->IsEmpty()); | 336 CHECK(instance_descriptors()->IsEmpty()); |
| 337 CHECK_EQ(0, pre_allocated_property_fields()); | |
| 338 CHECK_EQ(0, unused_property_fields()); | 337 CHECK_EQ(0, unused_property_fields()); |
| 339 CHECK_EQ(StaticVisitorBase::GetVisitorId(this), visitor_id()); | 338 CHECK_EQ(StaticVisitorBase::GetVisitorId(this), visitor_id()); |
| 340 } | 339 } |
| 341 | 340 |
| 342 | 341 |
| 343 void Map::VerifyOmittedMapChecks() { | 342 void Map::VerifyOmittedMapChecks() { |
| 344 if (!FLAG_omit_map_checks_for_leaf_maps) return; | 343 if (!FLAG_omit_map_checks_for_leaf_maps) return; |
| 345 if (!is_stable() || | 344 if (!is_stable() || |
| 346 is_deprecated() || | 345 is_deprecated() || |
| 347 is_dictionary_map()) { | 346 is_dictionary_map()) { |
| (...skipping 925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1273 : it.rinfo()->target_object(); | 1272 : it.rinfo()->target_object(); |
| 1274 CHECK(!CanLeak(target, heap, skip_weak_cell)); | 1273 CHECK(!CanLeak(target, heap, skip_weak_cell)); |
| 1275 } | 1274 } |
| 1276 } | 1275 } |
| 1277 | 1276 |
| 1278 | 1277 |
| 1279 #endif // DEBUG | 1278 #endif // DEBUG |
| 1280 | 1279 |
| 1281 } // namespace internal | 1280 } // namespace internal |
| 1282 } // namespace v8 | 1281 } // namespace v8 |
| OLD | NEW |