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

Side by Side Diff: src/mips/lithium-codegen-mips.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/mips/assembler-mips.h ('k') | src/mips64/assembler-mips64.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.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 839 matching lines...) Expand 10 before | Expand all | Expand 10 after
850 850
851 if (info()->ShouldTrapOnDeopt()) { 851 if (info()->ShouldTrapOnDeopt()) {
852 Label skip; 852 Label skip;
853 if (condition != al) { 853 if (condition != al) {
854 __ Branch(&skip, NegateCondition(condition), src1, src2); 854 __ Branch(&skip, NegateCondition(condition), src1, src2);
855 } 855 }
856 __ stop("trap_on_deopt"); 856 __ stop("trap_on_deopt");
857 __ bind(&skip); 857 __ bind(&skip);
858 } 858 }
859 859
860 Deoptimizer::DeoptInfo deopt_info(instr->hydrogen_value()->position().raw(), 860 Deoptimizer::DeoptInfo deopt_info(instr->hydrogen_value()->position(),
861 instr->Mnemonic(), deopt_reason); 861 instr->Mnemonic(), deopt_reason);
862 DCHECK(info()->IsStub() || frame_is_built_); 862 DCHECK(info()->IsStub() || frame_is_built_);
863 // Go through jump table if we need to handle condition, build frame, or 863 // Go through jump table if we need to handle condition, build frame, or
864 // restore caller doubles. 864 // restore caller doubles.
865 if (condition == al && frame_is_built_ && 865 if (condition == al && frame_is_built_ &&
866 !info()->saves_caller_doubles()) { 866 !info()->saves_caller_doubles()) {
867 DeoptComment(deopt_info); 867 DeoptComment(deopt_info);
868 __ Call(entry, RelocInfo::RUNTIME_ENTRY, condition, src1, src2); 868 __ Call(entry, RelocInfo::RUNTIME_ENTRY, condition, src1, src2);
869 } else { 869 } else {
870 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, 870 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type,
(...skipping 5164 matching lines...) Expand 10 before | Expand all | Expand 10 after
6035 __ li(at, scope_info); 6035 __ li(at, scope_info);
6036 __ Push(at, ToRegister(instr->function())); 6036 __ Push(at, ToRegister(instr->function()));
6037 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6037 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6038 RecordSafepoint(Safepoint::kNoLazyDeopt); 6038 RecordSafepoint(Safepoint::kNoLazyDeopt);
6039 } 6039 }
6040 6040
6041 6041
6042 #undef __ 6042 #undef __
6043 6043
6044 } } // namespace v8::internal 6044 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/assembler-mips.h ('k') | src/mips64/assembler-mips64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698