Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(401)

Side by Side Diff: src/x64/deoptimizer-x64.cc

Issue 6623013: Fix X64 Crankshaft error on Win64 platform, in deoptimizer-x64.cc parameter p... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 // Allocate a new deoptimizer object. 633 // Allocate a new deoptimizer object.
634 __ PrepareCallCFunction(5); 634 __ PrepareCallCFunction(5);
635 __ movq(rax, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); 635 __ movq(rax, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset));
636 __ movq(arg1, rax); 636 __ movq(arg1, rax);
637 __ movq(arg2, Immediate(type())); 637 __ movq(arg2, Immediate(type()));
638 // Args 3 and 4 are already in the right registers. 638 // Args 3 and 4 are already in the right registers.
639 639
640 // On windows put the argument on the stack (PrepareCallCFunction have 640 // On windows put the argument on the stack (PrepareCallCFunction have
641 // created space for this). On linux pass the argument in r8. 641 // created space for this). On linux pass the argument in r8.
642 #ifdef _WIN64 642 #ifdef _WIN64
643 __ movq(Operand(rsp, 0 * kPointerSize), arg5); 643 __ movq(Operand(rsp, 4 * kPointerSize), arg5);
644 #else 644 #else
645 __ movq(r8, arg5); 645 __ movq(r8, arg5);
646 #endif 646 #endif
647 647
648 __ CallCFunction(ExternalReference::new_deoptimizer_function(), 5); 648 __ CallCFunction(ExternalReference::new_deoptimizer_function(), 5);
649 // Preserve deoptimizer object in register rax and get the input 649 // Preserve deoptimizer object in register rax and get the input
650 // frame descriptor pointer. 650 // frame descriptor pointer.
651 __ movq(rbx, Operand(rax, Deoptimizer::input_offset())); 651 __ movq(rbx, Operand(rax, Deoptimizer::input_offset()));
652 652
653 // Fill in the input registers. 653 // Fill in the input registers.
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 } 772 }
773 __ bind(&done); 773 __ bind(&done);
774 } 774 }
775 775
776 #undef __ 776 #undef __
777 777
778 778
779 } } // namespace v8::internal 779 } } // namespace v8::internal
780 780
781 #endif // V8_TARGET_ARCH_X64 781 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698