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

Side by Side Diff: src/ppc/assembler-ppc.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/ia32/assembler-ia32.cc ('k') | src/x64/assembler-x64.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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 kMaxBlockTrampolineSectionSize; 241 kMaxBlockTrampolineSectionSize;
242 internal_trampoline_exception_ = false; 242 internal_trampoline_exception_ = false;
243 last_bound_pos_ = 0; 243 last_bound_pos_ = 0;
244 trampoline_emitted_ = FLAG_force_long_branches; 244 trampoline_emitted_ = FLAG_force_long_branches;
245 unbound_labels_count_ = 0; 245 unbound_labels_count_ = 0;
246 ClearRecordedAstId(); 246 ClearRecordedAstId();
247 } 247 }
248 248
249 249
250 void Assembler::GetCode(CodeDesc* desc) { 250 void Assembler::GetCode(CodeDesc* desc) {
251 reloc_info_writer.Finish();
251 // Set up code descriptor. 252 // Set up code descriptor.
252 desc->buffer = buffer_; 253 desc->buffer = buffer_;
253 desc->buffer_size = buffer_size_; 254 desc->buffer_size = buffer_size_;
254 desc->instr_size = pc_offset(); 255 desc->instr_size = pc_offset();
255 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); 256 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos();
256 desc->origin = this; 257 desc->origin = this;
257 } 258 }
258 259
259 260
260 void Assembler::Align(int m) { 261 void Assembler::Align(int m) {
(...skipping 2292 matching lines...) Expand 10 before | Expand all | Expand 10 after
2553 2554
2554 // Patch load instruction with correct offset. 2555 // Patch load instruction with correct offset.
2555 Assembler::SetConstantPoolOffset(rinfo.pc(), offset); 2556 Assembler::SetConstantPoolOffset(rinfo.pc(), offset);
2556 } 2557 }
2557 } 2558 }
2558 #endif 2559 #endif
2559 } 2560 }
2560 } // namespace v8::internal 2561 } // namespace v8::internal
2561 2562
2562 #endif // V8_TARGET_ARCH_PPC 2563 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/ia32/assembler-ia32.cc ('k') | src/x64/assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698