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 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 // This is for calls and branches within generated code. The serializer | 533 // This is for calls and branches within generated code. The serializer |
534 // has already deserialized the lui/ori instructions etc. | 534 // has already deserialized the lui/ori instructions etc. |
535 inline static void deserialization_set_special_target_at( | 535 inline static void deserialization_set_special_target_at( |
536 Address instruction_payload, Code* code, Address target) { | 536 Address instruction_payload, Code* code, Address target) { |
537 set_target_address_at( | 537 set_target_address_at( |
538 instruction_payload - kInstructionsFor64BitConstant * kInstrSize, | 538 instruction_payload - kInstructionsFor64BitConstant * kInstrSize, |
539 code, | 539 code, |
540 target); | 540 target); |
541 } | 541 } |
542 | 542 |
| 543 // This sets the internal reference at the pc. |
| 544 inline static void deserialization_set_target_internal_reference_at( |
| 545 Address pc, Address target); |
| 546 |
543 // Size of an instruction. | 547 // Size of an instruction. |
544 static const int kInstrSize = sizeof(Instr); | 548 static const int kInstrSize = sizeof(Instr); |
545 | 549 |
546 // Difference between address of current opcode and target address offset. | 550 // Difference between address of current opcode and target address offset. |
547 static const int kBranchPCOffset = 4; | 551 static const int kBranchPCOffset = 4; |
548 | 552 |
549 // Here we are patching the address in the LUI/ORI instruction pair. | 553 // Here we are patching the address in the LUI/ORI instruction pair. |
550 // These values are used in the serialization process and must be zero for | 554 // These values are used in the serialization process and must be zero for |
551 // MIPS platform, as Code, Embedded Object or External-reference pointers | 555 // MIPS platform, as Code, Embedded Object or External-reference pointers |
552 // are split across two consecutive instructions and don't exist separately | 556 // are split across two consecutive instructions and don't exist separately |
(...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1430 class EnsureSpace BASE_EMBEDDED { | 1434 class EnsureSpace BASE_EMBEDDED { |
1431 public: | 1435 public: |
1432 explicit EnsureSpace(Assembler* assembler) { | 1436 explicit EnsureSpace(Assembler* assembler) { |
1433 assembler->CheckBuffer(); | 1437 assembler->CheckBuffer(); |
1434 } | 1438 } |
1435 }; | 1439 }; |
1436 | 1440 |
1437 } } // namespace v8::internal | 1441 } } // namespace v8::internal |
1438 | 1442 |
1439 #endif // V8_ARM_ASSEMBLER_MIPS_H_ | 1443 #endif // V8_ARM_ASSEMBLER_MIPS_H_ |
OLD | NEW |