| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 case CodeStub::CallFunction: | 271 case CodeStub::CallFunction: |
| 272 out.AddFormatted("argc = %d", minor_key); | 272 out.AddFormatted("argc = %d", minor_key); |
| 273 break; | 273 break; |
| 274 default: | 274 default: |
| 275 out.AddFormatted("minor: %d", minor_key); | 275 out.AddFormatted("minor: %d", minor_key); |
| 276 } | 276 } |
| 277 } | 277 } |
| 278 } else { | 278 } else { |
| 279 out.AddFormatted(" %s", Code::Kind2String(kind)); | 279 out.AddFormatted(" %s", Code::Kind2String(kind)); |
| 280 } | 280 } |
| 281 if (rmode == RelocInfo::CODE_TARGET_WITH_ID) { |
| 282 out.AddFormatted(" (id = %d)", static_cast<int>(relocinfo.data())); |
| 283 } |
| 281 } else if (rmode == RelocInfo::RUNTIME_ENTRY) { | 284 } else if (rmode == RelocInfo::RUNTIME_ENTRY) { |
| 282 // A runtime entry reloinfo might be a deoptimization bailout. | 285 // A runtime entry reloinfo might be a deoptimization bailout. |
| 283 Address addr = relocinfo.target_address(); | 286 Address addr = relocinfo.target_address(); |
| 284 int id = Deoptimizer::GetDeoptimizationId(addr, Deoptimizer::EAGER); | 287 int id = Deoptimizer::GetDeoptimizationId(addr, Deoptimizer::EAGER); |
| 285 if (id == Deoptimizer::kNotDeoptimizationEntry) { | 288 if (id == Deoptimizer::kNotDeoptimizationEntry) { |
| 286 out.AddFormatted(" ;; %s", RelocInfo::RelocModeName(rmode)); | 289 out.AddFormatted(" ;; %s", RelocInfo::RelocModeName(rmode)); |
| 287 } else { | 290 } else { |
| 288 out.AddFormatted(" ;; deoptimization bailout %d", id); | 291 out.AddFormatted(" ;; deoptimization bailout %d", id); |
| 289 } | 292 } |
| 290 } else { | 293 } else { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 | 329 |
| 327 #else // ENABLE_DISASSEMBLER | 330 #else // ENABLE_DISASSEMBLER |
| 328 | 331 |
| 329 void Disassembler::Dump(FILE* f, byte* begin, byte* end) {} | 332 void Disassembler::Dump(FILE* f, byte* begin, byte* end) {} |
| 330 int Disassembler::Decode(FILE* f, byte* begin, byte* end) { return 0; } | 333 int Disassembler::Decode(FILE* f, byte* begin, byte* end) { return 0; } |
| 331 void Disassembler::Decode(FILE* f, Code* code) {} | 334 void Disassembler::Decode(FILE* f, Code* code) {} |
| 332 | 335 |
| 333 #endif // ENABLE_DISASSEMBLER | 336 #endif // ENABLE_DISASSEMBLER |
| 334 | 337 |
| 335 } } // namespace v8::internal | 338 } } // namespace v8::internal |
| OLD | NEW |