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

Side by Side Diff: src/mips64/assembler-mips64-inl.h

Issue 967323002: Refactor BreakLocationIterator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: static_cast instead Created 5 years, 9 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/mips64/assembler-mips64.cc ('k') | src/mips64/debug-mips64.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 1
2 // Copyright (c) 1994-2006 Sun Microsystems Inc. 2 // Copyright (c) 1994-2006 Sun Microsystems Inc.
3 // All Rights Reserved. 3 // All Rights Reserved.
4 // 4 //
5 // Redistribution and use in source and binary forms, with or without 5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are 6 // modification, are permitted provided that the following conditions are
7 // met: 7 // met:
8 // 8 //
9 // - Redistributions of source code must retain the above copyright notice, 9 // - Redistributions of source code must retain the above copyright notice,
10 // this list of conditions and the following disclaimer. 10 // this list of conditions and the following disclaimer.
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 Assembler::set_target_address_at(pc_ + Assembler::kInstrSize, 294 Assembler::set_target_address_at(pc_ + Assembler::kInstrSize,
295 host_, 295 host_,
296 stub->instruction_start()); 296 stub->instruction_start());
297 } 297 }
298 298
299 299
300 Address RelocInfo::call_address() { 300 Address RelocInfo::call_address() {
301 DCHECK((IsJSReturn(rmode()) && IsPatchedReturnSequence()) || 301 DCHECK((IsJSReturn(rmode()) && IsPatchedReturnSequence()) ||
302 (IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence())); 302 (IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence()));
303 // The pc_ offset of 0 assumes mips patched return sequence per 303 // The pc_ offset of 0 assumes mips patched return sequence per
304 // debug-mips.cc BreakLocationIterator::SetDebugBreakAtReturn(), or 304 // debug-mips.cc BreakLocation::SetDebugBreakAtReturn(), or
305 // debug break slot per BreakLocationIterator::SetDebugBreakAtSlot(). 305 // debug break slot per BreakLocation::SetDebugBreakAtSlot().
306 return Assembler::target_address_at(pc_, host_); 306 return Assembler::target_address_at(pc_, host_);
307 } 307 }
308 308
309 309
310 void RelocInfo::set_call_address(Address target) { 310 void RelocInfo::set_call_address(Address target) {
311 DCHECK((IsJSReturn(rmode()) && IsPatchedReturnSequence()) || 311 DCHECK((IsJSReturn(rmode()) && IsPatchedReturnSequence()) ||
312 (IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence())); 312 (IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence()));
313 // The pc_ offset of 0 assumes mips patched return sequence per 313 // The pc_ offset of 0 assumes mips patched return sequence per
314 // debug-mips.cc BreakLocationIterator::SetDebugBreakAtReturn(), or 314 // debug-mips.cc BreakLocation::SetDebugBreakAtReturn(), or
315 // debug break slot per BreakLocationIterator::SetDebugBreakAtSlot(). 315 // debug break slot per BreakLocation::SetDebugBreakAtSlot().
316 Assembler::set_target_address_at(pc_, host_, target); 316 Assembler::set_target_address_at(pc_, host_, target);
317 if (host() != NULL) { 317 if (host() != NULL) {
318 Object* target_code = Code::GetCodeFromTargetAddress(target); 318 Object* target_code = Code::GetCodeFromTargetAddress(target);
319 host()->GetHeap()->incremental_marking()->RecordWriteIntoCode( 319 host()->GetHeap()->incremental_marking()->RecordWriteIntoCode(
320 host(), this, HeapObject::cast(target_code)); 320 host(), this, HeapObject::cast(target_code));
321 } 321 }
322 } 322 }
323 323
324 324
325 Object* RelocInfo::call_object() { 325 Object* RelocInfo::call_object() {
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 } 453 }
454 *reinterpret_cast<uint64_t*>(pc_) = x; 454 *reinterpret_cast<uint64_t*>(pc_) = x;
455 pc_ += kInstrSize * 2; 455 pc_ += kInstrSize * 2;
456 CheckTrampolinePoolQuick(); 456 CheckTrampolinePoolQuick();
457 } 457 }
458 458
459 459
460 } } // namespace v8::internal 460 } } // namespace v8::internal
461 461
462 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ 462 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_
OLDNEW
« no previous file with comments | « src/mips64/assembler-mips64.cc ('k') | src/mips64/debug-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698