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

Side by Side Diff: src/x87/assembler-x87.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/x64/assembler-x64.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 // Finalize code (at this point overflow() may be true, but the gap ensures 246 // Finalize code (at this point overflow() may be true, but the gap ensures
247 // that we are still not overlapping instructions and relocation info). 247 // that we are still not overlapping instructions and relocation info).
248 reloc_info_writer.Finish(); 248 reloc_info_writer.Finish();
249 DCHECK(pc_ <= reloc_info_writer.pos()); // No overlap. 249 DCHECK(pc_ <= reloc_info_writer.pos()); // No overlap.
250 // Set up code descriptor. 250 // Set up code descriptor.
251 desc->buffer = buffer_; 251 desc->buffer = buffer_;
252 desc->buffer_size = buffer_size_; 252 desc->buffer_size = buffer_size_;
253 desc->instr_size = pc_offset(); 253 desc->instr_size = pc_offset();
254 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); 254 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos();
255 desc->origin = this; 255 desc->origin = this;
256 desc->constant_pool_size = 0;
256 } 257 }
257 258
258 259
259 void Assembler::Align(int m) { 260 void Assembler::Align(int m) {
260 DCHECK(base::bits::IsPowerOfTwo32(m)); 261 DCHECK(base::bits::IsPowerOfTwo32(m));
261 int mask = m - 1; 262 int mask = m - 1;
262 int addr = pc_offset(); 263 int addr = pc_offset();
263 Nop((m - (addr & mask)) & mask); 264 Nop((m - (addr & mask)) & mask);
264 } 265 }
265 266
(...skipping 1871 matching lines...) Expand 10 before | Expand all | Expand 10 after
2137 fflush(coverage_log); 2138 fflush(coverage_log);
2138 } 2139 }
2139 } 2140 }
2140 2141
2141 #endif 2142 #endif
2142 2143
2143 } // namespace internal 2144 } // namespace internal
2144 } // namespace v8 2145 } // namespace v8
2145 2146
2146 #endif // V8_TARGET_ARCH_X87 2147 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698