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

Side by Side Diff: src/mips/assembler-mips.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/ia32/assembler-ia32.cc ('k') | src/mips64/assembler-mips64.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 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 void Assembler::GetCode(CodeDesc* desc) { 312 void Assembler::GetCode(CodeDesc* desc) {
313 EmitForbiddenSlotInstruction(); 313 EmitForbiddenSlotInstruction();
314 DCHECK(pc_ <= reloc_info_writer.pos()); // No overlap. 314 DCHECK(pc_ <= reloc_info_writer.pos()); // No overlap.
315 // Set up code descriptor. 315 // Set up code descriptor.
316 desc->buffer = buffer_; 316 desc->buffer = buffer_;
317 desc->buffer_size = buffer_size_; 317 desc->buffer_size = buffer_size_;
318 desc->instr_size = pc_offset(); 318 desc->instr_size = pc_offset();
319 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); 319 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos();
320 desc->origin = this; 320 desc->origin = this;
321 desc->constant_pool_size = 0; 321 desc->constant_pool_size = 0;
322 desc->unwinding_info_size = 0;
323 desc->unwinding_info = nullptr;
322 } 324 }
323 325
324 326
325 void Assembler::Align(int m) { 327 void Assembler::Align(int m) {
326 DCHECK(m >= 4 && base::bits::IsPowerOfTwo32(m)); 328 DCHECK(m >= 4 && base::bits::IsPowerOfTwo32(m));
327 EmitForbiddenSlotInstruction(); 329 EmitForbiddenSlotInstruction();
328 while ((pc_offset() & (m - 1)) != 0) { 330 while ((pc_offset() & (m - 1)) != 0) {
329 nop(); 331 nop();
330 } 332 }
331 } 333 }
(...skipping 2845 matching lines...) Expand 10 before | Expand all | Expand 10 after
3177 3179
3178 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { 3180 if (icache_flush_mode != SKIP_ICACHE_FLUSH) {
3179 Assembler::FlushICache(isolate, pc, 2 * sizeof(int32_t)); 3181 Assembler::FlushICache(isolate, pc, 2 * sizeof(int32_t));
3180 } 3182 }
3181 } 3183 }
3182 3184
3183 } // namespace internal 3185 } // namespace internal
3184 } // namespace v8 3186 } // namespace v8
3185 3187
3186 #endif // V8_TARGET_ARCH_MIPS 3188 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ia32/assembler-ia32.cc ('k') | src/mips64/assembler-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698