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

Side by Side Diff: src/crankshaft/mips/lithium-codegen-mips.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/lithium-codegen.cc ('k') | src/crankshaft/mips64/lithium-codegen-mips64.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.7 1 // Copyright 2012 the V8 project authors. All rights reserved.7
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after
780 780
781 if (info()->ShouldTrapOnDeopt()) { 781 if (info()->ShouldTrapOnDeopt()) {
782 Label skip; 782 Label skip;
783 if (condition != al) { 783 if (condition != al) {
784 __ Branch(&skip, NegateCondition(condition), src1, src2); 784 __ Branch(&skip, NegateCondition(condition), src1, src2);
785 } 785 }
786 __ stop("trap_on_deopt"); 786 __ stop("trap_on_deopt");
787 __ bind(&skip); 787 __ bind(&skip);
788 } 788 }
789 789
790 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason); 790 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason, id);
791 791
792 DCHECK(info()->IsStub() || frame_is_built_); 792 DCHECK(info()->IsStub() || frame_is_built_);
793 // Go through jump table if we need to handle condition, build frame, or 793 // Go through jump table if we need to handle condition, build frame, or
794 // restore caller doubles. 794 // restore caller doubles.
795 if (condition == al && frame_is_built_ && 795 if (condition == al && frame_is_built_ &&
796 !info()->saves_caller_doubles()) { 796 !info()->saves_caller_doubles()) {
797 DeoptComment(deopt_info); 797 DeoptComment(deopt_info);
798 __ Call(entry, RelocInfo::RUNTIME_ENTRY, condition, src1, src2); 798 __ Call(entry, RelocInfo::RUNTIME_ENTRY, condition, src1, src2);
799 } else { 799 } else {
800 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, 800 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type,
(...skipping 4776 matching lines...) Expand 10 before | Expand all | Expand 10 after
5577 __ lw(result, FieldMemOperand(scratch, 5577 __ lw(result, FieldMemOperand(scratch,
5578 FixedArray::kHeaderSize - kPointerSize)); 5578 FixedArray::kHeaderSize - kPointerSize));
5579 __ bind(deferred->exit()); 5579 __ bind(deferred->exit());
5580 __ bind(&done); 5580 __ bind(&done);
5581 } 5581 }
5582 5582
5583 #undef __ 5583 #undef __
5584 5584
5585 } // namespace internal 5585 } // namespace internal
5586 } // namespace v8 5586 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/lithium-codegen.cc ('k') | src/crankshaft/mips64/lithium-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698