| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 void RelocInfo::Visit(ObjectVisitor* visitor) { | 343 void RelocInfo::Visit(ObjectVisitor* visitor) { |
| 344 RelocInfo::Mode mode = rmode(); | 344 RelocInfo::Mode mode = rmode(); |
| 345 if (mode == RelocInfo::EMBEDDED_OBJECT) { | 345 if (mode == RelocInfo::EMBEDDED_OBJECT) { |
| 346 visitor->VisitPointer(target_object_address()); | 346 visitor->VisitPointer(target_object_address()); |
| 347 } else if (RelocInfo::IsCodeTarget(mode)) { | 347 } else if (RelocInfo::IsCodeTarget(mode)) { |
| 348 visitor->VisitCodeTarget(this); | 348 visitor->VisitCodeTarget(this); |
| 349 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { | 349 } else if (mode == RelocInfo::EXTERNAL_REFERENCE) { |
| 350 visitor->VisitExternalReference(target_reference_address()); | 350 visitor->VisitExternalReference(target_reference_address()); |
| 351 #ifdef ENABLE_DEBUGGER_SUPPORT | 351 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 352 } else if (Debug::has_break_points() && | 352 } else if (Debug::has_break_points() && |
| 353 (RelocInfo::IsJSReturn(mode) && | 353 ((RelocInfo::IsJSReturn(mode) && |
| 354 IsPatchedReturnSequence()) || | 354 IsPatchedReturnSequence()) || |
| 355 (RelocInfo::IsDebugBreakSlot(mode) && | 355 (RelocInfo::IsDebugBreakSlot(mode) && |
| 356 IsPatchedDebugBreakSlotSequence())) { | 356 IsPatchedDebugBreakSlotSequence()))) { |
| 357 visitor->VisitDebugTarget(this); | 357 visitor->VisitDebugTarget(this); |
| 358 #endif | 358 #endif |
| 359 } else if (mode == RelocInfo::RUNTIME_ENTRY) { | 359 } else if (mode == RelocInfo::RUNTIME_ENTRY) { |
| 360 visitor->VisitRuntimeEntry(this); | 360 visitor->VisitRuntimeEntry(this); |
| 361 } | 361 } |
| 362 } | 362 } |
| 363 | 363 |
| 364 | 364 |
| 365 // ----------------------------------------------------------------------------- | 365 // ----------------------------------------------------------------------------- |
| 366 // Implementation of Operand | 366 // Implementation of Operand |
| (...skipping 29 matching lines...) Expand all Loading... |
| 396 ASSERT(len_ == 1 || len_ == 2); | 396 ASSERT(len_ == 1 || len_ == 2); |
| 397 int32_t* p = reinterpret_cast<int32_t*>(&buf_[len_]); | 397 int32_t* p = reinterpret_cast<int32_t*>(&buf_[len_]); |
| 398 *p = disp; | 398 *p = disp; |
| 399 len_ += sizeof(int32_t); | 399 len_ += sizeof(int32_t); |
| 400 } | 400 } |
| 401 | 401 |
| 402 | 402 |
| 403 } } // namespace v8::internal | 403 } } // namespace v8::internal |
| 404 | 404 |
| 405 #endif // V8_X64_ASSEMBLER_X64_INL_H_ | 405 #endif // V8_X64_ASSEMBLER_X64_INL_H_ |
| OLD | NEW |