OLD | NEW |
1 | 1 |
2 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 2 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
3 // All Rights Reserved. | 3 // All Rights Reserved. |
4 // | 4 // |
5 // Redistribution and use in source and binary forms, with or without | 5 // Redistribution and use in source and binary forms, with or without |
6 // modification, are permitted provided that the following conditions are | 6 // modification, are permitted provided that the following conditions are |
7 // met: | 7 // met: |
8 // | 8 // |
9 // - Redistributions of source code must retain the above copyright notice, | 9 // - Redistributions of source code must retain the above copyright notice, |
10 // this list of conditions and the following disclaimer. | 10 // this list of conditions and the following disclaimer. |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 Assembler::set_target_internal_reference_encoded_at(pc_, nullptr); | 334 Assembler::set_target_internal_reference_encoded_at(pc_, nullptr); |
335 } else { | 335 } else { |
336 Assembler::set_target_address_at(isolate, pc_, host_, NULL); | 336 Assembler::set_target_address_at(isolate, pc_, host_, NULL); |
337 } | 337 } |
338 } | 338 } |
339 | 339 |
340 template <typename ObjectVisitor> | 340 template <typename ObjectVisitor> |
341 void RelocInfo::Visit(Isolate* isolate, ObjectVisitor* visitor) { | 341 void RelocInfo::Visit(Isolate* isolate, ObjectVisitor* visitor) { |
342 RelocInfo::Mode mode = rmode(); | 342 RelocInfo::Mode mode = rmode(); |
343 if (mode == RelocInfo::EMBEDDED_OBJECT) { | 343 if (mode == RelocInfo::EMBEDDED_OBJECT) { |
344 visitor->VisitEmbeddedPointer(this); | 344 visitor->VisitEmbeddedPointer(host(), this); |
345 } else if (RelocInfo::IsCodeTarget(mode)) { | 345 } else if (RelocInfo::IsCodeTarget(mode)) { |
346 visitor->VisitCodeTarget(this); | 346 visitor->VisitCodeTarget(host(), this); |
347 } else if (mode == RelocInfo::CELL) { | 347 } else if (mode == RelocInfo::CELL) { |
348 visitor->VisitCell(this); | 348 visitor->VisitCellPointer(host(), this); |
349 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { | 349 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { |
350 visitor->VisitExternalReference(this); | 350 visitor->VisitExternalReference(host(), this); |
351 } else if (mode == RelocInfo::INTERNAL_REFERENCE || | 351 } else if (mode == RelocInfo::INTERNAL_REFERENCE || |
352 mode == RelocInfo::INTERNAL_REFERENCE_ENCODED) { | 352 mode == RelocInfo::INTERNAL_REFERENCE_ENCODED) { |
353 visitor->VisitInternalReference(this); | 353 visitor->VisitInternalReference(host(), this); |
354 } else if (RelocInfo::IsCodeAgeSequence(mode)) { | 354 } else if (RelocInfo::IsCodeAgeSequence(mode)) { |
355 visitor->VisitCodeAgeSequence(this); | 355 visitor->VisitCodeAgeSequence(host(), this); |
356 } else if (RelocInfo::IsDebugBreakSlot(mode) && | 356 } else if (RelocInfo::IsDebugBreakSlot(mode) && |
357 IsPatchedDebugBreakSlotSequence()) { | 357 IsPatchedDebugBreakSlotSequence()) { |
358 visitor->VisitDebugTarget(this); | 358 visitor->VisitDebugTarget(host(), this); |
359 } else if (RelocInfo::IsRuntimeEntry(mode)) { | 359 } else if (RelocInfo::IsRuntimeEntry(mode)) { |
360 visitor->VisitRuntimeEntry(this); | 360 visitor->VisitRuntimeEntry(host(), this); |
361 } | 361 } |
362 } | 362 } |
363 | 363 |
364 | 364 |
365 template<typename StaticVisitor> | 365 template<typename StaticVisitor> |
366 void RelocInfo::Visit(Heap* heap) { | 366 void RelocInfo::Visit(Heap* heap) { |
367 RelocInfo::Mode mode = rmode(); | 367 RelocInfo::Mode mode = rmode(); |
368 if (mode == RelocInfo::EMBEDDED_OBJECT) { | 368 if (mode == RelocInfo::EMBEDDED_OBJECT) { |
369 StaticVisitor::VisitEmbeddedPointer(heap, this); | 369 StaticVisitor::VisitEmbeddedPointer(heap, this); |
370 } else if (RelocInfo::IsCodeTarget(mode)) { | 370 } else if (RelocInfo::IsCodeTarget(mode)) { |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 void Assembler::emit(uint64_t data) { | 468 void Assembler::emit(uint64_t data) { |
469 CheckForEmitInForbiddenSlot(); | 469 CheckForEmitInForbiddenSlot(); |
470 EmitHelper(data); | 470 EmitHelper(data); |
471 } | 471 } |
472 | 472 |
473 | 473 |
474 } // namespace internal | 474 } // namespace internal |
475 } // namespace v8 | 475 } // namespace v8 |
476 | 476 |
477 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ | 477 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ |
OLD | NEW |