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

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

Issue 2751993002: [assembler] Remove unnecessary cast. (Closed)
Patch Set: Created 3 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/ia32/assembler-ia32-inl.h ('k') | src/mips64/assembler-mips64-inl.h » ('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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 return Assembler::target_address_at(pc_, host_); 328 return Assembler::target_address_at(pc_, host_);
329 } 329 }
330 330
331 331
332 void RelocInfo::set_debug_call_address(Address target) { 332 void RelocInfo::set_debug_call_address(Address target) {
333 DCHECK(IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence()); 333 DCHECK(IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence());
334 // The pc_ offset of 0 assumes patched debug break slot or return 334 // The pc_ offset of 0 assumes patched debug break slot or return
335 // sequence. 335 // sequence.
336 Assembler::set_target_address_at(isolate_, pc_, host_, target); 336 Assembler::set_target_address_at(isolate_, pc_, host_, target);
337 if (host() != NULL) { 337 if (host() != NULL) {
338 Object* target_code = Code::GetCodeFromTargetAddress(target); 338 Code* target_code = Code::GetCodeFromTargetAddress(target);
339 host()->GetHeap()->incremental_marking()->RecordWriteIntoCode( 339 host()->GetHeap()->incremental_marking()->RecordWriteIntoCode(host(), this,
340 host(), this, HeapObject::cast(target_code)); 340 target_code);
341 } 341 }
342 } 342 }
343 343
344 344
345 void RelocInfo::WipeOut() { 345 void RelocInfo::WipeOut() {
346 DCHECK(IsEmbeddedObject(rmode_) || IsCodeTarget(rmode_) || 346 DCHECK(IsEmbeddedObject(rmode_) || IsCodeTarget(rmode_) ||
347 IsRuntimeEntry(rmode_) || IsExternalReference(rmode_) || 347 IsRuntimeEntry(rmode_) || IsExternalReference(rmode_) ||
348 IsInternalReference(rmode_) || IsInternalReferenceEncoded(rmode_)); 348 IsInternalReference(rmode_) || IsInternalReferenceEncoded(rmode_));
349 if (IsInternalReference(rmode_)) { 349 if (IsInternalReference(rmode_)) {
350 Memory::Address_at(pc_) = NULL; 350 Memory::Address_at(pc_) = NULL;
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 CheckBuffer(); 480 CheckBuffer();
481 } 481 }
482 EmitHelper(x, is_compact_branch); 482 EmitHelper(x, is_compact_branch);
483 } 483 }
484 484
485 485
486 } // namespace internal 486 } // namespace internal
487 } // namespace v8 487 } // namespace v8
488 488
489 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ 489 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_
OLDNEW
« no previous file with comments | « src/ia32/assembler-ia32-inl.h ('k') | src/mips64/assembler-mips64-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698