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

Side by Side Diff: src/ppc/assembler-ppc.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: Rebase. 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
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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 EmitRelocations(); 277 EmitRelocations();
278 278
279 // Set up code descriptor. 279 // Set up code descriptor.
280 desc->buffer = buffer_; 280 desc->buffer = buffer_;
281 desc->buffer_size = buffer_size_; 281 desc->buffer_size = buffer_size_;
282 desc->instr_size = pc_offset(); 282 desc->instr_size = pc_offset();
283 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); 283 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos();
284 desc->constant_pool_size = 284 desc->constant_pool_size =
285 (constant_pool_offset ? desc->instr_size - constant_pool_offset : 0); 285 (constant_pool_offset ? desc->instr_size - constant_pool_offset : 0);
286 desc->origin = this; 286 desc->origin = this;
287 desc->unwinding_info_size = 0;
288 desc->unwinding_info = nullptr;
287 } 289 }
288 290
289 291
290 void Assembler::Align(int m) { 292 void Assembler::Align(int m) {
291 DCHECK(m >= 4 && base::bits::IsPowerOfTwo32(m)); 293 DCHECK(m >= 4 && base::bits::IsPowerOfTwo32(m));
292 DCHECK((pc_offset() & (kInstrSize - 1)) == 0); 294 DCHECK((pc_offset() & (kInstrSize - 1)) == 0);
293 while ((pc_offset() & (m - 1)) != 0) { 295 while ((pc_offset() & (m - 1)) != 0) {
294 nop(); 296 nop();
295 } 297 }
296 } 298 }
(...skipping 2233 matching lines...) Expand 10 before | Expand all | Expand 10 after
2530 2532
2531 trampoline_ = Trampoline(pc_offset() - size, tracked_branch_count_); 2533 trampoline_ = Trampoline(pc_offset() - size, tracked_branch_count_);
2532 } 2534 }
2533 } 2535 }
2534 2536
2535 2537
2536 } // namespace internal 2538 } // namespace internal
2537 } // namespace v8 2539 } // namespace v8
2538 2540
2539 #endif // V8_TARGET_ARCH_PPC 2541 #endif // V8_TARGET_ARCH_PPC
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698