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

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

Issue 1155673005: Fix issues with Arm's use of embedded constant pools (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Move DataAlign implementation to common code Created 5 years, 6 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.h ('k') | 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 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 return ((cr.code() * CRWIDTH) + crbit); 729 return ((cr.code() * CRWIDTH) + crbit);
730 } 730 }
731 731
732 // --------------------------------------------------------------------------- 732 // ---------------------------------------------------------------------------
733 // Code generation 733 // Code generation
734 734
735 // Insert the smallest number of nop instructions 735 // Insert the smallest number of nop instructions
736 // possible to align the pc offset to a multiple 736 // possible to align the pc offset to a multiple
737 // of m. m must be a power of 2 (>= 4). 737 // of m. m must be a power of 2 (>= 4).
738 void Align(int m); 738 void Align(int m);
739 // Insert the smallest number of zero bytes possible to align the pc offset
740 // to a mulitple of m. m must be a power of 2 (>= 2).
741 void DataAlign(int m);
739 // Aligns code to something that's optimal for a jump target for the platform. 742 // Aligns code to something that's optimal for a jump target for the platform.
740 void CodeTargetAlign(); 743 void CodeTargetAlign();
741 744
742 // Branch instructions 745 // Branch instructions
743 void bclr(BOfield bo, LKBit lk); 746 void bclr(BOfield bo, LKBit lk);
744 void blr(); 747 void blr();
745 void bc(int branch_offset, BOfield bo, int condition_bit, LKBit lk = LeaveLK); 748 void bc(int branch_offset, BOfield bo, int condition_bit, LKBit lk = LeaveLK);
746 void b(int branch_offset, LKBit lk); 749 void b(int branch_offset, LKBit lk);
747 750
748 void bcctr(BOfield bo, LKBit lk); 751 void bcctr(BOfield bo, LKBit lk);
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
1534 1537
1535 1538
1536 class EnsureSpace BASE_EMBEDDED { 1539 class EnsureSpace BASE_EMBEDDED {
1537 public: 1540 public:
1538 explicit EnsureSpace(Assembler* assembler) { assembler->CheckBuffer(); } 1541 explicit EnsureSpace(Assembler* assembler) { assembler->CheckBuffer(); }
1539 }; 1542 };
1540 } 1543 }
1541 } // namespace v8::internal 1544 } // namespace v8::internal
1542 1545
1543 #endif // V8_PPC_ASSEMBLER_PPC_H_ 1546 #endif // V8_PPC_ASSEMBLER_PPC_H_
OLDNEW
« no previous file with comments | « src/mips64/assembler-mips64.h ('k') | src/ppc/assembler-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698