| 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 void RelocInfo::Visit(ObjectVisitor* visitor) { | 167 void RelocInfo::Visit(ObjectVisitor* visitor) { |
| 168 RelocInfo::Mode mode = rmode(); | 168 RelocInfo::Mode mode = rmode(); |
| 169 if (mode == RelocInfo::EMBEDDED_OBJECT) { | 169 if (mode == RelocInfo::EMBEDDED_OBJECT) { |
| 170 visitor->VisitPointer(target_object_address()); | 170 visitor->VisitPointer(target_object_address()); |
| 171 } else if (RelocInfo::IsCodeTarget(mode)) { | 171 } else if (RelocInfo::IsCodeTarget(mode)) { |
| 172 visitor->VisitCodeTarget(this); | 172 visitor->VisitCodeTarget(this); |
| 173 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { | 173 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { |
| 174 visitor->VisitExternalReference(target_reference_address()); | 174 visitor->VisitExternalReference(target_reference_address()); |
| 175 #ifdef ENABLE_DEBUGGER_SUPPORT | 175 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 176 } else if (Debug::has_break_points() && | 176 } else if (Debug::has_break_points() && |
| 177 (RelocInfo::IsJSReturn(mode) && | 177 ((RelocInfo::IsJSReturn(mode) && |
| 178 IsPatchedReturnSequence()) || | 178 IsPatchedReturnSequence()) || |
| 179 (RelocInfo::IsDebugBreakSlot(mode) && | 179 (RelocInfo::IsDebugBreakSlot(mode) && |
| 180 IsPatchedDebugBreakSlotSequence())) { | 180 IsPatchedDebugBreakSlotSequence()))) { |
| 181 visitor->VisitDebugTarget(this); | 181 visitor->VisitDebugTarget(this); |
| 182 #endif | 182 #endif |
| 183 } else if (mode == RelocInfo::RUNTIME_ENTRY) { | 183 } else if (mode == RelocInfo::RUNTIME_ENTRY) { |
| 184 visitor->VisitRuntimeEntry(this); | 184 visitor->VisitRuntimeEntry(this); |
| 185 } | 185 } |
| 186 } | 186 } |
| 187 | 187 |
| 188 | 188 |
| 189 Immediate::Immediate(int x) { | 189 Immediate::Immediate(int x) { |
| 190 x_ = x; | 190 x_ = x; |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 | 355 |
| 356 Operand::Operand(int32_t disp, RelocInfo::Mode rmode) { | 356 Operand::Operand(int32_t disp, RelocInfo::Mode rmode) { |
| 357 // [disp/r] | 357 // [disp/r] |
| 358 set_modrm(0, ebp); | 358 set_modrm(0, ebp); |
| 359 set_dispr(disp, rmode); | 359 set_dispr(disp, rmode); |
| 360 } | 360 } |
| 361 | 361 |
| 362 } } // namespace v8::internal | 362 } } // namespace v8::internal |
| 363 | 363 |
| 364 #endif // V8_IA32_ASSEMBLER_IA32_INL_H_ | 364 #endif // V8_IA32_ASSEMBLER_IA32_INL_H_ |
| OLD | NEW |