OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |