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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 reloc_info_writer.Finish(); | 285 reloc_info_writer.Finish(); |
286 DCHECK(pc_ <= reloc_info_writer.pos()); // No overlap. | 286 DCHECK(pc_ <= reloc_info_writer.pos()); // No overlap. |
287 // Set up code descriptor. | 287 // Set up code descriptor. |
288 desc->buffer = buffer_; | 288 desc->buffer = buffer_; |
289 desc->buffer_size = buffer_size_; | 289 desc->buffer_size = buffer_size_; |
290 desc->instr_size = pc_offset(); | 290 desc->instr_size = pc_offset(); |
291 DCHECK(desc->instr_size > 0); // Zero-size code objects upset the system. | 291 DCHECK(desc->instr_size > 0); // Zero-size code objects upset the system. |
292 desc->reloc_size = | 292 desc->reloc_size = |
293 static_cast<int>((buffer_ + buffer_size_) - reloc_info_writer.pos()); | 293 static_cast<int>((buffer_ + buffer_size_) - reloc_info_writer.pos()); |
294 desc->origin = this; | 294 desc->origin = this; |
| 295 desc->constant_pool_size = 0; |
295 } | 296 } |
296 | 297 |
297 | 298 |
298 void Assembler::Align(int m) { | 299 void Assembler::Align(int m) { |
299 DCHECK(base::bits::IsPowerOfTwo32(m)); | 300 DCHECK(base::bits::IsPowerOfTwo32(m)); |
300 int delta = (m - (pc_offset() & (m - 1))) & (m - 1); | 301 int delta = (m - (pc_offset() & (m - 1))) & (m - 1); |
301 Nop(delta); | 302 Nop(delta); |
302 } | 303 } |
303 | 304 |
304 | 305 |
(...skipping 3794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4099 | 4100 |
4100 bool RelocInfo::IsInConstantPool() { | 4101 bool RelocInfo::IsInConstantPool() { |
4101 return false; | 4102 return false; |
4102 } | 4103 } |
4103 | 4104 |
4104 | 4105 |
4105 } // namespace internal | 4106 } // namespace internal |
4106 } // namespace v8 | 4107 } // namespace v8 |
4107 | 4108 |
4108 #endif // V8_TARGET_ARCH_X64 | 4109 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |