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...) Expand 10 before | Expand all | Expand 10 after 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 } |
| 780 |
| 781 |
777 void Script::ScriptVerify() { | 782 void Script::ScriptVerify() { |
778 CHECK(IsScript()); | 783 CHECK(IsScript()); |
779 VerifyPointer(source()); | 784 VerifyPointer(source()); |
780 VerifyPointer(name()); | 785 VerifyPointer(name()); |
781 line_offset()->SmiVerify(); | 786 line_offset()->SmiVerify(); |
782 column_offset()->SmiVerify(); | 787 column_offset()->SmiVerify(); |
783 VerifyPointer(data()); | 788 VerifyPointer(data()); |
784 VerifyPointer(wrapper()); | 789 VerifyPointer(wrapper()); |
785 type()->SmiVerify(); | 790 type()->SmiVerify(); |
786 VerifyPointer(line_ends()); | 791 VerifyPointer(line_ends()); |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1005 for (int i = 0; i < number_of_transitions(); ++i) { | 1010 for (int i = 0; i < number_of_transitions(); ++i) { |
1006 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; | 1011 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; |
1007 } | 1012 } |
1008 return true; | 1013 return true; |
1009 } | 1014 } |
1010 | 1015 |
1011 | 1016 |
1012 #endif // DEBUG | 1017 #endif // DEBUG |
1013 | 1018 |
1014 } } // namespace v8::internal | 1019 } } // namespace v8::internal |
OLD | NEW |