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 6894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6905 // Dereference the address and check for this. | 6905 // Dereference the address and check for this. |
6906 __ lw(t0, MemOperand(t9)); | 6906 __ lw(t0, MemOperand(t9)); |
6907 __ Assert(ne, "Received invalid return address.", t0, | 6907 __ Assert(ne, "Received invalid return address.", t0, |
6908 Operand(reinterpret_cast<uint32_t>(kZapValue))); | 6908 Operand(reinterpret_cast<uint32_t>(kZapValue))); |
6909 } | 6909 } |
6910 __ Jump(t9); | 6910 __ Jump(t9); |
6911 } | 6911 } |
6912 | 6912 |
6913 | 6913 |
6914 void DirectCEntryStub::GenerateCall(MacroAssembler* masm, | 6914 void DirectCEntryStub::GenerateCall(MacroAssembler* masm, |
6915 ExternalReference function) { | |
6916 __ li(t9, Operand(function)); | |
6917 this->GenerateCall(masm, t9); | |
6918 } | |
6919 | |
6920 | |
6921 void DirectCEntryStub::GenerateCall(MacroAssembler* masm, | |
6922 Register target) { | 6915 Register target) { |
6923 __ Move(t9, target); | 6916 __ Move(t9, target); |
6924 __ AssertStackIsAligned(); | 6917 __ AssertStackIsAligned(); |
6925 // Allocate space for arg slots. | 6918 // Allocate space for arg slots. |
6926 __ Subu(sp, sp, kCArgsSlotsSize); | 6919 __ Subu(sp, sp, kCArgsSlotsSize); |
6927 | 6920 |
6928 // Block the trampoline pool through the whole function to make sure the | 6921 // Block the trampoline pool through the whole function to make sure the |
6929 // number of generated instructions is constant. | 6922 // number of generated instructions is constant. |
6930 Assembler::BlockTrampolinePoolScope block_trampoline_pool(masm); | 6923 Assembler::BlockTrampolinePoolScope block_trampoline_pool(masm); |
6931 | 6924 |
(...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7928 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); | 7921 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); |
7929 } | 7922 } |
7930 } | 7923 } |
7931 | 7924 |
7932 | 7925 |
7933 #undef __ | 7926 #undef __ |
7934 | 7927 |
7935 } } // namespace v8::internal | 7928 } } // namespace v8::internal |
7936 | 7929 |
7937 #endif // V8_TARGET_ARCH_MIPS | 7930 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |