| 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 1193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1204 PrintF(out, "\n - line ends: "); | 1204 PrintF(out, "\n - line ends: "); |
| 1205 line_ends()->ShortPrint(out); | 1205 line_ends()->ShortPrint(out); |
| 1206 PrintF(out, "\n - eval from shared: "); | 1206 PrintF(out, "\n - eval from shared: "); |
| 1207 eval_from_shared()->ShortPrint(out); | 1207 eval_from_shared()->ShortPrint(out); |
| 1208 PrintF(out, "\n - eval from instructions offset: "); | 1208 PrintF(out, "\n - eval from instructions offset: "); |
| 1209 eval_from_instructions_offset()->ShortPrint(out); | 1209 eval_from_instructions_offset()->ShortPrint(out); |
| 1210 PrintF(out, "\n"); | 1210 PrintF(out, "\n"); |
| 1211 } | 1211 } |
| 1212 | 1212 |
| 1213 | 1213 |
| 1214 #ifdef ENABLE_DEBUGGER_SUPPORT | |
| 1215 void DebugInfo::DebugInfoPrint(FILE* out) { | 1214 void DebugInfo::DebugInfoPrint(FILE* out) { |
| 1216 HeapObject::PrintHeader(out, "DebugInfo"); | 1215 HeapObject::PrintHeader(out, "DebugInfo"); |
| 1217 PrintF(out, "\n - shared: "); | 1216 PrintF(out, "\n - shared: "); |
| 1218 shared()->ShortPrint(out); | 1217 shared()->ShortPrint(out); |
| 1219 PrintF(out, "\n - original_code: "); | 1218 PrintF(out, "\n - original_code: "); |
| 1220 original_code()->ShortPrint(out); | 1219 original_code()->ShortPrint(out); |
| 1221 PrintF(out, "\n - code: "); | 1220 PrintF(out, "\n - code: "); |
| 1222 code()->ShortPrint(out); | 1221 code()->ShortPrint(out); |
| 1223 PrintF(out, "\n - break_points: "); | 1222 PrintF(out, "\n - break_points: "); |
| 1224 break_points()->Print(out); | 1223 break_points()->Print(out); |
| 1225 } | 1224 } |
| 1226 | 1225 |
| 1227 | 1226 |
| 1228 void BreakPointInfo::BreakPointInfoPrint(FILE* out) { | 1227 void BreakPointInfo::BreakPointInfoPrint(FILE* out) { |
| 1229 HeapObject::PrintHeader(out, "BreakPointInfo"); | 1228 HeapObject::PrintHeader(out, "BreakPointInfo"); |
| 1230 PrintF(out, "\n - code_position: %d", code_position()->value()); | 1229 PrintF(out, "\n - code_position: %d", code_position()->value()); |
| 1231 PrintF(out, "\n - source_position: %d", source_position()->value()); | 1230 PrintF(out, "\n - source_position: %d", source_position()->value()); |
| 1232 PrintF(out, "\n - statement_position: %d", statement_position()->value()); | 1231 PrintF(out, "\n - statement_position: %d", statement_position()->value()); |
| 1233 PrintF(out, "\n - break_point_objects: "); | 1232 PrintF(out, "\n - break_point_objects: "); |
| 1234 break_point_objects()->ShortPrint(out); | 1233 break_point_objects()->ShortPrint(out); |
| 1235 } | 1234 } |
| 1236 #endif // ENABLE_DEBUGGER_SUPPORT | |
| 1237 | 1235 |
| 1238 | 1236 |
| 1239 void DescriptorArray::PrintDescriptors(FILE* out) { | 1237 void DescriptorArray::PrintDescriptors(FILE* out) { |
| 1240 PrintF(out, "Descriptor array %d\n", number_of_descriptors()); | 1238 PrintF(out, "Descriptor array %d\n", number_of_descriptors()); |
| 1241 for (int i = 0; i < number_of_descriptors(); i++) { | 1239 for (int i = 0; i < number_of_descriptors(); i++) { |
| 1242 PrintF(out, " %d: ", i); | 1240 PrintF(out, " %d: ", i); |
| 1243 Descriptor desc; | 1241 Descriptor desc; |
| 1244 Get(i, &desc); | 1242 Get(i, &desc); |
| 1245 desc.Print(out); | 1243 desc.Print(out); |
| 1246 } | 1244 } |
| (...skipping 28 matching lines...) Expand all Loading... |
| 1275 } | 1273 } |
| 1276 } | 1274 } |
| 1277 PrintF(out, "\n"); | 1275 PrintF(out, "\n"); |
| 1278 } | 1276 } |
| 1279 | 1277 |
| 1280 | 1278 |
| 1281 #endif // OBJECT_PRINT | 1279 #endif // OBJECT_PRINT |
| 1282 | 1280 |
| 1283 | 1281 |
| 1284 } } // namespace v8::internal | 1282 } } // namespace v8::internal |
| OLD | NEW |