| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // | 2 // |
| 3 // Redistribution and use in source and binary forms, with or without | 3 // Redistribution and use in source and binary forms, with or without |
| 4 // modification, are permitted provided that the following conditions are | 4 // modification, are permitted provided that the following conditions are |
| 5 // met: | 5 // met: |
| 6 // | 6 // |
| 7 // * Redistributions of source code must retain the above copyright | 7 // * Redistributions of source code must retain the above copyright |
| 8 // notice, this list of conditions and the following disclaimer. | 8 // notice, this list of conditions and the following disclaimer. |
| 9 // * Redistributions in binary form must reproduce the above | 9 // * Redistributions in binary form must reproduce the above |
| 10 // copyright notice, this list of conditions and the following | 10 // copyright notice, this list of conditions and the following |
| (...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 // Set up code descriptor. | 596 // Set up code descriptor. |
| 597 if (desc) { | 597 if (desc) { |
| 598 desc->buffer = reinterpret_cast<byte*>(buffer_); | 598 desc->buffer = reinterpret_cast<byte*>(buffer_); |
| 599 desc->buffer_size = buffer_size_; | 599 desc->buffer_size = buffer_size_; |
| 600 desc->instr_size = pc_offset(); | 600 desc->instr_size = pc_offset(); |
| 601 desc->reloc_size = | 601 desc->reloc_size = |
| 602 static_cast<int>((reinterpret_cast<byte*>(buffer_) + buffer_size_) - | 602 static_cast<int>((reinterpret_cast<byte*>(buffer_) + buffer_size_) - |
| 603 reloc_info_writer.pos()); | 603 reloc_info_writer.pos()); |
| 604 desc->origin = this; | 604 desc->origin = this; |
| 605 desc->constant_pool_size = 0; | 605 desc->constant_pool_size = 0; |
| 606 desc->unwinding_info_size = 0; |
| 607 desc->unwinding_info = nullptr; |
| 606 } | 608 } |
| 607 } | 609 } |
| 608 | 610 |
| 609 | 611 |
| 610 void Assembler::Align(int m) { | 612 void Assembler::Align(int m) { |
| 611 DCHECK(m >= 4 && base::bits::IsPowerOfTwo32(m)); | 613 DCHECK(m >= 4 && base::bits::IsPowerOfTwo32(m)); |
| 612 while ((pc_offset() & (m - 1)) != 0) { | 614 while ((pc_offset() & (m - 1)) != 0) { |
| 613 nop(); | 615 nop(); |
| 614 } | 616 } |
| 615 } | 617 } |
| (...skipping 2597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3213 movk(scratch, (target_offset >> 32) & 0xFFFF, 32); | 3215 movk(scratch, (target_offset >> 32) & 0xFFFF, 32); |
| 3214 DCHECK((target_offset >> 48) == 0); | 3216 DCHECK((target_offset >> 48) == 0); |
| 3215 add(rd, rd, scratch); | 3217 add(rd, rd, scratch); |
| 3216 } | 3218 } |
| 3217 | 3219 |
| 3218 | 3220 |
| 3219 } // namespace internal | 3221 } // namespace internal |
| 3220 } // namespace v8 | 3222 } // namespace v8 |
| 3221 | 3223 |
| 3222 #endif // V8_TARGET_ARCH_ARM64 | 3224 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |