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

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

Issue 959203002: CpuProfiler: replace raw position with SourcePosition for DeoptReason (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix for win32 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/arm/assembler-arm.h ('k') | src/arm64/assembler-arm64.h » ('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 876 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 if (condition != al) { 887 if (condition != al) {
888 condition = ne; 888 condition = ne;
889 __ cmp(scratch, Operand::Zero()); 889 __ cmp(scratch, Operand::Zero());
890 } 890 }
891 } 891 }
892 892
893 if (info()->ShouldTrapOnDeopt()) { 893 if (info()->ShouldTrapOnDeopt()) {
894 __ stop("trap_on_deopt", condition); 894 __ stop("trap_on_deopt", condition);
895 } 895 }
896 896
897 Deoptimizer::DeoptInfo deopt_info(instr->hydrogen_value()->position().raw(), 897 Deoptimizer::DeoptInfo deopt_info(instr->hydrogen_value()->position(),
898 instr->Mnemonic(), deopt_reason); 898 instr->Mnemonic(), deopt_reason);
899 DCHECK(info()->IsStub() || frame_is_built_); 899 DCHECK(info()->IsStub() || frame_is_built_);
900 // Go through jump table if we need to handle condition, build frame, or 900 // Go through jump table if we need to handle condition, build frame, or
901 // restore caller doubles. 901 // restore caller doubles.
902 if (condition == al && frame_is_built_ && 902 if (condition == al && frame_is_built_ &&
903 !info()->saves_caller_doubles()) { 903 !info()->saves_caller_doubles()) {
904 DeoptComment(deopt_info); 904 DeoptComment(deopt_info);
905 __ Call(entry, RelocInfo::RUNTIME_ENTRY); 905 __ Call(entry, RelocInfo::RUNTIME_ENTRY);
906 } else { 906 } else {
907 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, 907 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type,
(...skipping 5078 matching lines...) Expand 10 before | Expand all | Expand 10 after
5986 __ Push(scope_info); 5986 __ Push(scope_info);
5987 __ push(ToRegister(instr->function())); 5987 __ push(ToRegister(instr->function()));
5988 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5988 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5989 RecordSafepoint(Safepoint::kNoLazyDeopt); 5989 RecordSafepoint(Safepoint::kNoLazyDeopt);
5990 } 5990 }
5991 5991
5992 5992
5993 #undef __ 5993 #undef __
5994 5994
5995 } } // namespace v8::internal 5995 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.h ('k') | src/arm64/assembler-arm64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698