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

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

Issue 14429003: Refactor ExternalReference::isolate_address() to not rely on Isolate::Current(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments 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
« no previous file with comments | « src/x64/deoptimizer-x64.cc ('k') | src/x64/regexp-macro-assembler-x64.h » ('j') | 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 800 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 #ifdef _WIN64
821 LoadAddress(rcx, ExternalReference::isolate_address()); 821 LoadAddress(rcx, ExternalReference::isolate_address(isolate()));
822 #else 822 #else
823 LoadAddress(rdi, ExternalReference::isolate_address()); 823 LoadAddress(rdi, ExternalReference::isolate_address(isolate()));
824 #endif 824 #endif
825 LoadAddress(rax, 825 LoadAddress(rax,
826 ExternalReference::delete_handle_scope_extensions(isolate())); 826 ExternalReference::delete_handle_scope_extensions(isolate()));
827 call(rax); 827 call(rax);
828 movq(rax, prev_limit_reg); 828 movq(rax, prev_limit_reg);
829 jmp(&leave_exit_frame); 829 jmp(&leave_exit_frame);
830 } 830 }
831 831
832 832
833 void MacroAssembler::JumpToExternalReference(const ExternalReference& ext, 833 void MacroAssembler::JumpToExternalReference(const ExternalReference& ext,
(...skipping 3803 matching lines...) Expand 10 before | Expand all | Expand 10 after
4637 j(greater, &no_info_available); 4637 j(greater, &no_info_available);
4638 CompareRoot(MemOperand(scratch_reg, -AllocationSiteInfo::kSize), 4638 CompareRoot(MemOperand(scratch_reg, -AllocationSiteInfo::kSize),
4639 Heap::kAllocationSiteInfoMapRootIndex); 4639 Heap::kAllocationSiteInfoMapRootIndex);
4640 bind(&no_info_available); 4640 bind(&no_info_available);
4641 } 4641 }
4642 4642
4643 4643
4644 } } // namespace v8::internal 4644 } } // namespace v8::internal
4645 4645
4646 #endif // V8_TARGET_ARCH_X64 4646 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/deoptimizer-x64.cc ('k') | src/x64/regexp-macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698