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

Side by Side Diff: src/crankshaft/ia32/lithium-codegen-ia32.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/arm64/lithium-codegen-arm64.cc ('k') | src/crankshaft/lithium-codegen.h » ('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 #if V8_TARGET_ARCH_IA32 5 #if V8_TARGET_ARCH_IA32
6 6
7 #include "src/crankshaft/ia32/lithium-codegen-ia32.h" 7 #include "src/crankshaft/ia32/lithium-codegen-ia32.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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 Address entry = table_entry->address; 267 Address entry = table_entry->address;
268 DeoptComment(table_entry->deopt_info); 268 DeoptComment(table_entry->deopt_info);
269 if (table_entry->needs_frame) { 269 if (table_entry->needs_frame) {
270 DCHECK(!info()->saves_caller_doubles()); 270 DCHECK(!info()->saves_caller_doubles());
271 __ push(Immediate(ExternalReference::ForDeoptEntry(entry))); 271 __ push(Immediate(ExternalReference::ForDeoptEntry(entry)));
272 __ call(&needs_frame); 272 __ call(&needs_frame);
273 } else { 273 } else {
274 if (info()->saves_caller_doubles()) RestoreCallerDoubles(); 274 if (info()->saves_caller_doubles()) RestoreCallerDoubles();
275 __ call(entry, RelocInfo::RUNTIME_ENTRY); 275 __ call(entry, RelocInfo::RUNTIME_ENTRY);
276 } 276 }
277 LogDeoptCallPosition(masm()->pc_offset(),
278 table_entry->deopt_info.inlining_id);
279 } 277 }
280 if (needs_frame.is_linked()) { 278 if (needs_frame.is_linked()) {
281 __ bind(&needs_frame); 279 __ bind(&needs_frame);
282 /* stack layout 280 /* stack layout
283 3: entry address 281 3: entry address
284 2: return address <-- esp 282 2: return address <-- esp
285 1: garbage 283 1: garbage
286 0: garbage 284 0: garbage
287 */ 285 */
288 __ push(MemOperand(esp, 0)); // Copy return address. 286 __ push(MemOperand(esp, 0)); // Copy return address.
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 __ int3(); 722 __ int3();
725 __ bind(&done); 723 __ bind(&done);
726 } 724 }
727 725
728 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason); 726 Deoptimizer::DeoptInfo deopt_info = MakeDeoptInfo(instr, deopt_reason);
729 727
730 DCHECK(info()->IsStub() || frame_is_built_); 728 DCHECK(info()->IsStub() || frame_is_built_);
731 if (cc == no_condition && frame_is_built_) { 729 if (cc == no_condition && frame_is_built_) {
732 DeoptComment(deopt_info); 730 DeoptComment(deopt_info);
733 __ call(entry, RelocInfo::RUNTIME_ENTRY); 731 __ call(entry, RelocInfo::RUNTIME_ENTRY);
734 LogDeoptCallPosition(masm()->pc_offset(), deopt_info.inlining_id);
735 } else { 732 } else {
736 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type, 733 Deoptimizer::JumpTableEntry table_entry(entry, deopt_info, bailout_type,
737 !frame_is_built_); 734 !frame_is_built_);
738 // We often have several deopts to the same entry, reuse the last 735 // We often have several deopts to the same entry, reuse the last
739 // jump entry if this is the case. 736 // jump entry if this is the case.
740 if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling() || 737 if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling() ||
741 jump_table_.is_empty() || 738 jump_table_.is_empty() ||
742 !table_entry.IsEquivalentTo(jump_table_.last())) { 739 !table_entry.IsEquivalentTo(jump_table_.last())) {
743 jump_table_.Add(table_entry, zone()); 740 jump_table_.Add(table_entry, zone());
744 } 741 }
(...skipping 4591 matching lines...) Expand 10 before | Expand all | Expand 10 after
5336 __ bind(deferred->exit()); 5333 __ bind(deferred->exit());
5337 __ bind(&done); 5334 __ bind(&done);
5338 } 5335 }
5339 5336
5340 #undef __ 5337 #undef __
5341 5338
5342 } // namespace internal 5339 } // namespace internal
5343 } // namespace v8 5340 } // namespace v8
5344 5341
5345 #endif // V8_TARGET_ARCH_IA32 5342 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/crankshaft/arm64/lithium-codegen-arm64.cc ('k') | src/crankshaft/lithium-codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698