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

Side by Side Diff: src/crankshaft/arm64/lithium-codegen-arm64.cc

Issue 1956693002: [compiler] Pass inlining_id via relocation info. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. Created 4 years, 7 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
« no previous file with comments | « src/crankshaft/arm/lithium-codegen-arm.cc ('k') | src/crankshaft/ia32/lithium-codegen-ia32.cc » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" 5 #include "src/crankshaft/arm64/lithium-codegen-arm64.h"
6 6
7 #include "src/arm64/frames-arm64.h" 7 #include "src/arm64/frames-arm64.h"
8 #include "src/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after
768 Comment(";;; call deopt with frame"); 768 Comment(";;; call deopt with frame");
769 // Save lr before Bl, fp will be adjusted in the needs_frame code. 769 // Save lr before Bl, fp will be adjusted in the needs_frame code.
770 __ Push(lr, fp); 770 __ Push(lr, fp);
771 // Reuse the existing needs_frame code. 771 // Reuse the existing needs_frame code.
772 __ Bl(&needs_frame); 772 __ Bl(&needs_frame);
773 } else { 773 } else {
774 // There is nothing special to do, so just continue to the second-level 774 // There is nothing special to do, so just continue to the second-level
775 // table. 775 // table.
776 __ Bl(&call_deopt_entry); 776 __ Bl(&call_deopt_entry);
777 } 777 }
778 LogDeoptCallPosition(masm()->pc_offset(),
779 table_entry->deopt_info.inlining_id);
780 778
781 masm()->CheckConstPool(false, false); 779 masm()->CheckConstPool(false, false);
782 } 780 }
783 781
784 if (needs_frame.is_linked()) { 782 if (needs_frame.is_linked()) {
785 // This variant of deopt can only be used with stubs. Since we don't 783 // This variant of deopt can only be used with stubs. Since we don't
786 // have a function pointer to install in the stack frame that we're 784 // have a function pointer to install in the stack frame that we're
787 // building, install a special marker there instead. 785 // building, install a special marker there instead.
788 DCHECK(info()->IsStub()); 786 DCHECK(info()->IsStub());
789 787
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
893 } 891 }
894 892
895 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason); 893 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason);
896 894
897 DCHECK(info()->IsStub() || frame_is_built_); 895 DCHECK(info()->IsStub() || frame_is_built_);
898 // Go through jump table if we need to build frame, or restore caller doubles. 896 // Go through jump table if we need to build frame, or restore caller doubles.
899 if (branch_type == always && 897 if (branch_type == always &&
900 frame_is_built_ && !info()->saves_caller_doubles()) { 898 frame_is_built_ && !info()->saves_caller_doubles()) {
901 DeoptComment(deopt_info); 899 DeoptComment(deopt_info);
902 __ Call(entry, RelocInfo::RUNTIME_ENTRY); 900 __ Call(entry, RelocInfo::RUNTIME_ENTRY);
903 LogDeoptCallPosition(masm()->pc_offset(), deopt_info.inlining_id);
904 } else { 901 } else {
905 Deoptimizer::JumpTableEntry* table_entry = 902 Deoptimizer::JumpTableEntry* table_entry =
906 new (zone()) Deoptimizer::JumpTableEntry( 903 new (zone()) Deoptimizer::JumpTableEntry(
907 entry, deopt_info, bailout_type, !frame_is_built_); 904 entry, deopt_info, bailout_type, !frame_is_built_);
908 // We often have several deopts to the same entry, reuse the last 905 // We often have several deopts to the same entry, reuse the last
909 // jump entry if this is the case. 906 // jump entry if this is the case.
910 if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling() || 907 if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling() ||
911 jump_table_.is_empty() || 908 jump_table_.is_empty() ||
912 !table_entry->IsEquivalentTo(*jump_table_.last())) { 909 !table_entry->IsEquivalentTo(*jump_table_.last())) {
913 jump_table_.Add(table_entry, zone()); 910 jump_table_.Add(table_entry, zone());
(...skipping 4863 matching lines...) Expand 10 before | Expand all | Expand 10 after
5777 // Index is equal to negated out of object property index plus 1. 5774 // Index is equal to negated out of object property index plus 1.
5778 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); 5775 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2));
5779 __ Ldr(result, FieldMemOperand(result, 5776 __ Ldr(result, FieldMemOperand(result,
5780 FixedArray::kHeaderSize - kPointerSize)); 5777 FixedArray::kHeaderSize - kPointerSize));
5781 __ Bind(deferred->exit()); 5778 __ Bind(deferred->exit());
5782 __ Bind(&done); 5779 __ Bind(&done);
5783 } 5780 }
5784 5781
5785 } // namespace internal 5782 } // namespace internal
5786 } // namespace v8 5783 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/arm/lithium-codegen-arm.cc ('k') | src/crankshaft/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698