| 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 6883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6894 // Dereference the address and check for this. | 6894 // Dereference the address and check for this. |
| 6895 __ lw(t0, MemOperand(t9)); | 6895 __ lw(t0, MemOperand(t9)); |
| 6896 __ Assert(ne, "Received invalid return address.", t0, | 6896 __ Assert(ne, "Received invalid return address.", t0, |
| 6897 Operand(reinterpret_cast<uint32_t>(kZapValue))); | 6897 Operand(reinterpret_cast<uint32_t>(kZapValue))); |
| 6898 } | 6898 } |
| 6899 __ Jump(t9); | 6899 __ Jump(t9); |
| 6900 } | 6900 } |
| 6901 | 6901 |
| 6902 | 6902 |
| 6903 void DirectCEntryStub::GenerateCall(MacroAssembler* masm, | 6903 void DirectCEntryStub::GenerateCall(MacroAssembler* masm, |
| 6904 ExternalReference function) { | |
| 6905 __ li(t9, Operand(function)); | |
| 6906 this->GenerateCall(masm, t9); | |
| 6907 } | |
| 6908 | |
| 6909 | |
| 6910 void DirectCEntryStub::GenerateCall(MacroAssembler* masm, | |
| 6911 Register target) { | 6904 Register target) { |
| 6912 __ Move(t9, target); | 6905 __ Move(t9, target); |
| 6913 __ AssertStackIsAligned(); | 6906 __ AssertStackIsAligned(); |
| 6914 // Allocate space for arg slots. | 6907 // Allocate space for arg slots. |
| 6915 __ Subu(sp, sp, kCArgsSlotsSize); | 6908 __ Subu(sp, sp, kCArgsSlotsSize); |
| 6916 | 6909 |
| 6917 // Block the trampoline pool through the whole function to make sure the | 6910 // Block the trampoline pool through the whole function to make sure the |
| 6918 // number of generated instructions is constant. | 6911 // number of generated instructions is constant. |
| 6919 Assembler::BlockTrampolinePoolScope block_trampoline_pool(masm); | 6912 Assembler::BlockTrampolinePoolScope block_trampoline_pool(masm); |
| 6920 | 6913 |
| (...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7917 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); | 7910 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); |
| 7918 } | 7911 } |
| 7919 } | 7912 } |
| 7920 | 7913 |
| 7921 | 7914 |
| 7922 #undef __ | 7915 #undef __ |
| 7923 | 7916 |
| 7924 } } // namespace v8::internal | 7917 } } // namespace v8::internal |
| 7925 | 7918 |
| 7926 #endif // V8_TARGET_ARCH_MIPS | 7919 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |