| 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 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 uint32_t jump_address(Label* L); | 567 uint32_t jump_address(Label* L); |
| 568 | 568 |
| 569 // Puts a labels target address at the given position. | 569 // Puts a labels target address at the given position. |
| 570 // The high 8 bits are set to zero. | 570 // The high 8 bits are set to zero. |
| 571 void label_at_put(Label* L, int at_offset); | 571 void label_at_put(Label* L, int at_offset); |
| 572 | 572 |
| 573 // Read/Modify the code target address in the branch/call instruction at pc. | 573 // Read/Modify the code target address in the branch/call instruction at pc. |
| 574 static Address target_address_at(Address pc); | 574 static Address target_address_at(Address pc); |
| 575 static void set_target_address_at(Address pc, Address target); | 575 static void set_target_address_at(Address pc, Address target); |
| 576 | 576 |
| 577 // Return the code target address at a call site from the return address |
| 578 // of that call in the instruction stream. |
| 579 inline static Address target_address_from_return_address(Address pc); |
| 580 |
| 577 static void JumpLabelToJumpRegister(Address pc); | 581 static void JumpLabelToJumpRegister(Address pc); |
| 578 | 582 |
| 579 static void QuietNaN(HeapObject* nan); | 583 static void QuietNaN(HeapObject* nan); |
| 580 | 584 |
| 581 // This sets the branch destination (which gets loaded at the call address). | 585 // This sets the branch destination (which gets loaded at the call address). |
| 582 // This is for calls and branches within generated code. The serializer | 586 // This is for calls and branches within generated code. The serializer |
| 583 // has already deserialized the lui/ori instructions etc. | 587 // has already deserialized the lui/ori instructions etc. |
| 584 inline static void deserialization_set_special_target_at( | 588 inline static void deserialization_set_special_target_at( |
| 585 Address instruction_payload, Address target) { | 589 Address instruction_payload, Address target) { |
| 586 set_target_address_at( | 590 set_target_address_at( |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 static const int kPatchReturnSequenceAddressOffset = 0; | 631 static const int kPatchReturnSequenceAddressOffset = 0; |
| 628 | 632 |
| 629 // Distance between start of patched debug break slot and the emitted address | 633 // Distance between start of patched debug break slot and the emitted address |
| 630 // to jump to. | 634 // to jump to. |
| 631 static const int kPatchDebugBreakSlotAddressOffset = 0 * kInstrSize; | 635 static const int kPatchDebugBreakSlotAddressOffset = 0 * kInstrSize; |
| 632 | 636 |
| 633 // Difference between address of current opcode and value read from pc | 637 // Difference between address of current opcode and value read from pc |
| 634 // register. | 638 // register. |
| 635 static const int kPcLoadDelta = 4; | 639 static const int kPcLoadDelta = 4; |
| 636 | 640 |
| 641 static const int kPatchDebugBreakSlotReturnOffset = 4 * kInstrSize; |
| 642 |
| 637 // Number of instructions used for the JS return sequence. The constant is | 643 // Number of instructions used for the JS return sequence. The constant is |
| 638 // used by the debugger to patch the JS return sequence. | 644 // used by the debugger to patch the JS return sequence. |
| 639 static const int kJSReturnSequenceInstructions = 7; | 645 static const int kJSReturnSequenceInstructions = 7; |
| 640 static const int kDebugBreakSlotInstructions = 4; | 646 static const int kDebugBreakSlotInstructions = 4; |
| 641 static const int kDebugBreakSlotLength = | 647 static const int kDebugBreakSlotLength = |
| 642 kDebugBreakSlotInstructions * kInstrSize; | 648 kDebugBreakSlotInstructions * kInstrSize; |
| 643 | 649 |
| 644 | 650 |
| 645 // --------------------------------------------------------------------------- | 651 // --------------------------------------------------------------------------- |
| 646 // Code generation. | 652 // Code generation. |
| (...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1288 class EnsureSpace BASE_EMBEDDED { | 1294 class EnsureSpace BASE_EMBEDDED { |
| 1289 public: | 1295 public: |
| 1290 explicit EnsureSpace(Assembler* assembler) { | 1296 explicit EnsureSpace(Assembler* assembler) { |
| 1291 assembler->CheckBuffer(); | 1297 assembler->CheckBuffer(); |
| 1292 } | 1298 } |
| 1293 }; | 1299 }; |
| 1294 | 1300 |
| 1295 } } // namespace v8::internal | 1301 } } // namespace v8::internal |
| 1296 | 1302 |
| 1297 #endif // V8_ARM_ASSEMBLER_MIPS_H_ | 1303 #endif // V8_ARM_ASSEMBLER_MIPS_H_ |
| OLD | NEW |