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

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

Issue 1944323002: [compiler] Move inline function tracing to Crankshaft. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 info()->LogDeoptCallPosition(masm()->pc_offset(), 315 LogDeoptCallPosition(masm()->pc_offset(),
316 table_entry->deopt_info.inlining_id); 316 table_entry->deopt_info.inlining_id);
317 } 317 }
318 318
319 if (needs_frame.is_linked()) { 319 if (needs_frame.is_linked()) {
320 __ bind(&needs_frame); 320 __ bind(&needs_frame);
321 // This variant of deopt can only be used with stubs. Since we don't 321 // 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 322 // have a function pointer to install in the stack frame that we're
323 // building, install a special marker there instead. 323 // building, install a special marker there instead.
324 DCHECK(info()->IsStub()); 324 DCHECK(info()->IsStub());
325 __ LoadSmiLiteral(ip, Smi::FromInt(StackFrame::STUB)); 325 __ LoadSmiLiteral(ip, Smi::FromInt(StackFrame::STUB));
326 __ push(ip); 326 __ push(ip);
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 __ stop("trap_on_deopt", cond, kDefaultStopCode, cr); 746 __ stop("trap_on_deopt", cond, kDefaultStopCode, cr);
747 } 747 }
748 748
749 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason); 749 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason);
750 750
751 DCHECK(info()->IsStub() || frame_is_built_); 751 DCHECK(info()->IsStub() || frame_is_built_);
752 // 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
753 // restore caller doubles. 753 // restore caller doubles.
754 if (cond == al && frame_is_built_ && !info()->saves_caller_doubles()) { 754 if (cond == al && frame_is_built_ && !info()->saves_caller_doubles()) {
755 __ Call(entry, RelocInfo::RUNTIME_ENTRY); 755 __ Call(entry, RelocInfo::RUNTIME_ENTRY);
756 info()->LogDeoptCallPosition(masm()->pc_offset(), deopt_info.inlining_id); 756 LogDeoptCallPosition(masm()->pc_offset(), deopt_info.inlining_id);
757 } else { 757 } else {
758 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, 758 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type,
759 !frame_is_built_); 759 !frame_is_built_);
760 // We often have several deopts to the same entry, reuse the last 760 // We often have several deopts to the same entry, reuse the last
761 // jump entry if this is the case. 761 // jump entry if this is the case.
762 if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling() || 762 if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling() ||
763 jump_table_.is_empty() || 763 jump_table_.is_empty() ||
764 !table_entry.IsEquivalentTo(jump_table_.last())) { 764 !table_entry.IsEquivalentTo(jump_table_.last())) {
765 jump_table_.Add(table_entry, zone()); 765 jump_table_.Add(table_entry, zone());
766 } 766 }
(...skipping 4899 matching lines...) Expand 10 before | Expand all | Expand 10 after
5666 __ LoadP(result, 5666 __ LoadP(result,
5667 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); 5667 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize));
5668 __ bind(deferred->exit()); 5668 __ bind(deferred->exit());
5669 __ bind(&done); 5669 __ bind(&done);
5670 } 5670 }
5671 5671
5672 #undef __ 5672 #undef __
5673 5673
5674 } // namespace internal 5674 } // namespace internal
5675 } // namespace v8 5675 } // 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