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

Side by Side Diff: src/s390/assembler-s390.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/ppc/assembler-ppc.cc ('k') | src/v8.gyp » ('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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 293
294 void Assembler::GetCode(CodeDesc* desc) { 294 void Assembler::GetCode(CodeDesc* desc) {
295 EmitRelocations(); 295 EmitRelocations();
296 296
297 // Set up code descriptor. 297 // Set up code descriptor.
298 desc->buffer = buffer_; 298 desc->buffer = buffer_;
299 desc->buffer_size = buffer_size_; 299 desc->buffer_size = buffer_size_;
300 desc->instr_size = pc_offset(); 300 desc->instr_size = pc_offset();
301 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); 301 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos();
302 desc->origin = this; 302 desc->origin = this;
303 desc->unwinding_info_size = 0;
304 desc->unwinding_info = nullptr;
303 } 305 }
304 306
305 void Assembler::Align(int m) { 307 void Assembler::Align(int m) {
306 DCHECK(m >= 4 && base::bits::IsPowerOfTwo32(m)); 308 DCHECK(m >= 4 && base::bits::IsPowerOfTwo32(m));
307 while ((pc_offset() & (m - 1)) != 0) { 309 while ((pc_offset() & (m - 1)) != 0) {
308 nop(0); 310 nop(0);
309 } 311 }
310 } 312 }
311 313
312 void Assembler::CodeTargetAlign() { Align(8); } 314 void Assembler::CodeTargetAlign() { Align(8); }
(...skipping 2765 matching lines...) Expand 10 before | Expand all | Expand 10 after
3078 3080
3079 reloc_info_writer.Write(&rinfo); 3081 reloc_info_writer.Write(&rinfo);
3080 } 3082 }
3081 3083
3082 reloc_info_writer.Finish(); 3084 reloc_info_writer.Finish();
3083 } 3085 }
3084 3086
3085 } // namespace internal 3087 } // namespace internal
3086 } // namespace v8 3088 } // namespace v8
3087 #endif // V8_TARGET_ARCH_S390 3089 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/ppc/assembler-ppc.cc ('k') | src/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698