| 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 870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 881 VerifyPointer(args()); | 881 VerifyPointer(args()); |
| 882 } | 882 } |
| 883 | 883 |
| 884 | 884 |
| 885 void TypeSwitchInfo::TypeSwitchInfoVerify() { | 885 void TypeSwitchInfo::TypeSwitchInfoVerify() { |
| 886 CHECK(IsTypeSwitchInfo()); | 886 CHECK(IsTypeSwitchInfo()); |
| 887 VerifyPointer(types()); | 887 VerifyPointer(types()); |
| 888 } | 888 } |
| 889 | 889 |
| 890 | 890 |
| 891 void AllocationSite::AllocationSiteVerify() { |
| 892 CHECK(IsAllocationSite()); |
| 893 } |
| 894 |
| 895 |
| 891 void AllocationSiteInfo::AllocationSiteInfoVerify() { | 896 void AllocationSiteInfo::AllocationSiteInfoVerify() { |
| 892 CHECK(IsAllocationSiteInfo()); | 897 CHECK(IsAllocationSiteInfo()); |
| 893 VerifyHeapPointer(payload()); | 898 VerifyHeapPointer(payload()); |
| 894 CHECK(payload()->IsObject()); | 899 // TODO(mvstanton): remove the IsJSGlobalPropertyCell check when |
| 900 // constructed arrays uses the site too. |
| 901 CHECK(payload()->IsAllocationSite() || payload()->IsJSGlobalPropertyCell()); |
| 895 } | 902 } |
| 896 | 903 |
| 897 | 904 |
| 898 void Script::ScriptVerify() { | 905 void Script::ScriptVerify() { |
| 899 CHECK(IsScript()); | 906 CHECK(IsScript()); |
| 900 VerifyPointer(source()); | 907 VerifyPointer(source()); |
| 901 VerifyPointer(name()); | 908 VerifyPointer(name()); |
| 902 line_offset()->SmiVerify(); | 909 line_offset()->SmiVerify(); |
| 903 column_offset()->SmiVerify(); | 910 column_offset()->SmiVerify(); |
| 904 VerifyPointer(data()); | 911 VerifyPointer(data()); |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1126 for (int i = 0; i < number_of_transitions(); ++i) { | 1133 for (int i = 0; i < number_of_transitions(); ++i) { |
| 1127 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; | 1134 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; |
| 1128 } | 1135 } |
| 1129 return true; | 1136 return true; |
| 1130 } | 1137 } |
| 1131 | 1138 |
| 1132 | 1139 |
| 1133 #endif // DEBUG | 1140 #endif // DEBUG |
| 1134 | 1141 |
| 1135 } } // namespace v8::internal | 1142 } } // namespace v8::internal |
| OLD | NEW |