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

Side by Side Diff: src/arm64/assembler-arm64.cc

Issue 1993653003: Initial support for emitting unwinding information in perf jitdump. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Enable with --perf-prof-unwinding-info. Created 4 years, 5 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/arm/assembler-arm.cc ('k') | src/eh-frame.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // 2 //
3 // Redistribution and use in source and binary forms, with or without 3 // Redistribution and use in source and binary forms, with or without
4 // modification, are permitted provided that the following conditions are 4 // modification, are permitted provided that the following conditions are
5 // met: 5 // met:
6 // 6 //
7 // * Redistributions of source code must retain the above copyright 7 // * Redistributions of source code must retain the above copyright
8 // notice, this list of conditions and the following disclaimer. 8 // notice, this list of conditions and the following disclaimer.
9 // * Redistributions in binary form must reproduce the above 9 // * Redistributions in binary form must reproduce the above
10 // copyright notice, this list of conditions and the following 10 // copyright notice, this list of conditions and the following
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 // Set up code descriptor. 596 // Set up code descriptor.
597 if (desc) { 597 if (desc) {
598 desc->buffer = reinterpret_cast<byte*>(buffer_); 598 desc->buffer = reinterpret_cast<byte*>(buffer_);
599 desc->buffer_size = buffer_size_; 599 desc->buffer_size = buffer_size_;
600 desc->instr_size = pc_offset(); 600 desc->instr_size = pc_offset();
601 desc->reloc_size = 601 desc->reloc_size =
602 static_cast<int>((reinterpret_cast<byte*>(buffer_) + buffer_size_) - 602 static_cast<int>((reinterpret_cast<byte*>(buffer_) + buffer_size_) -
603 reloc_info_writer.pos()); 603 reloc_info_writer.pos());
604 desc->origin = this; 604 desc->origin = this;
605 desc->constant_pool_size = 0; 605 desc->constant_pool_size = 0;
606 desc->unwinding_info_size = 0;
607 desc->unwinding_info = nullptr;
606 } 608 }
607 } 609 }
608 610
609 611
610 void Assembler::Align(int m) { 612 void Assembler::Align(int m) {
611 DCHECK(m >= 4 && base::bits::IsPowerOfTwo32(m)); 613 DCHECK(m >= 4 && base::bits::IsPowerOfTwo32(m));
612 while ((pc_offset() & (m - 1)) != 0) { 614 while ((pc_offset() & (m - 1)) != 0) {
613 nop(); 615 nop();
614 } 616 }
615 } 617 }
(...skipping 2597 matching lines...) Expand 10 before | Expand all | Expand 10 after
3213 movk(scratch, (target_offset >> 32) & 0xFFFF, 32); 3215 movk(scratch, (target_offset >> 32) & 0xFFFF, 32);
3214 DCHECK((target_offset >> 48) == 0); 3216 DCHECK((target_offset >> 48) == 0);
3215 add(rd, rd, scratch); 3217 add(rd, rd, scratch);
3216 } 3218 }
3217 3219
3218 3220
3219 } // namespace internal 3221 } // namespace internal
3220 } // namespace v8 3222 } // namespace v8
3221 3223
3222 #endif // V8_TARGET_ARCH_ARM64 3224 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.cc ('k') | src/eh-frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698