OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 out.AddFormatted("argc = %d", argc); | 275 out.AddFormatted("argc = %d", argc); |
276 break; | 276 break; |
277 } | 277 } |
278 default: | 278 default: |
279 out.AddFormatted("minor: %d", minor_key); | 279 out.AddFormatted("minor: %d", minor_key); |
280 } | 280 } |
281 } | 281 } |
282 } else { | 282 } else { |
283 out.AddFormatted(" %s", Code::Kind2String(kind)); | 283 out.AddFormatted(" %s", Code::Kind2String(kind)); |
284 } | 284 } |
| 285 if (rmode == RelocInfo::CODE_TARGET_WITH_ID) { |
| 286 out.AddFormatted(" (id = %d)", static_cast<int>(relocinfo.data())); |
| 287 } |
285 } else if (rmode == RelocInfo::RUNTIME_ENTRY && | 288 } else if (rmode == RelocInfo::RUNTIME_ENTRY && |
286 Isolate::Current()->deoptimizer_data() != NULL) { | 289 Isolate::Current()->deoptimizer_data() != NULL) { |
287 // A runtime entry reloinfo might be a deoptimization bailout. | 290 // A runtime entry reloinfo might be a deoptimization bailout. |
288 Address addr = relocinfo.target_address(); | 291 Address addr = relocinfo.target_address(); |
289 int id = Deoptimizer::GetDeoptimizationId(addr, Deoptimizer::EAGER); | 292 int id = Deoptimizer::GetDeoptimizationId(addr, Deoptimizer::EAGER); |
290 if (id == Deoptimizer::kNotDeoptimizationEntry) { | 293 if (id == Deoptimizer::kNotDeoptimizationEntry) { |
291 out.AddFormatted(" ;; %s", RelocInfo::RelocModeName(rmode)); | 294 out.AddFormatted(" ;; %s", RelocInfo::RelocModeName(rmode)); |
292 } else { | 295 } else { |
293 out.AddFormatted(" ;; deoptimization bailout %d", id); | 296 out.AddFormatted(" ;; deoptimization bailout %d", id); |
294 } | 297 } |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 | 334 |
332 #else // ENABLE_DISASSEMBLER | 335 #else // ENABLE_DISASSEMBLER |
333 | 336 |
334 void Disassembler::Dump(FILE* f, byte* begin, byte* end) {} | 337 void Disassembler::Dump(FILE* f, byte* begin, byte* end) {} |
335 int Disassembler::Decode(FILE* f, byte* begin, byte* end) { return 0; } | 338 int Disassembler::Decode(FILE* f, byte* begin, byte* end) { return 0; } |
336 void Disassembler::Decode(FILE* f, Code* code) {} | 339 void Disassembler::Decode(FILE* f, Code* code) {} |
337 | 340 |
338 #endif // ENABLE_DISASSEMBLER | 341 #endif // ENABLE_DISASSEMBLER |
339 | 342 |
340 } } // namespace v8::internal | 343 } } // namespace v8::internal |
OLD | NEW |