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

Side by Side Diff: src/x64/assembler-x64.cc

Issue 1478713002: Set the constant pool size to 0 on architectures that do not use it. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « src/mips64/assembler-mips64.cc ('k') | src/x87/assembler-x87.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/mips64/assembler-mips64.cc ('k') | src/x87/assembler-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698