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

Side by Side Diff: src/mips64/assembler-mips64-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/mips/assembler-mips-inl.h ('k') | src/ppc/assembler-ppc-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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 return Assembler::target_address_at(pc_, host_); 312 return Assembler::target_address_at(pc_, host_);
313 } 313 }
314 314
315 315
316 void RelocInfo::set_debug_call_address(Address target) { 316 void RelocInfo::set_debug_call_address(Address target) {
317 DCHECK(IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence()); 317 DCHECK(IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence());
318 // The pc_ offset of 0 assumes patched debug break slot or return 318 // The pc_ offset of 0 assumes patched debug break slot or return
319 // sequence. 319 // sequence.
320 Assembler::set_target_address_at(isolate_, pc_, host_, target); 320 Assembler::set_target_address_at(isolate_, pc_, host_, target);
321 if (host() != NULL) { 321 if (host() != NULL) {
322 Object* target_code = Code::GetCodeFromTargetAddress(target); 322 Code* target_code = Code::GetCodeFromTargetAddress(target);
323 host()->GetHeap()->incremental_marking()->RecordWriteIntoCode( 323 host()->GetHeap()->incremental_marking()->RecordWriteIntoCode(host(), this,
324 host(), this, HeapObject::cast(target_code)); 324 target_code);
325 } 325 }
326 } 326 }
327 327
328 328
329 void RelocInfo::WipeOut() { 329 void RelocInfo::WipeOut() {
330 DCHECK(IsEmbeddedObject(rmode_) || IsCodeTarget(rmode_) || 330 DCHECK(IsEmbeddedObject(rmode_) || IsCodeTarget(rmode_) ||
331 IsRuntimeEntry(rmode_) || IsExternalReference(rmode_) || 331 IsRuntimeEntry(rmode_) || IsExternalReference(rmode_) ||
332 IsInternalReference(rmode_) || IsInternalReferenceEncoded(rmode_)); 332 IsInternalReference(rmode_) || IsInternalReferenceEncoded(rmode_));
333 if (IsInternalReference(rmode_)) { 333 if (IsInternalReference(rmode_)) {
334 Memory::Address_at(pc_) = NULL; 334 Memory::Address_at(pc_) = NULL;
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 void Assembler::emit(uint64_t data) { 470 void Assembler::emit(uint64_t data) {
471 CheckForEmitInForbiddenSlot(); 471 CheckForEmitInForbiddenSlot();
472 EmitHelper(data); 472 EmitHelper(data);
473 } 473 }
474 474
475 475
476 } // namespace internal 476 } // namespace internal
477 } // namespace v8 477 } // namespace v8
478 478
479 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ 479 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_
OLDNEW
« no previous file with comments | « src/mips/assembler-mips-inl.h ('k') | src/ppc/assembler-ppc-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698