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

Side by Side Diff: src/mips64/assembler-mips64.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/mips/assembler-mips.cc ('k') | src/objects.h » ('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 are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // 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 EmitForbiddenSlotInstruction(); 293 EmitForbiddenSlotInstruction();
294 DCHECK(pc_ <= reloc_info_writer.pos()); // No overlap. 294 DCHECK(pc_ <= reloc_info_writer.pos()); // No overlap.
295 // Set up code descriptor. 295 // Set up code descriptor.
296 desc->buffer = buffer_; 296 desc->buffer = buffer_;
297 desc->buffer_size = buffer_size_; 297 desc->buffer_size = buffer_size_;
298 desc->instr_size = pc_offset(); 298 desc->instr_size = pc_offset();
299 desc->reloc_size = 299 desc->reloc_size =
300 static_cast<int>((buffer_ + buffer_size_) - reloc_info_writer.pos()); 300 static_cast<int>((buffer_ + buffer_size_) - reloc_info_writer.pos());
301 desc->origin = this; 301 desc->origin = this;
302 desc->constant_pool_size = 0; 302 desc->constant_pool_size = 0;
303 desc->unwinding_info_size = 0;
304 desc->unwinding_info = nullptr;
303 } 305 }
304 306
305 307
306 void Assembler::Align(int m) { 308 void Assembler::Align(int m) {
307 DCHECK(m >= 4 && base::bits::IsPowerOfTwo32(m)); 309 DCHECK(m >= 4 && base::bits::IsPowerOfTwo32(m));
308 EmitForbiddenSlotInstruction(); 310 EmitForbiddenSlotInstruction();
309 while ((pc_offset() & (m - 1)) != 0) { 311 while ((pc_offset() & (m - 1)) != 0) {
310 nop(); 312 nop();
311 } 313 }
312 } 314 }
(...skipping 3108 matching lines...) Expand 10 before | Expand all | Expand 10 after
3421 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { 3423 if (icache_flush_mode != SKIP_ICACHE_FLUSH) {
3422 Assembler::FlushICache(isolate, pc, 4 * Assembler::kInstrSize); 3424 Assembler::FlushICache(isolate, pc, 4 * Assembler::kInstrSize);
3423 } 3425 }
3424 } 3426 }
3425 3427
3426 3428
3427 } // namespace internal 3429 } // namespace internal
3428 } // namespace v8 3430 } // namespace v8
3429 3431
3430 #endif // V8_TARGET_ARCH_MIPS64 3432 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/assembler-mips.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698