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_codes()->Contains( |
608 DependentCodes::kWeaklyEmbeddedGroup, this)); | |
Michael Starzinger
2013/02/14 10:40:52
Indentation is off.
| |
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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1030 for (int i = 0; i < number_of_transitions(); ++i) { | 1031 for (int i = 0; i < number_of_transitions(); ++i) { |
1031 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; | 1032 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; |
1032 } | 1033 } |
1033 return true; | 1034 return true; |
1034 } | 1035 } |
1035 | 1036 |
1036 | 1037 |
1037 #endif // DEBUG | 1038 #endif // DEBUG |
1038 | 1039 |
1039 } } // namespace v8::internal | 1040 } } // namespace v8::internal |
OLD | NEW |