| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 | 566 |
| 567 // Tear down the internal frame and remove function, receiver and args. | 567 // Tear down the internal frame and remove function, receiver and args. |
| 568 __ LeaveInternalFrame(); | 568 __ LeaveInternalFrame(); |
| 569 __ add(sp, sp, Operand(3 * kPointerSize)); | 569 __ add(sp, sp, Operand(3 * kPointerSize)); |
| 570 __ Jump(lr); | 570 __ Jump(lr); |
| 571 } | 571 } |
| 572 | 572 |
| 573 | 573 |
| 574 static void EnterArgumentsAdaptorFrame(MacroAssembler* masm) { | 574 static void EnterArgumentsAdaptorFrame(MacroAssembler* masm) { |
| 575 __ mov(r0, Operand(r0, LSL, kSmiTagSize)); | 575 __ mov(r0, Operand(r0, LSL, kSmiTagSize)); |
| 576 __ mov(r4, Operand(ArgumentsAdaptorFrame::SENTINEL)); | 576 __ mov(r4, Operand(Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR))); |
| 577 __ stm(db_w, sp, r0.bit() | r1.bit() | r4.bit() | fp.bit() | lr.bit()); | 577 __ stm(db_w, sp, r0.bit() | r1.bit() | r4.bit() | fp.bit() | lr.bit()); |
| 578 __ add(fp, sp, Operand(3 * kPointerSize)); | 578 __ add(fp, sp, Operand(3 * kPointerSize)); |
| 579 } | 579 } |
| 580 | 580 |
| 581 | 581 |
| 582 static void LeaveArgumentsAdaptorFrame(MacroAssembler* masm) { | 582 static void LeaveArgumentsAdaptorFrame(MacroAssembler* masm) { |
| 583 // ----------- S t a t e ------------- | 583 // ----------- S t a t e ------------- |
| 584 // -- r0 : result being passed through | 584 // -- r0 : result being passed through |
| 585 // ----------------------------------- | 585 // ----------------------------------- |
| 586 // Get the number of arguments passed (as a smi), tear down the frame and | 586 // Get the number of arguments passed (as a smi), tear down the frame and |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 // Dont adapt arguments. | 693 // Dont adapt arguments. |
| 694 // ------------------------------------------- | 694 // ------------------------------------------- |
| 695 __ bind(&dont_adapt_arguments); | 695 __ bind(&dont_adapt_arguments); |
| 696 __ Jump(r3); | 696 __ Jump(r3); |
| 697 } | 697 } |
| 698 | 698 |
| 699 | 699 |
| 700 #undef __ | 700 #undef __ |
| 701 | 701 |
| 702 } } // namespace v8::internal | 702 } } // namespace v8::internal |
| OLD | NEW |