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 760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
771 | 771 |
772 VerifyPointer(elements()); | 772 VerifyPointer(elements()); |
773 } | 773 } |
774 | 774 |
775 | 775 |
776 void Foreign::ForeignVerify() { | 776 void Foreign::ForeignVerify() { |
777 CHECK(IsForeign()); | 777 CHECK(IsForeign()); |
778 } | 778 } |
779 | 779 |
780 | 780 |
| 781 void Box::BoxVerify() { |
| 782 CHECK(IsBox()); |
| 783 value()->Verify(); |
| 784 } |
| 785 |
| 786 |
781 void AccessorInfo::AccessorInfoVerify() { | 787 void AccessorInfo::AccessorInfoVerify() { |
782 VerifyPointer(name()); | 788 VerifyPointer(name()); |
783 VerifyPointer(flag()); | 789 VerifyPointer(flag()); |
784 VerifyPointer(expected_receiver_type()); | 790 VerifyPointer(expected_receiver_type()); |
785 } | 791 } |
786 | 792 |
787 | 793 |
788 void ExecutableAccessorInfo::ExecutableAccessorInfoVerify() { | 794 void ExecutableAccessorInfo::ExecutableAccessorInfoVerify() { |
789 CHECK(IsExecutableAccessorInfo()); | 795 CHECK(IsExecutableAccessorInfo()); |
790 AccessorInfoVerify(); | 796 AccessorInfoVerify(); |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1120 for (int i = 0; i < number_of_transitions(); ++i) { | 1126 for (int i = 0; i < number_of_transitions(); ++i) { |
1121 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; | 1127 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; |
1122 } | 1128 } |
1123 return true; | 1129 return true; |
1124 } | 1130 } |
1125 | 1131 |
1126 | 1132 |
1127 #endif // DEBUG | 1133 #endif // DEBUG |
1128 | 1134 |
1129 } } // namespace v8::internal | 1135 } } // namespace v8::internal |
OLD | NEW |