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

Side by Side Diff: src/crankshaft/s390/lithium-codegen-s390.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/ppc/lithium-codegen-ppc.cc ('k') | src/crankshaft/x64/lithium-codegen-x64.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // 2 //
3 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. 4 // found in the LICENSE file.
5 5
6 #include "src/crankshaft/s390/lithium-codegen-s390.h" 6 #include "src/crankshaft/s390/lithium-codegen-s390.h"
7 7
8 #include "src/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 __ mov(entry_offset, Operand(entry - base)); 305 __ mov(entry_offset, Operand(entry - base));
306 306
307 if (table_entry->needs_frame) { 307 if (table_entry->needs_frame) {
308 DCHECK(!info()->saves_caller_doubles()); 308 DCHECK(!info()->saves_caller_doubles());
309 Comment(";;; call deopt with frame"); 309 Comment(";;; call deopt with frame");
310 __ PushCommonFrame(); 310 __ PushCommonFrame();
311 __ b(r14, &needs_frame); 311 __ b(r14, &needs_frame);
312 } else { 312 } else {
313 __ b(r14, &call_deopt_entry); 313 __ b(r14, &call_deopt_entry);
314 } 314 }
315 LogDeoptCallPosition(masm()->pc_offset(),
316 table_entry->deopt_info.inlining_id);
317 } 315 }
318 316
319 if (needs_frame.is_linked()) { 317 if (needs_frame.is_linked()) {
320 __ bind(&needs_frame); 318 __ bind(&needs_frame);
321 // This variant of deopt can only be used with stubs. Since we don't 319 // This variant of deopt can only be used with stubs. Since we don't
322 // have a function pointer to install in the stack frame that we're 320 // have a function pointer to install in the stack frame that we're
323 // building, install a special marker there instead. 321 // building, install a special marker there instead.
324 DCHECK(info()->IsStub()); 322 DCHECK(info()->IsStub());
325 __ LoadSmiLiteral(ip, Smi::FromInt(StackFrame::STUB)); 323 __ LoadSmiLiteral(ip, Smi::FromInt(StackFrame::STUB));
326 __ push(ip); 324 __ push(ip);
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 __ stop("trap_on_deopt", cond, kDefaultStopCode, cr); 744 __ stop("trap_on_deopt", cond, kDefaultStopCode, cr);
747 } 745 }
748 746
749 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason); 747 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason);
750 748
751 DCHECK(info()->IsStub() || frame_is_built_); 749 DCHECK(info()->IsStub() || frame_is_built_);
752 // Go through jump table if we need to handle condition, build frame, or 750 // Go through jump table if we need to handle condition, build frame, or
753 // restore caller doubles. 751 // restore caller doubles.
754 if (cond == al && frame_is_built_ && !info()->saves_caller_doubles()) { 752 if (cond == al && frame_is_built_ && !info()->saves_caller_doubles()) {
755 __ Call(entry, RelocInfo::RUNTIME_ENTRY); 753 __ Call(entry, RelocInfo::RUNTIME_ENTRY);
756 LogDeoptCallPosition(masm()->pc_offset(), deopt_info.inlining_id);
757 } else { 754 } else {
758 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, 755 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type,
759 !frame_is_built_); 756 !frame_is_built_);
760 // We often have several deopts to the same entry, reuse the last 757 // We often have several deopts to the same entry, reuse the last
761 // jump entry if this is the case. 758 // jump entry if this is the case.
762 if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling() || 759 if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling() ||
763 jump_table_.is_empty() || 760 jump_table_.is_empty() ||
764 !table_entry.IsEquivalentTo(jump_table_.last())) { 761 !table_entry.IsEquivalentTo(jump_table_.last())) {
765 jump_table_.Add(table_entry, zone()); 762 jump_table_.Add(table_entry, zone());
766 } 763 }
(...skipping 4899 matching lines...) Expand 10 before | Expand all | Expand 10 after
5666 __ LoadP(result, 5663 __ LoadP(result,
5667 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); 5664 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize));
5668 __ bind(deferred->exit()); 5665 __ bind(deferred->exit());
5669 __ bind(&done); 5666 __ bind(&done);
5670 } 5667 }
5671 5668
5672 #undef __ 5669 #undef __
5673 5670
5674 } // namespace internal 5671 } // namespace internal
5675 } // namespace v8 5672 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/ppc/lithium-codegen-ppc.cc ('k') | src/crankshaft/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698