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

Side by Side Diff: src/ppc/lithium-codegen-ppc.cc

Issue 1011733005: CpuProfiler: extract DeoptInfo fill in code into a static function. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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/mips64/lithium-codegen-mips64.cc ('k') | src/x64/lithium-codegen-x64.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 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/v8.h" 5 #include "src/v8.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/cpu-profiler.h" 10 #include "src/cpu-profiler.h"
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 __ Call(entry, RelocInfo::RUNTIME_ENTRY); 794 __ Call(entry, RelocInfo::RUNTIME_ENTRY);
795 __ bind(&no_deopt); 795 __ bind(&no_deopt);
796 __ stw(r4, MemOperand(scratch)); 796 __ stw(r4, MemOperand(scratch));
797 __ Pop(r4, scratch); 797 __ Pop(r4, scratch);
798 } 798 }
799 799
800 if (info()->ShouldTrapOnDeopt()) { 800 if (info()->ShouldTrapOnDeopt()) {
801 __ stop("trap_on_deopt", cond, kDefaultStopCode, cr); 801 __ stop("trap_on_deopt", cond, kDefaultStopCode, cr);
802 } 802 }
803 803
804 Deoptimizer::DeoptInfo deopt_info(instr->hydrogen_value()->position(), 804 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason);
805 instr->Mnemonic(), deopt_reason); 805
806 DCHECK(info()->IsStub() || frame_is_built_); 806 DCHECK(info()->IsStub() || frame_is_built_);
807 // Go through jump table if we need to handle condition, build frame, or 807 // Go through jump table if we need to handle condition, build frame, or
808 // restore caller doubles. 808 // restore caller doubles.
809 if (cond == al && frame_is_built_ && !info()->saves_caller_doubles()) { 809 if (cond == al && frame_is_built_ && !info()->saves_caller_doubles()) {
810 DeoptComment(deopt_info); 810 DeoptComment(deopt_info);
811 __ Call(entry, RelocInfo::RUNTIME_ENTRY); 811 __ Call(entry, RelocInfo::RUNTIME_ENTRY);
812 } else { 812 } else {
813 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, 813 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type,
814 !frame_is_built_); 814 !frame_is_built_);
815 // We often have several deopts to the same entry, reuse the last 815 // We often have several deopts to the same entry, reuse the last
(...skipping 5419 matching lines...) Expand 10 before | Expand all | Expand 10 after
6235 __ Push(scope_info); 6235 __ Push(scope_info);
6236 __ push(ToRegister(instr->function())); 6236 __ push(ToRegister(instr->function()));
6237 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6237 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6238 RecordSafepoint(Safepoint::kNoLazyDeopt); 6238 RecordSafepoint(Safepoint::kNoLazyDeopt);
6239 } 6239 }
6240 6240
6241 6241
6242 #undef __ 6242 #undef __
6243 } 6243 }
6244 } // namespace v8::internal 6244 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips64/lithium-codegen-mips64.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698