| 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 894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 905 VerifyPointer(args()); | 905 VerifyPointer(args()); |
| 906 } | 906 } |
| 907 | 907 |
| 908 | 908 |
| 909 void TypeSwitchInfo::TypeSwitchInfoVerify() { | 909 void TypeSwitchInfo::TypeSwitchInfoVerify() { |
| 910 CHECK(IsTypeSwitchInfo()); | 910 CHECK(IsTypeSwitchInfo()); |
| 911 VerifyPointer(types()); | 911 VerifyPointer(types()); |
| 912 } | 912 } |
| 913 | 913 |
| 914 | 914 |
| 915 void AllocationSite::AllocationSiteVerify() { |
| 916 CHECK(IsAllocationSite()); |
| 917 } |
| 918 |
| 919 |
| 915 void AllocationSiteInfo::AllocationSiteInfoVerify() { | 920 void AllocationSiteInfo::AllocationSiteInfoVerify() { |
| 916 CHECK(IsAllocationSiteInfo()); | 921 CHECK(IsAllocationSiteInfo()); |
| 917 VerifyHeapPointer(payload()); | 922 VerifyHeapPointer(allocation_site()); |
| 918 CHECK(payload()->IsObject()); | 923 CHECK(!site_is_valid() || allocation_site()->IsAllocationSite()); |
| 919 } | 924 } |
| 920 | 925 |
| 921 | 926 |
| 922 void Script::ScriptVerify() { | 927 void Script::ScriptVerify() { |
| 923 CHECK(IsScript()); | 928 CHECK(IsScript()); |
| 924 VerifyPointer(source()); | 929 VerifyPointer(source()); |
| 925 VerifyPointer(name()); | 930 VerifyPointer(name()); |
| 926 line_offset()->SmiVerify(); | 931 line_offset()->SmiVerify(); |
| 927 column_offset()->SmiVerify(); | 932 column_offset()->SmiVerify(); |
| 928 VerifyPointer(data()); | 933 VerifyPointer(data()); |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1150 for (int i = 0; i < number_of_transitions(); ++i) { | 1155 for (int i = 0; i < number_of_transitions(); ++i) { |
| 1151 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; | 1156 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; |
| 1152 } | 1157 } |
| 1153 return true; | 1158 return true; |
| 1154 } | 1159 } |
| 1155 | 1160 |
| 1156 | 1161 |
| 1157 #endif // DEBUG | 1162 #endif // DEBUG |
| 1158 | 1163 |
| 1159 } } // namespace v8::internal | 1164 } } // namespace v8::internal |
| OLD | NEW |