| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 664 // Mark this code sequence for FindPlatformCodeAgeSequence() | 664 // Mark this code sequence for FindPlatformCodeAgeSequence() |
| 665 patcher.masm()->nop(Assembler::CODE_AGE_MARKER_NOP); | 665 patcher.masm()->nop(Assembler::CODE_AGE_MARKER_NOP); |
| 666 // Save the function's original return address | 666 // Save the function's original return address |
| 667 // (it will be clobbered by Call(t9)) | 667 // (it will be clobbered by Call(t9)) |
| 668 patcher.masm()->mov(at, ra); | 668 patcher.masm()->mov(at, ra); |
| 669 // Load the stub address to t9 and call it | 669 // Load the stub address to t9 and call it |
| 670 patcher.masm()->li(t9, | 670 patcher.masm()->li(t9, |
| 671 Operand(reinterpret_cast<uint32_t>(stub->instruction_start()))); | 671 Operand(reinterpret_cast<uint32_t>(stub->instruction_start()))); |
| 672 patcher.masm()->Call(t9); | 672 patcher.masm()->Call(t9); |
| 673 // Record the stub address in the empty space for GetCodeAgeAndParity() | 673 // Record the stub address in the empty space for GetCodeAgeAndParity() |
| 674 patcher.masm()->dd(reinterpret_cast<uint32_t>(stub->instruction_start())); | 674 patcher.masm()->emit_code_stub_address(stub); |
| 675 } | 675 } |
| 676 } | 676 } |
| 677 | 677 |
| 678 | 678 |
| 679 #undef __ | 679 #undef __ |
| 680 | 680 |
| 681 } } // namespace v8::internal | 681 } } // namespace v8::internal |
| 682 | 682 |
| 683 #endif // V8_TARGET_ARCH_MIPS | 683 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |