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

Side by Side Diff: src/arm/lithium-codegen-arm.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/arm/assembler-arm.cc ('k') | src/arm64/assembler-arm64.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/arm/lithium-codegen-arm.h" 7 #include "src/arm/lithium-codegen-arm.h"
8 #include "src/arm/lithium-gap-resolver-arm.h" 8 #include "src/arm/lithium-gap-resolver-arm.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 // restore caller doubles. 900 // restore caller doubles.
901 if (condition == al && frame_is_built_ && 901 if (condition == al && frame_is_built_ &&
902 !info()->saves_caller_doubles()) { 902 !info()->saves_caller_doubles()) {
903 DeoptComment(deopt_info); 903 DeoptComment(deopt_info);
904 __ Call(entry, RelocInfo::RUNTIME_ENTRY); 904 __ Call(entry, RelocInfo::RUNTIME_ENTRY);
905 } else { 905 } else {
906 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, 906 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type,
907 !frame_is_built_); 907 !frame_is_built_);
908 // We often have several deopts to the same entry, reuse the last 908 // We often have several deopts to the same entry, reuse the last
909 // jump entry if this is the case. 909 // jump entry if this is the case.
910 if (jump_table_.is_empty() || 910 if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling() ||
911 jump_table_.is_empty() ||
911 !table_entry.IsEquivalentTo(jump_table_.last())) { 912 !table_entry.IsEquivalentTo(jump_table_.last())) {
912 jump_table_.Add(table_entry, zone()); 913 jump_table_.Add(table_entry, zone());
913 } 914 }
914 __ b(condition, &jump_table_.last().label); 915 __ b(condition, &jump_table_.last().label);
915 } 916 }
916 } 917 }
917 918
918 919
919 void LCodeGen::DeoptimizeIf(Condition condition, LInstruction* instr, 920 void LCodeGen::DeoptimizeIf(Condition condition, LInstruction* instr,
920 Deoptimizer::DeoptReason deopt_reason) { 921 Deoptimizer::DeoptReason deopt_reason) {
(...skipping 5055 matching lines...) Expand 10 before | Expand all | Expand 10 after
5976 __ Push(scope_info); 5977 __ Push(scope_info);
5977 __ push(ToRegister(instr->function())); 5978 __ push(ToRegister(instr->function()));
5978 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5979 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5979 RecordSafepoint(Safepoint::kNoLazyDeopt); 5980 RecordSafepoint(Safepoint::kNoLazyDeopt);
5980 } 5981 }
5981 5982
5982 5983
5983 #undef __ 5984 #undef __
5984 5985
5985 } } // namespace v8::internal 5986 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.cc ('k') | src/arm64/assembler-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698