| 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 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 540 // This is for calls and branches within generated code. The serializer | 540 // This is for calls and branches within generated code. The serializer |
| 541 // has already deserialized the lui/ori instructions etc. | 541 // has already deserialized the lui/ori instructions etc. |
| 542 inline static void deserialization_set_special_target_at( | 542 inline static void deserialization_set_special_target_at( |
| 543 Address instruction_payload, Code* code, Address target) { | 543 Address instruction_payload, Code* code, Address target) { |
| 544 set_target_address_at( | 544 set_target_address_at( |
| 545 instruction_payload - kInstructionsFor32BitConstant * kInstrSize, | 545 instruction_payload - kInstructionsFor32BitConstant * kInstrSize, |
| 546 code, | 546 code, |
| 547 target); | 547 target); |
| 548 } | 548 } |
| 549 | 549 |
| 550 // This sets the internal reference at the pc. |
| 551 inline static void deserialization_set_target_internal_reference_at( |
| 552 Address pc, Address target); |
| 553 |
| 550 // Size of an instruction. | 554 // Size of an instruction. |
| 551 static const int kInstrSize = sizeof(Instr); | 555 static const int kInstrSize = sizeof(Instr); |
| 552 | 556 |
| 553 // Difference between address of current opcode and target address offset. | 557 // Difference between address of current opcode and target address offset. |
| 554 static const int kBranchPCOffset = 4; | 558 static const int kBranchPCOffset = 4; |
| 555 | 559 |
| 556 // Here we are patching the address in the LUI/ORI instruction pair. | 560 // Here we are patching the address in the LUI/ORI instruction pair. |
| 557 // These values are used in the serialization process and must be zero for | 561 // These values are used in the serialization process and must be zero for |
| 558 // MIPS platform, as Code, Embedded Object or External-reference pointers | 562 // MIPS platform, as Code, Embedded Object or External-reference pointers |
| 559 // are split across two consecutive instructions and don't exist separately | 563 // are split across two consecutive instructions and don't exist separately |
| (...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1390 class EnsureSpace BASE_EMBEDDED { | 1394 class EnsureSpace BASE_EMBEDDED { |
| 1391 public: | 1395 public: |
| 1392 explicit EnsureSpace(Assembler* assembler) { | 1396 explicit EnsureSpace(Assembler* assembler) { |
| 1393 assembler->CheckBuffer(); | 1397 assembler->CheckBuffer(); |
| 1394 } | 1398 } |
| 1395 }; | 1399 }; |
| 1396 | 1400 |
| 1397 } } // namespace v8::internal | 1401 } } // namespace v8::internal |
| 1398 | 1402 |
| 1399 #endif // V8_ARM_ASSEMBLER_MIPS_H_ | 1403 #endif // V8_ARM_ASSEMBLER_MIPS_H_ |
| OLD | NEW |