OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/x64/assembler-x64.h" | 5 #include "src/x64/assembler-x64.h" |
6 | 6 |
7 #include <cstring> | 7 #include <cstring> |
8 | 8 |
9 #if V8_TARGET_ARCH_X64 | 9 #if V8_TARGET_ARCH_X64 |
10 | 10 |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 DCHECK(pc_ <= reloc_info_writer.pos()); // No overlap. | 313 DCHECK(pc_ <= reloc_info_writer.pos()); // No overlap. |
314 // Set up code descriptor. | 314 // Set up code descriptor. |
315 desc->buffer = buffer_; | 315 desc->buffer = buffer_; |
316 desc->buffer_size = buffer_size_; | 316 desc->buffer_size = buffer_size_; |
317 desc->instr_size = pc_offset(); | 317 desc->instr_size = pc_offset(); |
318 DCHECK(desc->instr_size > 0); // Zero-size code objects upset the system. | 318 DCHECK(desc->instr_size > 0); // Zero-size code objects upset the system. |
319 desc->reloc_size = | 319 desc->reloc_size = |
320 static_cast<int>((buffer_ + buffer_size_) - reloc_info_writer.pos()); | 320 static_cast<int>((buffer_ + buffer_size_) - reloc_info_writer.pos()); |
321 desc->origin = this; | 321 desc->origin = this; |
322 desc->constant_pool_size = 0; | 322 desc->constant_pool_size = 0; |
| 323 desc->unwinding_info_size = 0; |
| 324 desc->unwinding_info = nullptr; |
323 } | 325 } |
324 | 326 |
325 | 327 |
326 void Assembler::Align(int m) { | 328 void Assembler::Align(int m) { |
327 DCHECK(base::bits::IsPowerOfTwo32(m)); | 329 DCHECK(base::bits::IsPowerOfTwo32(m)); |
328 int delta = (m - (pc_offset() & (m - 1))) & (m - 1); | 330 int delta = (m - (pc_offset() & (m - 1))) & (m - 1); |
329 Nop(delta); | 331 Nop(delta); |
330 } | 332 } |
331 | 333 |
332 | 334 |
(...skipping 4234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4567 | 4569 |
4568 bool RelocInfo::IsInConstantPool() { | 4570 bool RelocInfo::IsInConstantPool() { |
4569 return false; | 4571 return false; |
4570 } | 4572 } |
4571 | 4573 |
4572 | 4574 |
4573 } // namespace internal | 4575 } // namespace internal |
4574 } // namespace v8 | 4576 } // namespace v8 |
4575 | 4577 |
4576 #endif // V8_TARGET_ARCH_X64 | 4578 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |