| 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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 | 249 |
| 250 #ifdef GENERATED_CODE_COVERAGE | 250 #ifdef GENERATED_CODE_COVERAGE |
| 251 InitCoverageLog(); | 251 InitCoverageLog(); |
| 252 #endif | 252 #endif |
| 253 } | 253 } |
| 254 | 254 |
| 255 | 255 |
| 256 void Assembler::GetCode(CodeDesc* desc) { | 256 void Assembler::GetCode(CodeDesc* desc) { |
| 257 // Finalize code (at this point overflow() may be true, but the gap ensures | 257 // Finalize code (at this point overflow() may be true, but the gap ensures |
| 258 // that we are still not overlapping instructions and relocation info). | 258 // that we are still not overlapping instructions and relocation info). |
| 259 reloc_info_writer.Finish(); |
| 259 DCHECK(pc_ <= reloc_info_writer.pos()); // No overlap. | 260 DCHECK(pc_ <= reloc_info_writer.pos()); // No overlap. |
| 260 // Set up code descriptor. | 261 // Set up code descriptor. |
| 261 desc->buffer = buffer_; | 262 desc->buffer = buffer_; |
| 262 desc->buffer_size = buffer_size_; | 263 desc->buffer_size = buffer_size_; |
| 263 desc->instr_size = pc_offset(); | 264 desc->instr_size = pc_offset(); |
| 264 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); | 265 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); |
| 265 desc->origin = this; | 266 desc->origin = this; |
| 266 } | 267 } |
| 267 | 268 |
| 268 | 269 |
| (...skipping 1820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2089 fprintf(coverage_log, "%s\n", file_line); | 2090 fprintf(coverage_log, "%s\n", file_line); |
| 2090 fflush(coverage_log); | 2091 fflush(coverage_log); |
| 2091 } | 2092 } |
| 2092 } | 2093 } |
| 2093 | 2094 |
| 2094 #endif | 2095 #endif |
| 2095 | 2096 |
| 2096 } } // namespace v8::internal | 2097 } } // namespace v8::internal |
| 2097 | 2098 |
| 2098 #endif // V8_TARGET_ARCH_X87 | 2099 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |