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

Side by Side Diff: src/crankshaft/mips64/lithium-codegen-mips64.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/mips/lithium-codegen-mips.cc ('k') | src/crankshaft/ppc/lithium-codegen-ppc.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/mips64/lithium-codegen-mips64.h" 5 #include "src/crankshaft/mips64/lithium-codegen-mips64.h"
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/crankshaft/hydrogen-osr.h" 9 #include "src/crankshaft/hydrogen-osr.h"
10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h" 10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h"
(...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 767
768 if (info()->ShouldTrapOnDeopt()) { 768 if (info()->ShouldTrapOnDeopt()) {
769 Label skip; 769 Label skip;
770 if (condition != al) { 770 if (condition != al) {
771 __ Branch(&skip, NegateCondition(condition), src1, src2); 771 __ Branch(&skip, NegateCondition(condition), src1, src2);
772 } 772 }
773 __ stop("trap_on_deopt"); 773 __ stop("trap_on_deopt");
774 __ bind(&skip); 774 __ bind(&skip);
775 } 775 }
776 776
777 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason); 777 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason, id);
778 778
779 DCHECK(info()->IsStub() || frame_is_built_); 779 DCHECK(info()->IsStub() || frame_is_built_);
780 // Go through jump table if we need to handle condition, build frame, or 780 // Go through jump table if we need to handle condition, build frame, or
781 // restore caller doubles. 781 // restore caller doubles.
782 if (condition == al && frame_is_built_ && 782 if (condition == al && frame_is_built_ &&
783 !info()->saves_caller_doubles()) { 783 !info()->saves_caller_doubles()) {
784 DeoptComment(deopt_info); 784 DeoptComment(deopt_info);
785 __ Call(entry, RelocInfo::RUNTIME_ENTRY, condition, src1, src2); 785 __ Call(entry, RelocInfo::RUNTIME_ENTRY, condition, src1, src2);
786 } else { 786 } else {
787 Deoptimizer::JumpTableEntry* table_entry = 787 Deoptimizer::JumpTableEntry* table_entry =
(...skipping 4994 matching lines...) Expand 10 before | Expand all | Expand 10 after
5782 __ ld(result, FieldMemOperand(scratch, 5782 __ ld(result, FieldMemOperand(scratch,
5783 FixedArray::kHeaderSize - kPointerSize)); 5783 FixedArray::kHeaderSize - kPointerSize));
5784 __ bind(deferred->exit()); 5784 __ bind(deferred->exit());
5785 __ bind(&done); 5785 __ bind(&done);
5786 } 5786 }
5787 5787
5788 #undef __ 5788 #undef __
5789 5789
5790 } // namespace internal 5790 } // namespace internal
5791 } // namespace v8 5791 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/mips/lithium-codegen-mips.cc ('k') | src/crankshaft/ppc/lithium-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698