| OLD | NEW |
| 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
| 2 // All Rights Reserved. | 2 // All Rights Reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
| 9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
| 10 // | 10 // |
| (...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 ExternalReferenceEncoder ref_encoder; | 485 ExternalReferenceEncoder ref_encoder; |
| 486 PrintF(out, " (%s) (%p)", | 486 PrintF(out, " (%s) (%p)", |
| 487 ref_encoder.NameOfAddress(*target_reference_address()), | 487 ref_encoder.NameOfAddress(*target_reference_address()), |
| 488 *target_reference_address()); | 488 *target_reference_address()); |
| 489 } else if (IsCodeTarget(rmode_)) { | 489 } else if (IsCodeTarget(rmode_)) { |
| 490 Code* code = Code::GetCodeFromTargetAddress(target_address()); | 490 Code* code = Code::GetCodeFromTargetAddress(target_address()); |
| 491 PrintF(out, " (%s) (%p)", Code::Kind2String(code->kind()), | 491 PrintF(out, " (%s) (%p)", Code::Kind2String(code->kind()), |
| 492 target_address()); | 492 target_address()); |
| 493 } else if (IsPosition(rmode_)) { | 493 } else if (IsPosition(rmode_)) { |
| 494 PrintF(out, " (%" V8_PTR_PREFIX "d)", data()); | 494 PrintF(out, " (%" V8_PTR_PREFIX "d)", data()); |
| 495 } else if (rmode_ == RelocInfo::RUNTIME_ENTRY) { | 495 } else if (rmode_ == RelocInfo::RUNTIME_ENTRY && |
| 496 Isolate::Current()->deoptimizer_data() != NULL) { |
| 496 // Depotimization bailouts are stored as runtime entries. | 497 // Depotimization bailouts are stored as runtime entries. |
| 497 int id = Deoptimizer::GetDeoptimizationId( | 498 int id = Deoptimizer::GetDeoptimizationId( |
| 498 target_address(), Deoptimizer::EAGER); | 499 target_address(), Deoptimizer::EAGER); |
| 499 if (id != Deoptimizer::kNotDeoptimizationEntry) { | 500 if (id != Deoptimizer::kNotDeoptimizationEntry) { |
| 500 PrintF(out, " (deoptimization bailout %d)", id); | 501 PrintF(out, " (deoptimization bailout %d)", id); |
| 501 } | 502 } |
| 502 } | 503 } |
| 503 | 504 |
| 504 PrintF(out, "\n"); | 505 PrintF(out, "\n"); |
| 505 } | 506 } |
| (...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1058 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); | 1059 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); |
| 1059 state_.written_position = state_.current_position; | 1060 state_.written_position = state_.current_position; |
| 1060 written = true; | 1061 written = true; |
| 1061 } | 1062 } |
| 1062 | 1063 |
| 1063 // Return whether something was written. | 1064 // Return whether something was written. |
| 1064 return written; | 1065 return written; |
| 1065 } | 1066 } |
| 1066 | 1067 |
| 1067 } } // namespace v8::internal | 1068 } } // namespace v8::internal |
| OLD | NEW |