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

Side by Side Diff: src/crankshaft/arm/lithium-codegen-arm.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/compiler.cc ('k') | src/crankshaft/arm64/lithium-codegen-arm64.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/crankshaft/arm/lithium-codegen-arm.h" 5 #include "src/crankshaft/arm/lithium-codegen-arm.h"
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h" 10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h"
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 __ mov(entry_offset, Operand(entry - base)); 322 __ mov(entry_offset, Operand(entry - base));
323 323
324 if (table_entry->needs_frame) { 324 if (table_entry->needs_frame) {
325 DCHECK(!info()->saves_caller_doubles()); 325 DCHECK(!info()->saves_caller_doubles());
326 Comment(";;; call deopt with frame"); 326 Comment(";;; call deopt with frame");
327 __ PushCommonFrame(); 327 __ PushCommonFrame();
328 __ bl(&needs_frame); 328 __ bl(&needs_frame);
329 } else { 329 } else {
330 __ bl(&call_deopt_entry); 330 __ bl(&call_deopt_entry);
331 } 331 }
332 info()->LogDeoptCallPosition(masm()->pc_offset(), 332 LogDeoptCallPosition(masm()->pc_offset(),
333 table_entry->deopt_info.inlining_id); 333 table_entry->deopt_info.inlining_id);
334 masm()->CheckConstPool(false, false); 334 masm()->CheckConstPool(false, false);
335 } 335 }
336 336
337 if (needs_frame.is_linked()) { 337 if (needs_frame.is_linked()) {
338 __ bind(&needs_frame); 338 __ bind(&needs_frame);
339 // This variant of deopt can only be used with stubs. Since we don't 339 // This variant of deopt can only be used with stubs. Since we don't
340 // have a function pointer to install in the stack frame that we're 340 // have a function pointer to install in the stack frame that we're
341 // building, install a special marker there instead. 341 // building, install a special marker there instead.
342 __ mov(ip, Operand(Smi::FromInt(StackFrame::STUB))); 342 __ mov(ip, Operand(Smi::FromInt(StackFrame::STUB)));
343 __ push(ip); 343 __ push(ip);
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
825 825
826 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason); 826 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason);
827 827
828 DCHECK(info()->IsStub() || frame_is_built_); 828 DCHECK(info()->IsStub() || frame_is_built_);
829 // Go through jump table if we need to handle condition, build frame, or 829 // Go through jump table if we need to handle condition, build frame, or
830 // restore caller doubles. 830 // restore caller doubles.
831 if (condition == al && frame_is_built_ && 831 if (condition == al && frame_is_built_ &&
832 !info()->saves_caller_doubles()) { 832 !info()->saves_caller_doubles()) {
833 DeoptComment(deopt_info); 833 DeoptComment(deopt_info);
834 __ Call(entry, RelocInfo::RUNTIME_ENTRY); 834 __ Call(entry, RelocInfo::RUNTIME_ENTRY);
835 info()->LogDeoptCallPosition(masm()->pc_offset(), deopt_info.inlining_id); 835 LogDeoptCallPosition(masm()->pc_offset(), deopt_info.inlining_id);
836 } else { 836 } else {
837 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, 837 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type,
838 !frame_is_built_); 838 !frame_is_built_);
839 // We often have several deopts to the same entry, reuse the last 839 // We often have several deopts to the same entry, reuse the last
840 // jump entry if this is the case. 840 // jump entry if this is the case.
841 if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling() || 841 if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling() ||
842 jump_table_.is_empty() || 842 jump_table_.is_empty() ||
843 !table_entry.IsEquivalentTo(jump_table_.last())) { 843 !table_entry.IsEquivalentTo(jump_table_.last())) {
844 jump_table_.Add(table_entry, zone()); 844 jump_table_.Add(table_entry, zone());
845 } 845 }
(...skipping 4688 matching lines...) Expand 10 before | Expand all | Expand 10 after
5534 __ ldr(result, FieldMemOperand(scratch, 5534 __ ldr(result, FieldMemOperand(scratch,
5535 FixedArray::kHeaderSize - kPointerSize)); 5535 FixedArray::kHeaderSize - kPointerSize));
5536 __ bind(deferred->exit()); 5536 __ bind(deferred->exit());
5537 __ bind(&done); 5537 __ bind(&done);
5538 } 5538 }
5539 5539
5540 #undef __ 5540 #undef __
5541 5541
5542 } // namespace internal 5542 } // namespace internal
5543 } // namespace v8 5543 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/crankshaft/arm64/lithium-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698