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

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

Issue 1029723002: 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 | « no previous file | src/ppc/assembler-ppc.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 611 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 INLINE(static Address return_address_from_call_start(Address pc)); 622 INLINE(static Address return_address_from_call_start(Address pc));
623 623
624 // Return the code target address of the patch debug break slot 624 // Return the code target address of the patch debug break slot
625 INLINE(static Address break_address_from_return_address(Address pc)); 625 INLINE(static Address break_address_from_return_address(Address pc));
626 626
627 // This sets the branch destination. 627 // This sets the branch destination.
628 // This is for calls and branches within generated code. 628 // This is for calls and branches within generated code.
629 inline static void deserialization_set_special_target_at( 629 inline static void deserialization_set_special_target_at(
630 Address instruction_payload, Code* code, Address target); 630 Address instruction_payload, Code* code, Address target);
631 631
632 // This sets the internal reference at the pc.
633 inline static void deserialization_set_target_internal_reference_at(
634 Address pc, Address target);
635
632 // Size of an instruction. 636 // Size of an instruction.
633 static const int kInstrSize = sizeof(Instr); 637 static const int kInstrSize = sizeof(Instr);
634 638
635 // Here we are patching the address in the LUI/ORI instruction pair. 639 // Here we are patching the address in the LUI/ORI instruction pair.
636 // These values are used in the serialization process and must be zero for 640 // These values are used in the serialization process and must be zero for
637 // PPC platform, as Code, Embedded Object or External-reference pointers 641 // PPC platform, as Code, Embedded Object or External-reference pointers
638 // are split across two consecutive instructions and don't exist separately 642 // are split across two consecutive instructions and don't exist separately
639 // in the code, so the serializer should not step forwards in memory after 643 // in the code, so the serializer should not step forwards in memory after
640 // a target is resolved and written. 644 // a target is resolved and written.
641 static const int kSpecialTargetSize = 0; 645 static const int kSpecialTargetSize = 0;
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after
1438 1442
1439 1443
1440 class EnsureSpace BASE_EMBEDDED { 1444 class EnsureSpace BASE_EMBEDDED {
1441 public: 1445 public:
1442 explicit EnsureSpace(Assembler* assembler) { assembler->CheckBuffer(); } 1446 explicit EnsureSpace(Assembler* assembler) { assembler->CheckBuffer(); }
1443 }; 1447 };
1444 } 1448 }
1445 } // namespace v8::internal 1449 } // namespace v8::internal
1446 1450
1447 #endif // V8_PPC_ASSEMBLER_PPC_H_ 1451 #endif // V8_PPC_ASSEMBLER_PPC_H_
OLDNEW
« no previous file with comments | « no previous file | src/ppc/assembler-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698