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 800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |