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

Side by Side Diff: src/x87/assembler-x87.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, 6 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/x64/assembler-x64.cc ('k') | test/cctest/BUILD.gn » ('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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 // that we are still not overlapping instructions and relocation info). 252 // that we are still not overlapping instructions and relocation info).
253 reloc_info_writer.Finish(); 253 reloc_info_writer.Finish();
254 DCHECK(pc_ <= reloc_info_writer.pos()); // No overlap. 254 DCHECK(pc_ <= reloc_info_writer.pos()); // No overlap.
255 // Set up code descriptor. 255 // Set up code descriptor.
256 desc->buffer = buffer_; 256 desc->buffer = buffer_;
257 desc->buffer_size = buffer_size_; 257 desc->buffer_size = buffer_size_;
258 desc->instr_size = pc_offset(); 258 desc->instr_size = pc_offset();
259 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); 259 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos();
260 desc->origin = this; 260 desc->origin = this;
261 desc->constant_pool_size = 0; 261 desc->constant_pool_size = 0;
262 desc->unwinding_info_size = 0;
263 desc->unwinding_info = nullptr;
262 } 264 }
263 265
264 266
265 void Assembler::Align(int m) { 267 void Assembler::Align(int m) {
266 DCHECK(base::bits::IsPowerOfTwo32(m)); 268 DCHECK(base::bits::IsPowerOfTwo32(m));
267 int mask = m - 1; 269 int mask = m - 1;
268 int addr = pc_offset(); 270 int addr = pc_offset();
269 Nop((m - (addr & mask)) & mask); 271 Nop((m - (addr & mask)) & mask);
270 } 272 }
271 273
(...skipping 1971 matching lines...) Expand 10 before | Expand all | Expand 10 after
2243 fflush(coverage_log); 2245 fflush(coverage_log);
2244 } 2246 }
2245 } 2247 }
2246 2248
2247 #endif 2249 #endif
2248 2250
2249 } // namespace internal 2251 } // namespace internal
2250 } // namespace v8 2252 } // namespace v8
2251 2253
2252 #endif // V8_TARGET_ARCH_X87 2254 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.cc ('k') | test/cctest/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698