OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 | 597 |
598 | 598 |
599 void Code::VerifyEmbeddedMapsDependency() { | 599 void Code::VerifyEmbeddedMapsDependency() { |
600 int mode_mask = RelocInfo::ModeMask(RelocInfo::EMBEDDED_OBJECT); | 600 int mode_mask = RelocInfo::ModeMask(RelocInfo::EMBEDDED_OBJECT); |
601 for (RelocIterator it(this, mode_mask); !it.done(); it.next()) { | 601 for (RelocIterator it(this, mode_mask); !it.done(); it.next()) { |
602 RelocInfo::Mode mode = it.rinfo()->rmode(); | 602 RelocInfo::Mode mode = it.rinfo()->rmode(); |
603 if (mode == RelocInfo::EMBEDDED_OBJECT && | 603 if (mode == RelocInfo::EMBEDDED_OBJECT && |
604 it.rinfo()->target_object()->IsMap()) { | 604 it.rinfo()->target_object()->IsMap()) { |
605 Map* map = Map::cast(it.rinfo()->target_object()); | 605 Map* map = Map::cast(it.rinfo()->target_object()); |
606 if (map->CanTransition()) { | 606 if (map->CanTransition()) { |
607 CHECK(map->dependent_codes()->Contains(this)); | 607 CHECK(map->dependent_code()->Contains( |
| 608 DependentCode::kWeaklyEmbeddedGroup, this)); |
608 } | 609 } |
609 } | 610 } |
610 } | 611 } |
611 } | 612 } |
612 | 613 |
613 | 614 |
614 void JSArray::JSArrayVerify() { | 615 void JSArray::JSArrayVerify() { |
615 JSObjectVerify(); | 616 JSObjectVerify(); |
616 CHECK(length()->IsNumber() || length()->IsUndefined()); | 617 CHECK(length()->IsNumber() || length()->IsUndefined()); |
617 CHECK(elements()->IsUndefined() || | 618 CHECK(elements()->IsUndefined() || |
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1048 for (int i = 0; i < number_of_transitions(); ++i) { | 1049 for (int i = 0; i < number_of_transitions(); ++i) { |
1049 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; | 1050 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; |
1050 } | 1051 } |
1051 return true; | 1052 return true; |
1052 } | 1053 } |
1053 | 1054 |
1054 | 1055 |
1055 #endif // DEBUG | 1056 #endif // DEBUG |
1056 | 1057 |
1057 } } // namespace v8::internal | 1058 } } // namespace v8::internal |
OLD | NEW |