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

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

Issue 1749263002: MIPS: Improve Lsa/Dlsa implementations. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. Created 4 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/macro-assembler-mips.cc ('k') | src/mips64/assembler-mips64.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 are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // 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 773 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 void dsrlv(Register rd, Register rt, Register rs); 784 void dsrlv(Register rd, Register rt, Register rs);
785 void drotr(Register rd, Register rt, uint16_t sa); 785 void drotr(Register rd, Register rt, uint16_t sa);
786 void drotr32(Register rd, Register rt, uint16_t sa); 786 void drotr32(Register rd, Register rt, uint16_t sa);
787 void drotrv(Register rd, Register rt, Register rs); 787 void drotrv(Register rd, Register rt, Register rs);
788 void dsra(Register rt, Register rd, uint16_t sa); 788 void dsra(Register rt, Register rd, uint16_t sa);
789 void dsrav(Register rd, Register rt, Register rs); 789 void dsrav(Register rd, Register rt, Register rs);
790 void dsll32(Register rt, Register rd, uint16_t sa); 790 void dsll32(Register rt, Register rd, uint16_t sa);
791 void dsrl32(Register rt, Register rd, uint16_t sa); 791 void dsrl32(Register rt, Register rd, uint16_t sa);
792 void dsra32(Register rt, Register rd, uint16_t sa); 792 void dsra32(Register rt, Register rd, uint16_t sa);
793 793
794 // Address computing instructions with shift.
795 void lsa(Register rd, Register rt, Register rs, uint8_t sa);
796 void dlsa(Register rd, Register rt, Register rs, uint8_t sa);
797
798 // ------------Memory-instructions------------- 794 // ------------Memory-instructions-------------
799 795
800 void lb(Register rd, const MemOperand& rs); 796 void lb(Register rd, const MemOperand& rs);
801 void lbu(Register rd, const MemOperand& rs); 797 void lbu(Register rd, const MemOperand& rs);
802 void lh(Register rd, const MemOperand& rs); 798 void lh(Register rd, const MemOperand& rs);
803 void lhu(Register rd, const MemOperand& rs); 799 void lhu(Register rd, const MemOperand& rs);
804 void lw(Register rd, const MemOperand& rs); 800 void lw(Register rd, const MemOperand& rs);
805 void lwu(Register rd, const MemOperand& rs); 801 void lwu(Register rd, const MemOperand& rs);
806 void lwl(Register rd, const MemOperand& rs); 802 void lwl(Register rd, const MemOperand& rs);
807 void lwr(Register rd, const MemOperand& rs); 803 void lwr(Register rd, const MemOperand& rs);
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
1202 void PatchConstantPoolAccessInstruction(int pc_offset, int offset, 1198 void PatchConstantPoolAccessInstruction(int pc_offset, int offset,
1203 ConstantPoolEntry::Access access, 1199 ConstantPoolEntry::Access access,
1204 ConstantPoolEntry::Type type) { 1200 ConstantPoolEntry::Type type) {
1205 // No embedded constant pool support. 1201 // No embedded constant pool support.
1206 UNREACHABLE(); 1202 UNREACHABLE();
1207 } 1203 }
1208 1204
1209 bool IsPrevInstrCompactBranch() { return prev_instr_compact_branch_; } 1205 bool IsPrevInstrCompactBranch() { return prev_instr_compact_branch_; }
1210 1206
1211 protected: 1207 protected:
1208 // Load Scaled Address instructions.
1209 void lsa(Register rd, Register rt, Register rs, uint8_t sa);
1210 void dlsa(Register rd, Register rt, Register rs, uint8_t sa);
1211
1212 // Relocation for a type-recording IC has the AST id added to it. This 1212 // Relocation for a type-recording IC has the AST id added to it. This
1213 // member variable is a way to pass the information from the call site to 1213 // member variable is a way to pass the information from the call site to
1214 // the relocation info. 1214 // the relocation info.
1215 TypeFeedbackId recorded_ast_id_; 1215 TypeFeedbackId recorded_ast_id_;
1216 1216
1217 inline static void set_target_internal_reference_encoded_at(Address pc, 1217 inline static void set_target_internal_reference_encoded_at(Address pc,
1218 Address target); 1218 Address target);
1219 1219
1220 int64_t buffer_space() const { return reloc_info_writer.pos() - pc_; } 1220 int64_t buffer_space() const { return reloc_info_writer.pos() - pc_; }
1221 1221
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
1503 public: 1503 public:
1504 explicit EnsureSpace(Assembler* assembler) { 1504 explicit EnsureSpace(Assembler* assembler) {
1505 assembler->CheckBuffer(); 1505 assembler->CheckBuffer();
1506 } 1506 }
1507 }; 1507 };
1508 1508
1509 } // namespace internal 1509 } // namespace internal
1510 } // namespace v8 1510 } // namespace v8
1511 1511
1512 #endif // V8_ARM_ASSEMBLER_MIPS_H_ 1512 #endif // V8_ARM_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/macro-assembler-mips.cc ('k') | src/mips64/assembler-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698