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 | 5 // modification, are permitted provided that the following conditions |
6 // are met: | 6 // are 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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 // This is for calls and branches within generated code. The serializer | 479 // This is for calls and branches within generated code. The serializer |
480 // has already deserialized the mov instructions etc. | 480 // has already deserialized the mov instructions etc. |
481 // There is a FIXED_SEQUENCE assumption here | 481 // There is a FIXED_SEQUENCE assumption here |
482 void Assembler::deserialization_set_special_target_at( | 482 void Assembler::deserialization_set_special_target_at( |
483 Address instruction_payload, Code* code, Address target) { | 483 Address instruction_payload, Code* code, Address target) { |
484 set_target_address_at(instruction_payload, code, target); | 484 set_target_address_at(instruction_payload, code, target); |
485 } | 485 } |
486 | 486 |
487 | 487 |
488 void Assembler::deserialization_set_target_internal_reference_at( | 488 void Assembler::deserialization_set_target_internal_reference_at( |
489 Address pc, Address target) { | 489 Address pc, Address target, RelocInfo::Mode mode) { |
490 if (IsLis(instr_at(pc)) && IsOri(instr_at(pc + kInstrSize))) { | 490 if (RelocInfo::IsInternalReferenceEncoded(mode)) { |
491 Code* code = NULL; | 491 Code* code = NULL; |
492 set_target_address_at(pc, code, target, SKIP_ICACHE_FLUSH); | 492 set_target_address_at(pc, code, target, SKIP_ICACHE_FLUSH); |
493 } else { | 493 } else { |
494 Memory::Address_at(pc) = target; | 494 Memory::Address_at(pc) = target; |
495 } | 495 } |
496 } | 496 } |
497 | 497 |
498 | 498 |
499 // This code assumes the FIXED_SEQUENCE of lis/ori | 499 // This code assumes the FIXED_SEQUENCE of lis/ori |
500 void Assembler::set_target_address_at(Address pc, | 500 void Assembler::set_target_address_at(Address pc, |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
552 } | 552 } |
553 #endif | 553 #endif |
554 return; | 554 return; |
555 } | 555 } |
556 UNREACHABLE(); | 556 UNREACHABLE(); |
557 } | 557 } |
558 } | 558 } |
559 } // namespace v8::internal | 559 } // namespace v8::internal |
560 | 560 |
561 #endif // V8_PPC_ASSEMBLER_PPC_INL_H_ | 561 #endif // V8_PPC_ASSEMBLER_PPC_INL_H_ |
OLD | NEW |