| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 743 i2->IsBranchAndLinkToRegister() && (i2->Rn() == ip0.code()); | 743 i2->IsBranchAndLinkToRegister() && (i2->Rn() == ip0.code()); |
| 744 } | 744 } |
| 745 | 745 |
| 746 | 746 |
| 747 bool RelocInfo::IsPatchedDebugBreakSlotSequence() { | 747 bool RelocInfo::IsPatchedDebugBreakSlotSequence() { |
| 748 Instruction* current_instr = reinterpret_cast<Instruction*>(pc_); | 748 Instruction* current_instr = reinterpret_cast<Instruction*>(pc_); |
| 749 return !current_instr->IsNop(Assembler::DEBUG_BREAK_NOP); | 749 return !current_instr->IsNop(Assembler::DEBUG_BREAK_NOP); |
| 750 } | 750 } |
| 751 | 751 |
| 752 | 752 |
| 753 void RelocInfo::Visit(ObjectVisitor* visitor) { | 753 void RelocInfo::Visit(Isolate* isolate, ObjectVisitor* visitor) { |
| 754 RelocInfo::Mode mode = rmode(); | 754 RelocInfo::Mode mode = rmode(); |
| 755 if (mode == RelocInfo::EMBEDDED_OBJECT) { | 755 if (mode == RelocInfo::EMBEDDED_OBJECT) { |
| 756 visitor->VisitEmbeddedPointer(this); | 756 visitor->VisitEmbeddedPointer(this); |
| 757 } else if (RelocInfo::IsCodeTarget(mode)) { | 757 } else if (RelocInfo::IsCodeTarget(mode)) { |
| 758 visitor->VisitCodeTarget(this); | 758 visitor->VisitCodeTarget(this); |
| 759 } else if (mode == RelocInfo::CELL) { | 759 } else if (mode == RelocInfo::CELL) { |
| 760 visitor->VisitCell(this); | 760 visitor->VisitCell(this); |
| 761 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { | 761 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { |
| 762 visitor->VisitExternalReference(this); | 762 visitor->VisitExternalReference(this); |
| 763 #ifdef ENABLE_DEBUGGER_SUPPORT | 763 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 764 // TODO(isolates): Get a cached isolate below. | |
| 765 } else if (((RelocInfo::IsJSReturn(mode) && | 764 } else if (((RelocInfo::IsJSReturn(mode) && |
| 766 IsPatchedReturnSequence()) || | 765 IsPatchedReturnSequence()) || |
| 767 (RelocInfo::IsDebugBreakSlot(mode) && | 766 (RelocInfo::IsDebugBreakSlot(mode) && |
| 768 IsPatchedDebugBreakSlotSequence())) && | 767 IsPatchedDebugBreakSlotSequence())) && |
| 769 Isolate::Current()->debug()->has_break_points()) { | 768 isolate->debug()->has_break_points()) { |
| 770 visitor->VisitDebugTarget(this); | 769 visitor->VisitDebugTarget(this); |
| 771 #endif | 770 #endif |
| 772 } else if (RelocInfo::IsRuntimeEntry(mode)) { | 771 } else if (RelocInfo::IsRuntimeEntry(mode)) { |
| 773 visitor->VisitRuntimeEntry(this); | 772 visitor->VisitRuntimeEntry(this); |
| 774 } | 773 } |
| 775 } | 774 } |
| 776 | 775 |
| 777 | 776 |
| 778 template<typename StaticVisitor> | 777 template<typename StaticVisitor> |
| 779 void RelocInfo::Visit(Heap* heap) { | 778 void RelocInfo::Visit(Heap* heap) { |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1153 | 1152 |
| 1154 | 1153 |
| 1155 void Assembler::ClearRecordedAstId() { | 1154 void Assembler::ClearRecordedAstId() { |
| 1156 recorded_ast_id_ = TypeFeedbackId::None(); | 1155 recorded_ast_id_ = TypeFeedbackId::None(); |
| 1157 } | 1156 } |
| 1158 | 1157 |
| 1159 | 1158 |
| 1160 } } // namespace v8::internal | 1159 } } // namespace v8::internal |
| 1161 | 1160 |
| 1162 #endif // V8_A64_ASSEMBLER_A64_INL_H_ | 1161 #endif // V8_A64_ASSEMBLER_A64_INL_H_ |
| OLD | NEW |