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

Side by Side Diff: src/x64/assembler-x64.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/wasm/wasm-module.cc ('k') | src/x87/assembler-x87.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/x64/assembler-x64.h" 5 #include "src/x64/assembler-x64.h"
6 6
7 #include <cstring> 7 #include <cstring>
8 8
9 #if V8_TARGET_ARCH_X64 9 #if V8_TARGET_ARCH_X64
10 10
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 DCHECK(pc_ <= reloc_info_writer.pos()); // No overlap. 313 DCHECK(pc_ <= reloc_info_writer.pos()); // No overlap.
314 // Set up code descriptor. 314 // Set up code descriptor.
315 desc->buffer = buffer_; 315 desc->buffer = buffer_;
316 desc->buffer_size = buffer_size_; 316 desc->buffer_size = buffer_size_;
317 desc->instr_size = pc_offset(); 317 desc->instr_size = pc_offset();
318 DCHECK(desc->instr_size > 0); // Zero-size code objects upset the system. 318 DCHECK(desc->instr_size > 0); // Zero-size code objects upset the system.
319 desc->reloc_size = 319 desc->reloc_size =
320 static_cast<int>((buffer_ + buffer_size_) - reloc_info_writer.pos()); 320 static_cast<int>((buffer_ + buffer_size_) - reloc_info_writer.pos());
321 desc->origin = this; 321 desc->origin = this;
322 desc->constant_pool_size = 0; 322 desc->constant_pool_size = 0;
323 desc->unwinding_info_size = 0;
324 desc->unwinding_info = nullptr;
323 } 325 }
324 326
325 327
326 void Assembler::Align(int m) { 328 void Assembler::Align(int m) {
327 DCHECK(base::bits::IsPowerOfTwo32(m)); 329 DCHECK(base::bits::IsPowerOfTwo32(m));
328 int delta = (m - (pc_offset() & (m - 1))) & (m - 1); 330 int delta = (m - (pc_offset() & (m - 1))) & (m - 1);
329 Nop(delta); 331 Nop(delta);
330 } 332 }
331 333
332 334
(...skipping 4234 matching lines...) Expand 10 before | Expand all | Expand 10 after
4567 4569
4568 bool RelocInfo::IsInConstantPool() { 4570 bool RelocInfo::IsInConstantPool() {
4569 return false; 4571 return false;
4570 } 4572 }
4571 4573
4572 4574
4573 } // namespace internal 4575 } // namespace internal
4574 } // namespace v8 4576 } // namespace v8
4575 4577
4576 #endif // V8_TARGET_ARCH_X64 4578 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/wasm/wasm-module.cc ('k') | src/x87/assembler-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698