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 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
686 | 686 |
687 | 687 |
688 static void Generate_JSEntryTrampolineHelper(MacroAssembler* masm, | 688 static void Generate_JSEntryTrampolineHelper(MacroAssembler* masm, |
689 bool is_construct) { | 689 bool is_construct) { |
690 // Called from Generate_JS_Entry | 690 // Called from Generate_JS_Entry |
691 // r0: code entry | 691 // r0: code entry |
692 // r1: function | 692 // r1: function |
693 // r2: receiver | 693 // r2: receiver |
694 // r3: argc | 694 // r3: argc |
695 // r4: argv | 695 // r4: argv |
696 // r5-r6, r7 (if not FLAG_enable_ool_constant_pool) and cp may be clobbered | 696 // r5-r6, r8 (if not FLAG_enable_ool_constant_pool) and cp may be clobbered |
697 ProfileEntryHookStub::MaybeCallEntryHook(masm); | 697 ProfileEntryHookStub::MaybeCallEntryHook(masm); |
698 | 698 |
699 // Clear the context before we push it when entering the internal frame. | 699 // Clear the context before we push it when entering the internal frame. |
700 __ mov(cp, Operand::Zero()); | 700 __ mov(cp, Operand::Zero()); |
701 | 701 |
702 // Enter an internal frame. | 702 // Enter an internal frame. |
703 { | 703 { |
704 FrameScope scope(masm, StackFrame::INTERNAL); | 704 FrameScope scope(masm, StackFrame::INTERNAL); |
705 | 705 |
706 // Set up the context from the function argument. | 706 // Set up the context from the function argument. |
(...skipping 20 matching lines...) Expand all Loading... |
727 __ bind(&entry); | 727 __ bind(&entry); |
728 __ cmp(r4, r2); | 728 __ cmp(r4, r2); |
729 __ b(ne, &loop); | 729 __ b(ne, &loop); |
730 | 730 |
731 // Initialize all JavaScript callee-saved registers, since they will be seen | 731 // Initialize all JavaScript callee-saved registers, since they will be seen |
732 // by the garbage collector as part of handlers. | 732 // by the garbage collector as part of handlers. |
733 __ LoadRoot(r4, Heap::kUndefinedValueRootIndex); | 733 __ LoadRoot(r4, Heap::kUndefinedValueRootIndex); |
734 __ mov(r5, Operand(r4)); | 734 __ mov(r5, Operand(r4)); |
735 __ mov(r6, Operand(r4)); | 735 __ mov(r6, Operand(r4)); |
736 if (!FLAG_enable_ool_constant_pool) { | 736 if (!FLAG_enable_ool_constant_pool) { |
737 __ mov(r7, Operand(r4)); | 737 __ mov(r8, Operand(r4)); |
738 } | 738 } |
739 if (kR9Available == 1) { | 739 if (kR9Available == 1) { |
740 __ mov(r9, Operand(r4)); | 740 __ mov(r9, Operand(r4)); |
741 } | 741 } |
742 | 742 |
743 // Invoke the code and pass argc as r0. | 743 // Invoke the code and pass argc as r0. |
744 __ mov(r0, Operand(r3)); | 744 __ mov(r0, Operand(r3)); |
745 if (is_construct) { | 745 if (is_construct) { |
746 // No type feedback cell is available | 746 // No type feedback cell is available |
747 Handle<Object> undefined_sentinel( | 747 Handle<Object> undefined_sentinel( |
(...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1482 __ bind(&dont_adapt_arguments); | 1482 __ bind(&dont_adapt_arguments); |
1483 __ Jump(r3); | 1483 __ Jump(r3); |
1484 } | 1484 } |
1485 | 1485 |
1486 | 1486 |
1487 #undef __ | 1487 #undef __ |
1488 | 1488 |
1489 } } // namespace v8::internal | 1489 } } // namespace v8::internal |
1490 | 1490 |
1491 #endif // V8_TARGET_ARCH_ARM | 1491 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |