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

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

Issue 1902743002: MIPS: Implement unaligned access instruction. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address code review remarks Created 4 years, 8 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/simulator-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 1202 matching lines...) Expand 10 before | Expand all | Expand 10 after
1213 UNREACHABLE(); 1213 UNREACHABLE();
1214 } 1214 }
1215 1215
1216 bool IsPrevInstrCompactBranch() { return prev_instr_compact_branch_; } 1216 bool IsPrevInstrCompactBranch() { return prev_instr_compact_branch_; }
1217 1217
1218 protected: 1218 protected:
1219 // Load Scaled Address instructions. 1219 // Load Scaled Address instructions.
1220 void lsa(Register rd, Register rt, Register rs, uint8_t sa); 1220 void lsa(Register rd, Register rt, Register rs, uint8_t sa);
1221 void dlsa(Register rd, Register rt, Register rs, uint8_t sa); 1221 void dlsa(Register rd, Register rt, Register rs, uint8_t sa);
1222 1222
1223 // Helpers.
1224 void LoadRegPlusOffsetToAt(const MemOperand& src);
1225
1223 // Relocation for a type-recording IC has the AST id added to it. This 1226 // Relocation for a type-recording IC has the AST id added to it. This
1224 // member variable is a way to pass the information from the call site to 1227 // member variable is a way to pass the information from the call site to
1225 // the relocation info. 1228 // the relocation info.
1226 TypeFeedbackId recorded_ast_id_; 1229 TypeFeedbackId recorded_ast_id_;
1227 1230
1228 inline static void set_target_internal_reference_encoded_at(Address pc, 1231 inline static void set_target_internal_reference_encoded_at(Address pc,
1229 Address target); 1232 Address target);
1230 1233
1231 int64_t buffer_space() const { return reloc_info_writer.pos() - pc_; } 1234 int64_t buffer_space() const { return reloc_info_writer.pos() - pc_; }
1232 1235
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
1409 Opcode opcode, Register rs, int32_t offset21, 1412 Opcode opcode, Register rs, int32_t offset21,
1410 CompactBranchType is_compact_branch = CompactBranchType::NO); 1413 CompactBranchType is_compact_branch = CompactBranchType::NO);
1411 void GenInstrImmediate(Opcode opcode, Register rs, uint32_t offset21); 1414 void GenInstrImmediate(Opcode opcode, Register rs, uint32_t offset21);
1412 void GenInstrImmediate( 1415 void GenInstrImmediate(
1413 Opcode opcode, int32_t offset26, 1416 Opcode opcode, int32_t offset26,
1414 CompactBranchType is_compact_branch = CompactBranchType::NO); 1417 CompactBranchType is_compact_branch = CompactBranchType::NO);
1415 1418
1416 void GenInstrJump(Opcode opcode, 1419 void GenInstrJump(Opcode opcode,
1417 uint32_t address); 1420 uint32_t address);
1418 1421
1419 // Helpers.
1420 void LoadRegPlusOffsetToAt(const MemOperand& src);
1421
1422 // Labels. 1422 // Labels.
1423 void print(Label* L); 1423 void print(Label* L);
1424 void bind_to(Label* L, int pos); 1424 void bind_to(Label* L, int pos);
1425 void next(Label* L, bool is_internal); 1425 void next(Label* L, bool is_internal);
1426 1426
1427 // One trampoline consists of: 1427 // One trampoline consists of:
1428 // - space for trampoline slots, 1428 // - space for trampoline slots,
1429 // - space for labels. 1429 // - space for labels.
1430 // 1430 //
1431 // Space for trampoline slots is equal to slot_count * 2 * kInstrSize. 1431 // Space for trampoline slots is equal to slot_count * 2 * kInstrSize.
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
1514 public: 1514 public:
1515 explicit EnsureSpace(Assembler* assembler) { 1515 explicit EnsureSpace(Assembler* assembler) {
1516 assembler->CheckBuffer(); 1516 assembler->CheckBuffer();
1517 } 1517 }
1518 }; 1518 };
1519 1519
1520 } // namespace internal 1520 } // namespace internal
1521 } // namespace v8 1521 } // namespace v8
1522 1522
1523 #endif // V8_ARM_ASSEMBLER_MIPS_H_ 1523 #endif // V8_ARM_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/simulator-mips.cc ('k') | src/mips64/assembler-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698