| 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 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 624 // Return the code target address of the patch debug break slot | 624 // Return the code target address of the patch debug break slot |
| 625 INLINE(static Address break_address_from_return_address(Address pc)); | 625 INLINE(static Address break_address_from_return_address(Address pc)); |
| 626 | 626 |
| 627 // This sets the branch destination. | 627 // This sets the branch destination. |
| 628 // This is for calls and branches within generated code. | 628 // This is for calls and branches within generated code. |
| 629 inline static void deserialization_set_special_target_at( | 629 inline static void deserialization_set_special_target_at( |
| 630 Address instruction_payload, Code* code, Address target); | 630 Address instruction_payload, Code* code, Address target); |
| 631 | 631 |
| 632 // This sets the internal reference at the pc. | 632 // This sets the internal reference at the pc. |
| 633 inline static void deserialization_set_target_internal_reference_at( | 633 inline static void deserialization_set_target_internal_reference_at( |
| 634 Address pc, Address target); | 634 Address pc, Address target, |
| 635 RelocInfo::Mode mode = RelocInfo::INTERNAL_REFERENCE); |
| 635 | 636 |
| 636 // Size of an instruction. | 637 // Size of an instruction. |
| 637 static const int kInstrSize = sizeof(Instr); | 638 static const int kInstrSize = sizeof(Instr); |
| 638 | 639 |
| 639 // Here we are patching the address in the LUI/ORI instruction pair. | 640 // Here we are patching the address in the LUI/ORI instruction pair. |
| 640 // These values are used in the serialization process and must be zero for | 641 // These values are used in the serialization process and must be zero for |
| 641 // PPC platform, as Code, Embedded Object or External-reference pointers | 642 // PPC platform, as Code, Embedded Object or External-reference pointers |
| 642 // are split across two consecutive instructions and don't exist separately | 643 // are split across two consecutive instructions and don't exist separately |
| 643 // in the code, so the serializer should not step forwards in memory after | 644 // in the code, so the serializer should not step forwards in memory after |
| 644 // a target is resolved and written. | 645 // a target is resolved and written. |
| (...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1442 | 1443 |
| 1443 | 1444 |
| 1444 class EnsureSpace BASE_EMBEDDED { | 1445 class EnsureSpace BASE_EMBEDDED { |
| 1445 public: | 1446 public: |
| 1446 explicit EnsureSpace(Assembler* assembler) { assembler->CheckBuffer(); } | 1447 explicit EnsureSpace(Assembler* assembler) { assembler->CheckBuffer(); } |
| 1447 }; | 1448 }; |
| 1448 } | 1449 } |
| 1449 } // namespace v8::internal | 1450 } // namespace v8::internal |
| 1450 | 1451 |
| 1451 #endif // V8_PPC_ASSEMBLER_PPC_H_ | 1452 #endif // V8_PPC_ASSEMBLER_PPC_H_ |
| OLD | NEW |