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 756 matching lines...) Loading... |
767 VerifyPointer(args()); | 767 VerifyPointer(args()); |
768 } | 768 } |
769 | 769 |
770 | 770 |
771 void TypeSwitchInfo::TypeSwitchInfoVerify() { | 771 void TypeSwitchInfo::TypeSwitchInfoVerify() { |
772 CHECK(IsTypeSwitchInfo()); | 772 CHECK(IsTypeSwitchInfo()); |
773 VerifyPointer(types()); | 773 VerifyPointer(types()); |
774 } | 774 } |
775 | 775 |
776 | 776 |
| 777 void AllocationSiteInfo::AllocationSiteInfoVerify() { |
| 778 CHECK(IsAllocationSiteInfo()); |
| 779 VerifyHeapPointer(payload()); |
| 780 CHECK(payload()->IsObject()); |
| 781 } |
| 782 |
| 783 |
777 void Script::ScriptVerify() { | 784 void Script::ScriptVerify() { |
778 CHECK(IsScript()); | 785 CHECK(IsScript()); |
779 VerifyPointer(source()); | 786 VerifyPointer(source()); |
780 VerifyPointer(name()); | 787 VerifyPointer(name()); |
781 line_offset()->SmiVerify(); | 788 line_offset()->SmiVerify(); |
782 column_offset()->SmiVerify(); | 789 column_offset()->SmiVerify(); |
783 VerifyPointer(data()); | 790 VerifyPointer(data()); |
784 VerifyPointer(wrapper()); | 791 VerifyPointer(wrapper()); |
785 type()->SmiVerify(); | 792 type()->SmiVerify(); |
786 VerifyPointer(line_ends()); | 793 VerifyPointer(line_ends()); |
(...skipping 218 matching lines...) Loading... |
1005 for (int i = 0; i < number_of_transitions(); ++i) { | 1012 for (int i = 0; i < number_of_transitions(); ++i) { |
1006 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; | 1013 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; |
1007 } | 1014 } |
1008 return true; | 1015 return true; |
1009 } | 1016 } |
1010 | 1017 |
1011 | 1018 |
1012 #endif // DEBUG | 1019 #endif // DEBUG |
1013 | 1020 |
1014 } } // namespace v8::internal | 1021 } } // namespace v8::internal |
OLD | NEW |