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

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

Issue 1973993002: [compiler] Profiler reconstructs inlined frames for deopts. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix build. 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/hydrogen.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 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 872 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 __ Pop(x2, x1, x0); 883 __ Pop(x2, x1, x0);
884 } 884 }
885 885
886 if (info()->ShouldTrapOnDeopt()) { 886 if (info()->ShouldTrapOnDeopt()) {
887 Label dont_trap; 887 Label dont_trap;
888 __ B(&dont_trap, InvertBranchType(branch_type), reg, bit); 888 __ B(&dont_trap, InvertBranchType(branch_type), reg, bit);
889 __ Debug("trap_on_deopt", __LINE__, BREAK); 889 __ Debug("trap_on_deopt", __LINE__, BREAK);
890 __ Bind(&dont_trap); 890 __ Bind(&dont_trap);
891 } 891 }
892 892
893 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason); 893 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason, id);
894 894
895 DCHECK(info()->IsStub() || frame_is_built_); 895 DCHECK(info()->IsStub() || frame_is_built_);
896 // 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.
897 if (branch_type == always && 897 if (branch_type == always &&
898 frame_is_built_ && !info()->saves_caller_doubles()) { 898 frame_is_built_ && !info()->saves_caller_doubles()) {
899 DeoptComment(deopt_info); 899 DeoptComment(deopt_info);
900 __ Call(entry, RelocInfo::RUNTIME_ENTRY); 900 __ Call(entry, RelocInfo::RUNTIME_ENTRY);
901 } else { 901 } else {
902 Deoptimizer::JumpTableEntry* table_entry = 902 Deoptimizer::JumpTableEntry* table_entry =
903 new (zone()) Deoptimizer::JumpTableEntry( 903 new (zone()) Deoptimizer::JumpTableEntry(
(...skipping 4866 matching lines...) Expand 10 before | Expand all | Expand 10 after
5770 // Index is equal to negated out of object property index plus 1. 5770 // Index is equal to negated out of object property index plus 1.
5771 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); 5771 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2));
5772 __ Ldr(result, FieldMemOperand(result, 5772 __ Ldr(result, FieldMemOperand(result,
5773 FixedArray::kHeaderSize - kPointerSize)); 5773 FixedArray::kHeaderSize - kPointerSize));
5774 __ Bind(deferred->exit()); 5774 __ Bind(deferred->exit());
5775 __ Bind(&done); 5775 __ Bind(&done);
5776 } 5776 }
5777 5777
5778 } // namespace internal 5778 } // namespace internal
5779 } // namespace v8 5779 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/arm/lithium-codegen-arm.cc ('k') | src/crankshaft/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698