| 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 visitor->VisitCodeTarget(this); | 286 visitor->VisitCodeTarget(this); |
| 287 } else if (mode == RelocInfo::CELL) { | 287 } else if (mode == RelocInfo::CELL) { |
| 288 visitor->VisitCell(this); | 288 visitor->VisitCell(this); |
| 289 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { | 289 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { |
| 290 visitor->VisitExternalReference(this); | 290 visitor->VisitExternalReference(this); |
| 291 } else if (mode == RelocInfo::INTERNAL_REFERENCE) { | 291 } else if (mode == RelocInfo::INTERNAL_REFERENCE) { |
| 292 visitor->VisitInternalReference(this); | 292 visitor->VisitInternalReference(this); |
| 293 } else if (RelocInfo::IsCodeAgeSequence(mode)) { | 293 } else if (RelocInfo::IsCodeAgeSequence(mode)) { |
| 294 visitor->VisitCodeAgeSequence(this); | 294 visitor->VisitCodeAgeSequence(this); |
| 295 } else if (RelocInfo::IsDebugBreakSlot(mode) && | 295 } else if (RelocInfo::IsDebugBreakSlot(mode) && |
| 296 IsPatchedDebugBreakSlotSequence() && | 296 IsPatchedDebugBreakSlotSequence()) { |
| 297 isolate->debug()->has_break_points()) { | |
| 298 visitor->VisitDebugTarget(this); | 297 visitor->VisitDebugTarget(this); |
| 299 } else if (IsRuntimeEntry(mode)) { | 298 } else if (IsRuntimeEntry(mode)) { |
| 300 visitor->VisitRuntimeEntry(this); | 299 visitor->VisitRuntimeEntry(this); |
| 301 } | 300 } |
| 302 } | 301 } |
| 303 | 302 |
| 304 | 303 |
| 305 template<typename StaticVisitor> | 304 template<typename StaticVisitor> |
| 306 void RelocInfo::Visit(Heap* heap) { | 305 void RelocInfo::Visit(Heap* heap) { |
| 307 RelocInfo::Mode mode = rmode(); | 306 RelocInfo::Mode mode = rmode(); |
| 308 if (mode == RelocInfo::EMBEDDED_OBJECT) { | 307 if (mode == RelocInfo::EMBEDDED_OBJECT) { |
| 309 StaticVisitor::VisitEmbeddedPointer(heap, this); | 308 StaticVisitor::VisitEmbeddedPointer(heap, this); |
| 310 CpuFeatures::FlushICache(pc_, sizeof(Address)); | 309 CpuFeatures::FlushICache(pc_, sizeof(Address)); |
| 311 } else if (RelocInfo::IsCodeTarget(mode)) { | 310 } else if (RelocInfo::IsCodeTarget(mode)) { |
| 312 StaticVisitor::VisitCodeTarget(heap, this); | 311 StaticVisitor::VisitCodeTarget(heap, this); |
| 313 } else if (mode == RelocInfo::CELL) { | 312 } else if (mode == RelocInfo::CELL) { |
| 314 StaticVisitor::VisitCell(heap, this); | 313 StaticVisitor::VisitCell(heap, this); |
| 315 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { | 314 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { |
| 316 StaticVisitor::VisitExternalReference(this); | 315 StaticVisitor::VisitExternalReference(this); |
| 317 } else if (mode == RelocInfo::INTERNAL_REFERENCE) { | 316 } else if (mode == RelocInfo::INTERNAL_REFERENCE) { |
| 318 StaticVisitor::VisitInternalReference(this); | 317 StaticVisitor::VisitInternalReference(this); |
| 319 } else if (RelocInfo::IsCodeAgeSequence(mode)) { | 318 } else if (RelocInfo::IsCodeAgeSequence(mode)) { |
| 320 StaticVisitor::VisitCodeAgeSequence(heap, this); | 319 StaticVisitor::VisitCodeAgeSequence(heap, this); |
| 321 } else if (heap->isolate()->debug()->has_break_points() && | 320 } else if (RelocInfo::IsDebugBreakSlot(mode) && |
| 322 RelocInfo::IsDebugBreakSlot(mode) && | |
| 323 IsPatchedDebugBreakSlotSequence()) { | 321 IsPatchedDebugBreakSlotSequence()) { |
| 324 StaticVisitor::VisitDebugTarget(heap, this); | 322 StaticVisitor::VisitDebugTarget(heap, this); |
| 325 } else if (IsRuntimeEntry(mode)) { | 323 } else if (IsRuntimeEntry(mode)) { |
| 326 StaticVisitor::VisitRuntimeEntry(this); | 324 StaticVisitor::VisitRuntimeEntry(this); |
| 327 } | 325 } |
| 328 } | 326 } |
| 329 | 327 |
| 330 | 328 |
| 331 | 329 |
| 332 Immediate::Immediate(int x) { | 330 Immediate::Immediate(int x) { |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 552 | 550 |
| 553 | 551 |
| 554 Operand::Operand(Immediate imm) { | 552 Operand::Operand(Immediate imm) { |
| 555 // [disp/r] | 553 // [disp/r] |
| 556 set_modrm(0, ebp); | 554 set_modrm(0, ebp); |
| 557 set_dispr(imm.x_, imm.rmode_); | 555 set_dispr(imm.x_, imm.rmode_); |
| 558 } | 556 } |
| 559 } } // namespace v8::internal | 557 } } // namespace v8::internal |
| 560 | 558 |
| 561 #endif // V8_X87_ASSEMBLER_X87_INL_H_ | 559 #endif // V8_X87_ASSEMBLER_X87_INL_H_ |
| OLD | NEW |