OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
917 types()->ShortPrint(); | 917 types()->ShortPrint(); |
918 } | 918 } |
919 | 919 |
920 | 920 |
921 void Script::ScriptVerify() { | 921 void Script::ScriptVerify() { |
922 CHECK(IsScript()); | 922 CHECK(IsScript()); |
923 VerifyPointer(source()); | 923 VerifyPointer(source()); |
924 VerifyPointer(name()); | 924 VerifyPointer(name()); |
925 line_offset()->SmiVerify(); | 925 line_offset()->SmiVerify(); |
926 column_offset()->SmiVerify(); | 926 column_offset()->SmiVerify(); |
| 927 VerifyPointer(data()); |
| 928 VerifyPointer(wrapper()); |
927 type()->SmiVerify(); | 929 type()->SmiVerify(); |
| 930 VerifyPointer(line_ends()); |
| 931 VerifyPointer(id()); |
928 } | 932 } |
929 | 933 |
930 | 934 |
931 void Script::ScriptPrint() { | 935 void Script::ScriptPrint() { |
932 HeapObject::PrintHeader("Script"); | 936 HeapObject::PrintHeader("Script"); |
933 PrintF("\n - source: "); | 937 PrintF("\n - source: "); |
934 source()->ShortPrint(); | 938 source()->ShortPrint(); |
935 PrintF("\n - name: "); | 939 PrintF("\n - name: "); |
936 name()->ShortPrint(); | 940 name()->ShortPrint(); |
937 PrintF("\n - line_offset: "); | 941 PrintF("\n - line_offset: "); |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1085 } | 1089 } |
1086 current = hash; | 1090 current = hash; |
1087 } | 1091 } |
1088 return true; | 1092 return true; |
1089 } | 1093 } |
1090 | 1094 |
1091 | 1095 |
1092 #endif // DEBUG | 1096 #endif // DEBUG |
1093 | 1097 |
1094 } } // namespace v8::internal | 1098 } } // namespace v8::internal |
OLD | NEW |