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

Side by Side Diff: src/arm/assembler-arm.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 | « BUILD.gn ('k') | src/arm64/assembler-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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions 5 // modification, are permitted provided that the following conditions
6 // are met: 6 // are met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 DCHECK(pending_64_bit_constants_.empty()); 510 DCHECK(pending_64_bit_constants_.empty());
511 } 511 }
512 // Set up code descriptor. 512 // Set up code descriptor.
513 desc->buffer = buffer_; 513 desc->buffer = buffer_;
514 desc->buffer_size = buffer_size_; 514 desc->buffer_size = buffer_size_;
515 desc->instr_size = pc_offset(); 515 desc->instr_size = pc_offset();
516 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); 516 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos();
517 desc->constant_pool_size = 517 desc->constant_pool_size =
518 (constant_pool_offset ? desc->instr_size - constant_pool_offset : 0); 518 (constant_pool_offset ? desc->instr_size - constant_pool_offset : 0);
519 desc->origin = this; 519 desc->origin = this;
520 desc->unwinding_info_size = 0;
521 desc->unwinding_info = nullptr;
520 } 522 }
521 523
522 524
523 void Assembler::Align(int m) { 525 void Assembler::Align(int m) {
524 DCHECK(m >= 4 && base::bits::IsPowerOfTwo32(m)); 526 DCHECK(m >= 4 && base::bits::IsPowerOfTwo32(m));
525 DCHECK((pc_offset() & (kInstrSize - 1)) == 0); 527 DCHECK((pc_offset() & (kInstrSize - 1)) == 0);
526 while ((pc_offset() & (m - 1)) != 0) { 528 while ((pc_offset() & (m - 1)) != 0) {
527 nop(); 529 nop();
528 } 530 }
529 } 531 }
(...skipping 3724 matching lines...) Expand 10 before | Expand all | Expand 10 after
4254 DCHECK(is_uint12(offset)); 4256 DCHECK(is_uint12(offset));
4255 instr_at_put(pc, SetLdrRegisterImmediateOffset(instr, offset)); 4257 instr_at_put(pc, SetLdrRegisterImmediateOffset(instr, offset));
4256 } 4258 }
4257 } 4259 }
4258 4260
4259 4261
4260 } // namespace internal 4262 } // namespace internal
4261 } // namespace v8 4263 } // namespace v8
4262 4264
4263 #endif // V8_TARGET_ARCH_ARM 4265 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/arm64/assembler-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698