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

Side by Side Diff: src/x64/lithium-codegen-x64.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 | « src/ppc/lithium-codegen-ppc.cc ('k') | src/x87/lithium-codegen-x87.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #if V8_TARGET_ARCH_X64 7 #if V8_TARGET_ARCH_X64
8 8
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 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 762
763 if (info()->ShouldTrapOnDeopt()) { 763 if (info()->ShouldTrapOnDeopt()) {
764 Label done; 764 Label done;
765 if (cc != no_condition) { 765 if (cc != no_condition) {
766 __ j(NegateCondition(cc), &done, Label::kNear); 766 __ j(NegateCondition(cc), &done, Label::kNear);
767 } 767 }
768 __ int3(); 768 __ int3();
769 __ bind(&done); 769 __ bind(&done);
770 } 770 }
771 771
772 Deoptimizer::DeoptInfo deopt_info(instr->hydrogen_value()->position(), 772 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason);
773 instr->Mnemonic(), deopt_reason); 773
774 DCHECK(info()->IsStub() || frame_is_built_); 774 DCHECK(info()->IsStub() || frame_is_built_);
775 // Go through jump table if we need to handle condition, build frame, or 775 // Go through jump table if we need to handle condition, build frame, or
776 // restore caller doubles. 776 // restore caller doubles.
777 if (cc == no_condition && frame_is_built_ && 777 if (cc == no_condition && frame_is_built_ &&
778 !info()->saves_caller_doubles()) { 778 !info()->saves_caller_doubles()) {
779 DeoptComment(deopt_info); 779 DeoptComment(deopt_info);
780 __ call(entry, RelocInfo::RUNTIME_ENTRY); 780 __ call(entry, RelocInfo::RUNTIME_ENTRY);
781 } else { 781 } else {
782 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, 782 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type,
783 !frame_is_built_); 783 !frame_is_built_);
(...skipping 5155 matching lines...) Expand 10 before | Expand all | Expand 10 after
5939 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5939 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5940 RecordSafepoint(Safepoint::kNoLazyDeopt); 5940 RecordSafepoint(Safepoint::kNoLazyDeopt);
5941 } 5941 }
5942 5942
5943 5943
5944 #undef __ 5944 #undef __
5945 5945
5946 } } // namespace v8::internal 5946 } } // namespace v8::internal
5947 5947
5948 #endif // V8_TARGET_ARCH_X64 5948 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ppc/lithium-codegen-ppc.cc ('k') | src/x87/lithium-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698