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

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

Issue 1036453002: PPC: Fix 'PPC: Serializer: serialize internal references via object visitor.' (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/ppc/assembler-ppc.h ('k') | no next file » | 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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 // This is for calls and branches within generated code. The serializer 479 // This is for calls and branches within generated code. The serializer
480 // has already deserialized the mov instructions etc. 480 // has already deserialized the mov instructions etc.
481 // There is a FIXED_SEQUENCE assumption here 481 // There is a FIXED_SEQUENCE assumption here
482 void Assembler::deserialization_set_special_target_at( 482 void Assembler::deserialization_set_special_target_at(
483 Address instruction_payload, Code* code, Address target) { 483 Address instruction_payload, Code* code, Address target) {
484 set_target_address_at(instruction_payload, code, target); 484 set_target_address_at(instruction_payload, code, target);
485 } 485 }
486 486
487 487
488 void Assembler::deserialization_set_target_internal_reference_at( 488 void Assembler::deserialization_set_target_internal_reference_at(
489 Address pc, Address target) { 489 Address pc, Address target, RelocInfo::Mode mode) {
490 if (IsLis(instr_at(pc)) && IsOri(instr_at(pc + kInstrSize))) { 490 if (RelocInfo::IsInternalReferenceEncoded(mode)) {
491 Code* code = NULL; 491 Code* code = NULL;
492 set_target_address_at(pc, code, target, SKIP_ICACHE_FLUSH); 492 set_target_address_at(pc, code, target, SKIP_ICACHE_FLUSH);
493 } else { 493 } else {
494 Memory::Address_at(pc) = target; 494 Memory::Address_at(pc) = target;
495 } 495 }
496 } 496 }
497 497
498 498
499 // This code assumes the FIXED_SEQUENCE of lis/ori 499 // This code assumes the FIXED_SEQUENCE of lis/ori
500 void Assembler::set_target_address_at(Address pc, 500 void Assembler::set_target_address_at(Address pc,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 } 552 }
553 #endif 553 #endif
554 return; 554 return;
555 } 555 }
556 UNREACHABLE(); 556 UNREACHABLE();
557 } 557 }
558 } 558 }
559 } // namespace v8::internal 559 } // namespace v8::internal
560 560
561 #endif // V8_PPC_ASSEMBLER_PPC_INL_H_ 561 #endif // V8_PPC_ASSEMBLER_PPC_INL_H_
OLDNEW
« no previous file with comments | « src/ppc/assembler-ppc.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698