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 1098 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1109 | 1109 |
1110 void Script::ScriptVerify() { | 1110 void Script::ScriptVerify() { |
1111 CHECK(IsScript()); | 1111 CHECK(IsScript()); |
1112 VerifyPointer(source()); | 1112 VerifyPointer(source()); |
1113 VerifyPointer(name()); | 1113 VerifyPointer(name()); |
1114 line_offset()->SmiVerify(); | 1114 line_offset()->SmiVerify(); |
1115 column_offset()->SmiVerify(); | 1115 column_offset()->SmiVerify(); |
1116 VerifyPointer(data()); | 1116 VerifyPointer(data()); |
1117 VerifyPointer(wrapper()); | 1117 VerifyPointer(wrapper()); |
1118 type()->SmiVerify(); | 1118 type()->SmiVerify(); |
1119 VerifyPointer(line_ends_fixed_array()); | 1119 VerifyPointer(line_ends()); |
1120 VerifyPointer(line_ends_js_array()); | |
1121 VerifyPointer(id()); | 1120 VerifyPointer(id()); |
1122 } | 1121 } |
1123 | 1122 |
1124 | 1123 |
1125 void Script::ScriptPrint() { | 1124 void Script::ScriptPrint() { |
1126 HeapObject::PrintHeader("Script"); | 1125 HeapObject::PrintHeader("Script"); |
1127 PrintF("\n - source: "); | 1126 PrintF("\n - source: "); |
1128 source()->ShortPrint(); | 1127 source()->ShortPrint(); |
1129 PrintF("\n - name: "); | 1128 PrintF("\n - name: "); |
1130 name()->ShortPrint(); | 1129 name()->ShortPrint(); |
1131 PrintF("\n - line_offset: "); | 1130 PrintF("\n - line_offset: "); |
1132 line_offset()->ShortPrint(); | 1131 line_offset()->ShortPrint(); |
1133 PrintF("\n - column_offset: "); | 1132 PrintF("\n - column_offset: "); |
1134 column_offset()->ShortPrint(); | 1133 column_offset()->ShortPrint(); |
1135 PrintF("\n - type: "); | 1134 PrintF("\n - type: "); |
1136 type()->ShortPrint(); | 1135 type()->ShortPrint(); |
1137 PrintF("\n - id: "); | 1136 PrintF("\n - id: "); |
1138 id()->ShortPrint(); | 1137 id()->ShortPrint(); |
1139 PrintF("\n - data: "); | 1138 PrintF("\n - data: "); |
1140 data()->ShortPrint(); | 1139 data()->ShortPrint(); |
1141 PrintF("\n - context data: "); | 1140 PrintF("\n - context data: "); |
1142 context_data()->ShortPrint(); | 1141 context_data()->ShortPrint(); |
1143 PrintF("\n - wrapper: "); | 1142 PrintF("\n - wrapper: "); |
1144 wrapper()->ShortPrint(); | 1143 wrapper()->ShortPrint(); |
1145 PrintF("\n - compilation type: "); | 1144 PrintF("\n - compilation type: "); |
1146 compilation_type()->ShortPrint(); | 1145 compilation_type()->ShortPrint(); |
1147 PrintF("\n - line ends fixed array: "); | 1146 PrintF("\n - line ends: "); |
1148 line_ends_fixed_array()->ShortPrint(); | 1147 line_ends()->ShortPrint(); |
1149 PrintF("\n - line ends js array: "); | |
1150 line_ends_js_array()->ShortPrint(); | |
1151 PrintF("\n - eval from function: "); | 1148 PrintF("\n - eval from function: "); |
1152 eval_from_function()->ShortPrint(); | 1149 eval_from_function()->ShortPrint(); |
1153 PrintF("\n - eval from instructions offset: "); | 1150 PrintF("\n - eval from instructions offset: "); |
1154 eval_from_instructions_offset()->ShortPrint(); | 1151 eval_from_instructions_offset()->ShortPrint(); |
1155 PrintF("\n"); | 1152 PrintF("\n"); |
1156 } | 1153 } |
1157 | 1154 |
1158 | 1155 |
1159 #ifdef ENABLE_DEBUGGER_SUPPORT | 1156 #ifdef ENABLE_DEBUGGER_SUPPORT |
1160 void DebugInfo::DebugInfoVerify() { | 1157 void DebugInfo::DebugInfoVerify() { |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1312 } | 1309 } |
1313 current = hash; | 1310 current = hash; |
1314 } | 1311 } |
1315 return true; | 1312 return true; |
1316 } | 1313 } |
1317 | 1314 |
1318 | 1315 |
1319 #endif // DEBUG | 1316 #endif // DEBUG |
1320 | 1317 |
1321 } } // namespace v8::internal | 1318 } } // namespace v8::internal |
OLD | NEW |