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

Side by Side Diff: src/mips/lithium-codegen-mips.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/mips/assembler-mips.cc ('k') | src/mips64/assembler-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 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 // restore caller doubles. 863 // restore caller doubles.
864 if (condition == al && frame_is_built_ && 864 if (condition == al && frame_is_built_ &&
865 !info()->saves_caller_doubles()) { 865 !info()->saves_caller_doubles()) {
866 DeoptComment(deopt_info); 866 DeoptComment(deopt_info);
867 __ Call(entry, RelocInfo::RUNTIME_ENTRY, condition, src1, src2); 867 __ Call(entry, RelocInfo::RUNTIME_ENTRY, condition, src1, src2);
868 } else { 868 } else {
869 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, 869 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type,
870 !frame_is_built_); 870 !frame_is_built_);
871 // We often have several deopts to the same entry, reuse the last 871 // We often have several deopts to the same entry, reuse the last
872 // jump entry if this is the case. 872 // jump entry if this is the case.
873 if (jump_table_.is_empty() || 873 if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling() ||
874 jump_table_.is_empty() ||
874 !table_entry.IsEquivalentTo(jump_table_.last())) { 875 !table_entry.IsEquivalentTo(jump_table_.last())) {
875 jump_table_.Add(table_entry, zone()); 876 jump_table_.Add(table_entry, zone());
876 } 877 }
877 __ Branch(&jump_table_.last().label, condition, src1, src2); 878 __ Branch(&jump_table_.last().label, condition, src1, src2);
878 } 879 }
879 } 880 }
880 881
881 882
882 void LCodeGen::DeoptimizeIf(Condition condition, LInstruction* instr, 883 void LCodeGen::DeoptimizeIf(Condition condition, LInstruction* instr,
883 Deoptimizer::DeoptReason deopt_reason, 884 Deoptimizer::DeoptReason deopt_reason,
(...skipping 5141 matching lines...) Expand 10 before | Expand all | Expand 10 after
6025 __ li(at, scope_info); 6026 __ li(at, scope_info);
6026 __ Push(at, ToRegister(instr->function())); 6027 __ Push(at, ToRegister(instr->function()));
6027 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6028 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6028 RecordSafepoint(Safepoint::kNoLazyDeopt); 6029 RecordSafepoint(Safepoint::kNoLazyDeopt);
6029 } 6030 }
6030 6031
6031 6032
6032 #undef __ 6033 #undef __
6033 6034
6034 } } // namespace v8::internal 6035 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/assembler-mips.cc ('k') | src/mips64/assembler-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698