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

Side by Side Diff: src/arm/lithium-codegen-arm.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 | « no previous file | src/arm64/lithium-codegen-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 860 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 if (condition != al) { 871 if (condition != al) {
872 condition = ne; 872 condition = ne;
873 __ cmp(scratch, Operand::Zero()); 873 __ cmp(scratch, Operand::Zero());
874 } 874 }
875 } 875 }
876 876
877 if (info()->ShouldTrapOnDeopt()) { 877 if (info()->ShouldTrapOnDeopt()) {
878 __ stop("trap_on_deopt", condition); 878 __ stop("trap_on_deopt", condition);
879 } 879 }
880 880
881 Deoptimizer::DeoptInfo deopt_info(instr->hydrogen_value()->position(), 881 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason);
882 instr->Mnemonic(), deopt_reason); 882
883 DCHECK(info()->IsStub() || frame_is_built_); 883 DCHECK(info()->IsStub() || frame_is_built_);
884 // Go through jump table if we need to handle condition, build frame, or 884 // Go through jump table if we need to handle condition, build frame, or
885 // restore caller doubles. 885 // restore caller doubles.
886 if (condition == al && frame_is_built_ && 886 if (condition == al && frame_is_built_ &&
887 !info()->saves_caller_doubles()) { 887 !info()->saves_caller_doubles()) {
888 DeoptComment(deopt_info); 888 DeoptComment(deopt_info);
889 __ Call(entry, RelocInfo::RUNTIME_ENTRY); 889 __ Call(entry, RelocInfo::RUNTIME_ENTRY);
890 } else { 890 } else {
891 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, 891 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type,
892 !frame_is_built_); 892 !frame_is_built_);
(...skipping 5077 matching lines...) Expand 10 before | Expand all | Expand 10 after
5970 __ Push(scope_info); 5970 __ Push(scope_info);
5971 __ push(ToRegister(instr->function())); 5971 __ push(ToRegister(instr->function()));
5972 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5972 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5973 RecordSafepoint(Safepoint::kNoLazyDeopt); 5973 RecordSafepoint(Safepoint::kNoLazyDeopt);
5974 } 5974 }
5975 5975
5976 5976
5977 #undef __ 5977 #undef __
5978 5978
5979 } } // namespace v8::internal 5979 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/arm64/lithium-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698