| 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 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1046 __ mov(cp, zero_reg); | 1046 __ mov(cp, zero_reg); |
| 1047 | 1047 |
| 1048 // Enter an internal frame. | 1048 // Enter an internal frame. |
| 1049 { | 1049 { |
| 1050 FrameScope scope(masm, StackFrame::INTERNAL); | 1050 FrameScope scope(masm, StackFrame::INTERNAL); |
| 1051 | 1051 |
| 1052 // Set up the context from the function argument. | 1052 // Set up the context from the function argument. |
| 1053 __ lw(cp, FieldMemOperand(a1, JSFunction::kContextOffset)); | 1053 __ lw(cp, FieldMemOperand(a1, JSFunction::kContextOffset)); |
| 1054 | 1054 |
| 1055 // Set up the roots register. | 1055 // Set up the roots register. |
| 1056 ExternalReference roots_address = | 1056 ExternalReference roots_array_start = |
| 1057 ExternalReference::roots_address(masm->isolate()); | 1057 ExternalReference::roots_array_start(masm->isolate()); |
| 1058 __ li(s6, Operand(roots_address)); | 1058 __ li(s6, Operand(roots_array_start)); |
| 1059 | 1059 |
| 1060 // Push the function and the receiver onto the stack. | 1060 // Push the function and the receiver onto the stack. |
| 1061 __ Push(a1, a2); | 1061 __ Push(a1, a2); |
| 1062 | 1062 |
| 1063 // Copy arguments to the stack in a loop. | 1063 // Copy arguments to the stack in a loop. |
| 1064 // a3: argc | 1064 // a3: argc |
| 1065 // s0: argv, ie points to first arg | 1065 // s0: argv, ie points to first arg |
| 1066 Label loop, entry; | 1066 Label loop, entry; |
| 1067 __ sll(t0, a3, kPointerSizeLog2); | 1067 __ sll(t0, a3, kPointerSizeLog2); |
| 1068 __ addu(t2, s0, t0); | 1068 __ addu(t2, s0, t0); |
| (...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1687 __ bind(&dont_adapt_arguments); | 1687 __ bind(&dont_adapt_arguments); |
| 1688 __ Jump(a3); | 1688 __ Jump(a3); |
| 1689 } | 1689 } |
| 1690 | 1690 |
| 1691 | 1691 |
| 1692 #undef __ | 1692 #undef __ |
| 1693 | 1693 |
| 1694 } } // namespace v8::internal | 1694 } } // namespace v8::internal |
| 1695 | 1695 |
| 1696 #endif // V8_TARGET_ARCH_MIPS | 1696 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |