Chromium Code Reviews| 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 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1107 // Clear the context before we push it when entering the JS frame. | 1107 // Clear the context before we push it when entering the JS frame. |
| 1108 __ mov(cp, zero_reg); | 1108 __ mov(cp, zero_reg); |
| 1109 | 1109 |
| 1110 // Enter an internal frame. | 1110 // Enter an internal frame. |
| 1111 { | 1111 { |
| 1112 FrameScope scope(masm, StackFrame::INTERNAL); | 1112 FrameScope scope(masm, StackFrame::INTERNAL); |
| 1113 | 1113 |
| 1114 // Set up the context from the function argument. | 1114 // Set up the context from the function argument. |
| 1115 __ lw(cp, FieldMemOperand(a1, JSFunction::kContextOffset)); | 1115 __ lw(cp, FieldMemOperand(a1, JSFunction::kContextOffset)); |
| 1116 | 1116 |
| 1117 __ InitializeRootRegister(); | |
| 1118 | |
| 1117 // Set up the roots register. | 1119 // Set up the roots register. |
|
Yang
2012/01/06 10:52:56
Isn't this part supposed to be replaced by Initial
| |
| 1118 ExternalReference roots_array_start = | 1120 ExternalReference roots_array_start = |
| 1119 ExternalReference::roots_array_start(masm->isolate()); | 1121 ExternalReference::roots_array_start(masm->isolate()); |
| 1120 __ li(s6, Operand(roots_array_start)); | 1122 __ li(s6, Operand(roots_array_start)); |
| 1121 | 1123 |
| 1122 // Push the function and the receiver onto the stack. | 1124 // Push the function and the receiver onto the stack. |
| 1123 __ Push(a1, a2); | 1125 __ Push(a1, a2); |
| 1124 | 1126 |
| 1125 // Copy arguments to the stack in a loop. | 1127 // Copy arguments to the stack in a loop. |
| 1126 // a3: argc | 1128 // a3: argc |
| 1127 // s0: argv, ie points to first arg | 1129 // s0: argv, ie points to first arg |
| (...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1814 __ bind(&dont_adapt_arguments); | 1816 __ bind(&dont_adapt_arguments); |
| 1815 __ Jump(a3); | 1817 __ Jump(a3); |
| 1816 } | 1818 } |
| 1817 | 1819 |
| 1818 | 1820 |
| 1819 #undef __ | 1821 #undef __ |
| 1820 | 1822 |
| 1821 } } // namespace v8::internal | 1823 } } // namespace v8::internal |
| 1822 | 1824 |
| 1823 #endif // V8_TARGET_ARCH_MIPS | 1825 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |