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/ppc/lithium-codegen-ppc.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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/ppc/lithium-codegen-ppc.h" 5 #include "src/crankshaft/ppc/lithium-codegen-ppc.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/hydrogen-osr.h" 10 #include "src/crankshaft/hydrogen-osr.h"
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 __ Call(entry, RelocInfo::RUNTIME_ENTRY); 746 __ Call(entry, RelocInfo::RUNTIME_ENTRY);
747 __ bind(&no_deopt); 747 __ bind(&no_deopt);
748 __ stw(r4, MemOperand(scratch)); 748 __ stw(r4, MemOperand(scratch));
749 __ Pop(r4, scratch); 749 __ Pop(r4, scratch);
750 } 750 }
751 751
752 if (info()->ShouldTrapOnDeopt()) { 752 if (info()->ShouldTrapOnDeopt()) {
753 __ stop("trap_on_deopt", cond, kDefaultStopCode, cr); 753 __ stop("trap_on_deopt", cond, kDefaultStopCode, cr);
754 } 754 }
755 755
756 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason); 756 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason, id);
757 757
758 DCHECK(info()->IsStub() || frame_is_built_); 758 DCHECK(info()->IsStub() || frame_is_built_);
759 // Go through jump table if we need to handle condition, build frame, or 759 // Go through jump table if we need to handle condition, build frame, or
760 // restore caller doubles. 760 // restore caller doubles.
761 if (cond == al && frame_is_built_ && !info()->saves_caller_doubles()) { 761 if (cond == al && frame_is_built_ && !info()->saves_caller_doubles()) {
762 DeoptComment(deopt_info); 762 DeoptComment(deopt_info);
763 __ Call(entry, RelocInfo::RUNTIME_ENTRY); 763 __ Call(entry, RelocInfo::RUNTIME_ENTRY);
764 } else { 764 } else {
765 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, 765 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type,
766 !frame_is_built_); 766 !frame_is_built_);
(...skipping 5016 matching lines...) Expand 10 before | Expand all | Expand 10 after
5783 __ LoadP(result, 5783 __ LoadP(result,
5784 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); 5784 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize));
5785 __ bind(deferred->exit()); 5785 __ bind(deferred->exit());
5786 __ bind(&done); 5786 __ bind(&done);
5787 } 5787 }
5788 5788
5789 #undef __ 5789 #undef __
5790 5790
5791 } // namespace internal 5791 } // namespace internal
5792 } // namespace v8 5792 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/mips64/lithium-codegen-mips64.cc ('k') | src/crankshaft/s390/lithium-codegen-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698