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

Side by Side Diff: src/x64/macro-assembler-x64.cc

Issue 13940014: Simplify some code related to x64 calling convention. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 8 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
« src/x64/code-stubs-x64.cc ('K') | « src/x64/lithium-x64.cc ('k') | 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 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 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
810 LoadRoot(rax, Heap::kUndefinedValueRootIndex); 810 LoadRoot(rax, Heap::kUndefinedValueRootIndex);
811 jmp(&prologue); 811 jmp(&prologue);
812 812
813 bind(&promote_scheduled_exception); 813 bind(&promote_scheduled_exception);
814 TailCallRuntime(Runtime::kPromoteScheduledException, 0, 1); 814 TailCallRuntime(Runtime::kPromoteScheduledException, 0, 1);
815 815
816 // HandleScope limit has changed. Delete allocated extensions. 816 // HandleScope limit has changed. Delete allocated extensions.
817 bind(&delete_allocated_handles); 817 bind(&delete_allocated_handles);
818 movq(Operand(base_reg, kLimitOffset), prev_limit_reg); 818 movq(Operand(base_reg, kLimitOffset), prev_limit_reg);
819 movq(prev_limit_reg, rax); 819 movq(prev_limit_reg, rax);
820 #ifdef _WIN64 820 LoadAddress(arg_reg_1, ExternalReference::isolate_address(isolate()));
821 LoadAddress(rcx, ExternalReference::isolate_address(isolate()));
822 #else
823 LoadAddress(rdi, ExternalReference::isolate_address(isolate()));
824 #endif
825 LoadAddress(rax, 821 LoadAddress(rax,
826 ExternalReference::delete_handle_scope_extensions(isolate())); 822 ExternalReference::delete_handle_scope_extensions(isolate()));
827 call(rax); 823 call(rax);
828 movq(rax, prev_limit_reg); 824 movq(rax, prev_limit_reg);
829 jmp(&leave_exit_frame); 825 jmp(&leave_exit_frame);
830 } 826 }
831 827
832 828
833 void MacroAssembler::JumpToExternalReference(const ExternalReference& ext, 829 void MacroAssembler::JumpToExternalReference(const ExternalReference& ext,
834 int result_size) { 830 int result_size) {
(...skipping 3802 matching lines...) Expand 10 before | Expand all | Expand 10 after
4637 j(greater, &no_info_available); 4633 j(greater, &no_info_available);
4638 CompareRoot(MemOperand(scratch_reg, -AllocationSiteInfo::kSize), 4634 CompareRoot(MemOperand(scratch_reg, -AllocationSiteInfo::kSize),
4639 Heap::kAllocationSiteInfoMapRootIndex); 4635 Heap::kAllocationSiteInfoMapRootIndex);
4640 bind(&no_info_available); 4636 bind(&no_info_available);
4641 } 4637 }
4642 4638
4643 4639
4644 } } // namespace v8::internal 4640 } } // namespace v8::internal
4645 4641
4646 #endif // V8_TARGET_ARCH_X64 4642 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/x64/code-stubs-x64.cc ('K') | « src/x64/lithium-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698