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

Side by Side Diff: src/ia32/assembler-ia32.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/globals.h ('k') | src/mips/assembler-mips.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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 // that we are still not overlapping instructions and relocation info). 325 // that we are still not overlapping instructions and relocation info).
326 reloc_info_writer.Finish(); 326 reloc_info_writer.Finish();
327 DCHECK(pc_ <= reloc_info_writer.pos()); // No overlap. 327 DCHECK(pc_ <= reloc_info_writer.pos()); // No overlap.
328 // Set up code descriptor. 328 // Set up code descriptor.
329 desc->buffer = buffer_; 329 desc->buffer = buffer_;
330 desc->buffer_size = buffer_size_; 330 desc->buffer_size = buffer_size_;
331 desc->instr_size = pc_offset(); 331 desc->instr_size = pc_offset();
332 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); 332 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos();
333 desc->origin = this; 333 desc->origin = this;
334 desc->constant_pool_size = 0; 334 desc->constant_pool_size = 0;
335 desc->unwinding_info_size = 0;
336 desc->unwinding_info = nullptr;
335 } 337 }
336 338
337 339
338 void Assembler::Align(int m) { 340 void Assembler::Align(int m) {
339 DCHECK(base::bits::IsPowerOfTwo32(m)); 341 DCHECK(base::bits::IsPowerOfTwo32(m));
340 int mask = m - 1; 342 int mask = m - 1;
341 int addr = pc_offset(); 343 int addr = pc_offset();
342 Nop((m - (addr & mask)) & mask); 344 Nop((m - (addr & mask)) & mask);
343 } 345 }
344 346
(...skipping 2727 matching lines...) Expand 10 before | Expand all | Expand 10 after
3072 fflush(coverage_log); 3074 fflush(coverage_log);
3073 } 3075 }
3074 } 3076 }
3075 3077
3076 #endif 3078 #endif
3077 3079
3078 } // namespace internal 3080 } // namespace internal
3079 } // namespace v8 3081 } // namespace v8
3080 3082
3081 #endif // V8_TARGET_ARCH_IA32 3083 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/globals.h ('k') | src/mips/assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698