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

Side by Side Diff: src/crankshaft/x64/lithium-codegen-x64.cc

Issue 1956693002: [compiler] Pass inlining_id via relocation info. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. Created 4 years, 7 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/crankshaft/s390/lithium-codegen-s390.cc ('k') | src/crankshaft/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 #if V8_TARGET_ARCH_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/crankshaft/x64/lithium-codegen-x64.h" 7 #include "src/crankshaft/x64/lithium-codegen-x64.h"
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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 DCHECK(!info()->saves_caller_doubles()); 292 DCHECK(!info()->saves_caller_doubles());
293 __ Move(kScratchRegister, ExternalReference::ForDeoptEntry(entry)); 293 __ Move(kScratchRegister, ExternalReference::ForDeoptEntry(entry));
294 __ call(&needs_frame); 294 __ call(&needs_frame);
295 } else { 295 } else {
296 if (info()->saves_caller_doubles()) { 296 if (info()->saves_caller_doubles()) {
297 DCHECK(info()->IsStub()); 297 DCHECK(info()->IsStub());
298 RestoreCallerDoubles(); 298 RestoreCallerDoubles();
299 } 299 }
300 __ call(entry, RelocInfo::RUNTIME_ENTRY); 300 __ call(entry, RelocInfo::RUNTIME_ENTRY);
301 } 301 }
302 LogDeoptCallPosition(masm()->pc_offset(),
303 table_entry->deopt_info.inlining_id);
304 } 302 }
305 303
306 if (needs_frame.is_linked()) { 304 if (needs_frame.is_linked()) {
307 __ bind(&needs_frame); 305 __ bind(&needs_frame);
308 /* stack layout 306 /* stack layout
309 3: return address <-- rsp 307 3: return address <-- rsp
310 2: garbage 308 2: garbage
311 1: garbage 309 1: garbage
312 0: garbage 310 0: garbage
313 */ 311 */
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 748
751 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason); 749 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason);
752 750
753 DCHECK(info()->IsStub() || frame_is_built_); 751 DCHECK(info()->IsStub() || frame_is_built_);
754 // Go through jump table if we need to handle condition, build frame, or 752 // Go through jump table if we need to handle condition, build frame, or
755 // restore caller doubles. 753 // restore caller doubles.
756 if (cc == no_condition && frame_is_built_ && 754 if (cc == no_condition && frame_is_built_ &&
757 !info()->saves_caller_doubles()) { 755 !info()->saves_caller_doubles()) {
758 DeoptComment(deopt_info); 756 DeoptComment(deopt_info);
759 __ call(entry, RelocInfo::RUNTIME_ENTRY); 757 __ call(entry, RelocInfo::RUNTIME_ENTRY);
760 LogDeoptCallPosition(masm()->pc_offset(), deopt_info.inlining_id);
761 } else { 758 } else {
762 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, 759 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type,
763 !frame_is_built_); 760 !frame_is_built_);
764 // We often have several deopts to the same entry, reuse the last 761 // We often have several deopts to the same entry, reuse the last
765 // jump entry if this is the case. 762 // jump entry if this is the case.
766 if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling() || 763 if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling() ||
767 jump_table_.is_empty() || 764 jump_table_.is_empty() ||
768 !table_entry.IsEquivalentTo(jump_table_.last())) { 765 !table_entry.IsEquivalentTo(jump_table_.last())) {
769 jump_table_.Add(table_entry, zone()); 766 jump_table_.Add(table_entry, zone());
770 } 767 }
(...skipping 4869 matching lines...) Expand 10 before | Expand all | Expand 10 after
5640 __ bind(deferred->exit()); 5637 __ bind(deferred->exit());
5641 __ bind(&done); 5638 __ bind(&done);
5642 } 5639 }
5643 5640
5644 #undef __ 5641 #undef __
5645 5642
5646 } // namespace internal 5643 } // namespace internal
5647 } // namespace v8 5644 } // namespace v8
5648 5645
5649 #endif // V8_TARGET_ARCH_X64 5646 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/crankshaft/s390/lithium-codegen-s390.cc ('k') | src/crankshaft/x87/lithium-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698