OLD | NEW |
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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 EmitRelocations(); | 250 EmitRelocations(); |
251 | 251 |
252 // Set up code descriptor. | 252 // Set up code descriptor. |
253 desc->buffer = buffer_; | 253 desc->buffer = buffer_; |
254 desc->buffer_size = buffer_size_; | 254 desc->buffer_size = buffer_size_; |
255 desc->instr_size = pc_offset(); | 255 desc->instr_size = pc_offset(); |
256 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); | 256 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); |
257 desc->constant_pool_size = | 257 desc->constant_pool_size = |
258 (constant_pool_offset ? desc->instr_size - constant_pool_offset : 0); | 258 (constant_pool_offset ? desc->instr_size - constant_pool_offset : 0); |
259 desc->origin = this; | 259 desc->origin = this; |
| 260 desc->unwinding_info_size = 0; |
| 261 desc->unwinding_info = nullptr; |
260 } | 262 } |
261 | 263 |
262 | 264 |
263 void Assembler::Align(int m) { | 265 void Assembler::Align(int m) { |
264 DCHECK(m >= 4 && base::bits::IsPowerOfTwo32(m)); | 266 DCHECK(m >= 4 && base::bits::IsPowerOfTwo32(m)); |
265 DCHECK((pc_offset() & (kInstrSize - 1)) == 0); | 267 DCHECK((pc_offset() & (kInstrSize - 1)) == 0); |
266 while ((pc_offset() & (m - 1)) != 0) { | 268 while ((pc_offset() & (m - 1)) != 0) { |
267 nop(); | 269 nop(); |
268 } | 270 } |
269 } | 271 } |
(...skipping 2233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2503 | 2505 |
2504 trampoline_ = Trampoline(pc_offset() - size, tracked_branch_count_); | 2506 trampoline_ = Trampoline(pc_offset() - size, tracked_branch_count_); |
2505 } | 2507 } |
2506 } | 2508 } |
2507 | 2509 |
2508 | 2510 |
2509 } // namespace internal | 2511 } // namespace internal |
2510 } // namespace v8 | 2512 } // namespace v8 |
2511 | 2513 |
2512 #endif // V8_TARGET_ARCH_PPC | 2514 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |