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

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

Issue 919953002: CPUProfiler: Push deopt reason further to ProfileNode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: unnecessary changes were removed Created 5 years, 10 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/assembler-mips64.cc ('k') | src/ppc/assembler-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/v8.h" 5 #include "src/v8.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/hydrogen-osr.h" 9 #include "src/hydrogen-osr.h"
10 #include "src/ic/ic.h" 10 #include "src/ic/ic.h"
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 // restore caller doubles. 813 // restore caller doubles.
814 if (condition == al && frame_is_built_ && 814 if (condition == al && frame_is_built_ &&
815 !info()->saves_caller_doubles()) { 815 !info()->saves_caller_doubles()) {
816 DeoptComment(deopt_info); 816 DeoptComment(deopt_info);
817 __ Call(entry, RelocInfo::RUNTIME_ENTRY, condition, src1, src2); 817 __ Call(entry, RelocInfo::RUNTIME_ENTRY, condition, src1, src2);
818 } else { 818 } else {
819 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, 819 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type,
820 !frame_is_built_); 820 !frame_is_built_);
821 // We often have several deopts to the same entry, reuse the last 821 // We often have several deopts to the same entry, reuse the last
822 // jump entry if this is the case. 822 // jump entry if this is the case.
823 if (jump_table_.is_empty() || 823 if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling() ||
824 jump_table_.is_empty() ||
824 !table_entry.IsEquivalentTo(jump_table_.last())) { 825 !table_entry.IsEquivalentTo(jump_table_.last())) {
825 jump_table_.Add(table_entry, zone()); 826 jump_table_.Add(table_entry, zone());
826 } 827 }
827 __ Branch(&jump_table_.last().label, condition, src1, src2); 828 __ Branch(&jump_table_.last().label, condition, src1, src2);
828 } 829 }
829 } 830 }
830 831
831 832
832 void LCodeGen::DeoptimizeIf(Condition condition, LInstruction* instr, 833 void LCodeGen::DeoptimizeIf(Condition condition, LInstruction* instr,
833 Deoptimizer::DeoptReason deopt_reason, 834 Deoptimizer::DeoptReason deopt_reason,
(...skipping 5222 matching lines...) Expand 10 before | Expand all | Expand 10 after
6056 __ li(at, scope_info); 6057 __ li(at, scope_info);
6057 __ Push(at, ToRegister(instr->function())); 6058 __ Push(at, ToRegister(instr->function()));
6058 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6059 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6059 RecordSafepoint(Safepoint::kNoLazyDeopt); 6060 RecordSafepoint(Safepoint::kNoLazyDeopt);
6060 } 6061 }
6061 6062
6062 6063
6063 #undef __ 6064 #undef __
6064 6065
6065 } } // namespace v8::internal 6066 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips64/assembler-mips64.cc ('k') | src/ppc/assembler-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698