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

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

Issue 908443002: Remove redundant source position information in RelocInfo (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Nits Created 5 years, 10 months 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') | test/cctest/test-reloc-info.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 (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
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
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
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.cc ('k') | test/cctest/test-reloc-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698