OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 6871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6882 __ Jump(a2); | 6882 __ Jump(a2); |
6883 } | 6883 } |
6884 | 6884 |
6885 | 6885 |
6886 void DirectCEntryStub::Generate(MacroAssembler* masm) { | 6886 void DirectCEntryStub::Generate(MacroAssembler* masm) { |
6887 // No need to pop or drop anything, LeaveExitFrame will restore the old | 6887 // No need to pop or drop anything, LeaveExitFrame will restore the old |
6888 // stack, thus dropping the allocated space for the return value. | 6888 // stack, thus dropping the allocated space for the return value. |
6889 // The saved ra is after the reserved stack space for the 4 args. | 6889 // The saved ra is after the reserved stack space for the 4 args. |
6890 __ lw(t9, MemOperand(sp, kCArgsSlotsSize)); | 6890 __ lw(t9, MemOperand(sp, kCArgsSlotsSize)); |
6891 | 6891 |
6892 if (FLAG_debug_code && EnableSlowAsserts()) { | 6892 if (FLAG_debug_code && FLAG_enable_slow_asserts) { |
6893 // In case of an error the return address may point to a memory area | 6893 // In case of an error the return address may point to a memory area |
6894 // filled with kZapValue by the GC. | 6894 // filled with kZapValue by the GC. |
6895 // Dereference the address and check for this. | 6895 // Dereference the address and check for this. |
6896 __ lw(t0, MemOperand(t9)); | 6896 __ lw(t0, MemOperand(t9)); |
6897 __ Assert(ne, "Received invalid return address.", t0, | 6897 __ Assert(ne, "Received invalid return address.", t0, |
6898 Operand(reinterpret_cast<uint32_t>(kZapValue))); | 6898 Operand(reinterpret_cast<uint32_t>(kZapValue))); |
6899 } | 6899 } |
6900 __ Jump(t9); | 6900 __ Jump(t9); |
6901 } | 6901 } |
6902 | 6902 |
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7444 | 7444 |
7445 // Fall through when we need to inform the incremental marker. | 7445 // Fall through when we need to inform the incremental marker. |
7446 } | 7446 } |
7447 | 7447 |
7448 | 7448 |
7449 #undef __ | 7449 #undef __ |
7450 | 7450 |
7451 } } // namespace v8::internal | 7451 } } // namespace v8::internal |
7452 | 7452 |
7453 #endif // V8_TARGET_ARCH_MIPS | 7453 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |