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

Side by Side Diff: src/crankshaft/arm/lithium-codegen-arm.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/compiler.h ('k') | src/crankshaft/arm64/lithium-codegen-arm64.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/arm/lithium-codegen-arm.h" 5 #include "src/crankshaft/arm/lithium-codegen-arm.h"
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h" 10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h"
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after
814 if (condition != al) { 814 if (condition != al) {
815 condition = ne; 815 condition = ne;
816 __ cmp(scratch, Operand::Zero()); 816 __ cmp(scratch, Operand::Zero());
817 } 817 }
818 } 818 }
819 819
820 if (info()->ShouldTrapOnDeopt()) { 820 if (info()->ShouldTrapOnDeopt()) {
821 __ stop("trap_on_deopt", condition); 821 __ stop("trap_on_deopt", condition);
822 } 822 }
823 823
824 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason); 824 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason, id);
825 825
826 DCHECK(info()->IsStub() || frame_is_built_); 826 DCHECK(info()->IsStub() || frame_is_built_);
827 // Go through jump table if we need to handle condition, build frame, or 827 // Go through jump table if we need to handle condition, build frame, or
828 // restore caller doubles. 828 // restore caller doubles.
829 if (condition == al && frame_is_built_ && 829 if (condition == al && frame_is_built_ &&
830 !info()->saves_caller_doubles()) { 830 !info()->saves_caller_doubles()) {
831 DeoptComment(deopt_info); 831 DeoptComment(deopt_info);
832 __ Call(entry, RelocInfo::RUNTIME_ENTRY); 832 __ Call(entry, RelocInfo::RUNTIME_ENTRY);
833 } else { 833 } else {
834 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, 834 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type,
(...skipping 4744 matching lines...) Expand 10 before | Expand all | Expand 10 after
5579 __ ldr(result, FieldMemOperand(scratch, 5579 __ ldr(result, FieldMemOperand(scratch,
5580 FixedArray::kHeaderSize - kPointerSize)); 5580 FixedArray::kHeaderSize - kPointerSize));
5581 __ bind(deferred->exit()); 5581 __ bind(deferred->exit());
5582 __ bind(&done); 5582 __ bind(&done);
5583 } 5583 }
5584 5584
5585 #undef __ 5585 #undef __
5586 5586
5587 } // namespace internal 5587 } // namespace internal
5588 } // namespace v8 5588 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler.h ('k') | src/crankshaft/arm64/lithium-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698