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 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 __ lea(arg5, Operand(rsp, kSavedRegistersAreaSize + 2 * kPointerSize)); | 658 __ lea(arg5, Operand(rsp, kSavedRegistersAreaSize + 2 * kPointerSize)); |
659 } | 659 } |
660 | 660 |
661 __ subq(arg5, rbp); | 661 __ subq(arg5, rbp); |
662 __ neg(arg5); | 662 __ neg(arg5); |
663 | 663 |
664 // Allocate a new deoptimizer object. | 664 // Allocate a new deoptimizer object. |
665 __ PrepareCallCFunction(6); | 665 __ PrepareCallCFunction(6); |
666 __ movq(rax, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); | 666 __ movq(rax, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); |
667 __ movq(arg1, rax); | 667 __ movq(arg1, rax); |
668 __ movq(arg2, Immediate(type())); | 668 __ Set(arg2, type()); |
669 // Args 3 and 4 are already in the right registers. | 669 // Args 3 and 4 are already in the right registers. |
670 | 670 |
671 // On windows put the arguments on the stack (PrepareCallCFunction | 671 // On windows put the arguments on the stack (PrepareCallCFunction |
672 // has created space for this). On linux pass the arguments in r8 and r9. | 672 // has created space for this). On linux pass the arguments in r8 and r9. |
673 #ifdef _WIN64 | 673 #ifdef _WIN64 |
674 __ movq(Operand(rsp, 4 * kPointerSize), arg5); | 674 __ movq(Operand(rsp, 4 * kPointerSize), arg5); |
675 __ LoadAddress(arg5, ExternalReference::isolate_address()); | 675 __ LoadAddress(arg5, ExternalReference::isolate_address()); |
676 __ movq(Operand(rsp, 5 * kPointerSize), arg5); | 676 __ movq(Operand(rsp, 5 * kPointerSize), arg5); |
677 #else | 677 #else |
678 __ movq(r8, arg5); | 678 __ movq(r8, arg5); |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
806 } | 806 } |
807 __ bind(&done); | 807 __ bind(&done); |
808 } | 808 } |
809 | 809 |
810 #undef __ | 810 #undef __ |
811 | 811 |
812 | 812 |
813 } } // namespace v8::internal | 813 } } // namespace v8::internal |
814 | 814 |
815 #endif // V8_TARGET_ARCH_X64 | 815 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |