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

Side by Side Diff: src/mips64/disasm-mips64.cc

Issue 2799923002: MIPS[64]: Implement fill.df, copy_u.df, copy_s.df instructions in simulator (Closed)
Patch Set: Rebase Created 3 years, 7 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/constants-mips64.h ('k') | src/mips64/simulator-mips64.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // A Disassembler object is used to disassemble a block of code instruction by 5 // A Disassembler object is used to disassemble a block of code instruction by
6 // instruction. The default implementation of the NameConverter object can be 6 // instruction. The default implementation of the NameConverter object can be
7 // overriden to modify register names or to do symbol lookup on addresses. 7 // overriden to modify register names or to do symbol lookup on addresses.
8 // 8 //
9 // The example below will disassemble a block of code and print it to stdout. 9 // The example below will disassemble a block of code and print it to stdout.
10 // 10 //
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 out_buffer_[out_buffer_pos_] = '\0'; 53 out_buffer_[out_buffer_pos_] = '\0';
54 } 54 }
55 55
56 ~Decoder() {} 56 ~Decoder() {}
57 57
58 // Writes one disassembled instruction into 'buffer' (0-terminated). 58 // Writes one disassembled instruction into 'buffer' (0-terminated).
59 // Returns the length of the disassembled machine instruction in bytes. 59 // Returns the length of the disassembled machine instruction in bytes.
60 int InstructionDecode(byte* instruction); 60 int InstructionDecode(byte* instruction);
61 61
62 private: 62 private:
63 const uint32_t kMsaI8Mask = ((3U << 24) | ((1 << 6) - 1));
64 const uint32_t kMsaI5Mask = ((7U << 23) | ((1 << 6) - 1));
65 const uint32_t kMsaMI10Mask = (15U << 2);
66 const uint32_t kMsaBITMask = ((7U << 23) | ((1 << 6) - 1));
67 const uint32_t kMsaELMMask = (15U << 22);
68 const uint32_t kMsa3RMask = ((7U << 23) | ((1 << 6) - 1));
69 const uint32_t kMsa3RFMask = ((15U << 22) | ((1 << 6) - 1));
70 const uint32_t kMsaVECMask = (23U << 21);
71 const uint32_t kMsa2RMask = (7U << 18);
72 const uint32_t kMsa2RFMask = (15U << 17);
73
74 // Bottleneck functions to print into the out_buffer. 63 // Bottleneck functions to print into the out_buffer.
75 void PrintChar(const char ch); 64 void PrintChar(const char ch);
76 void Print(const char* str); 65 void Print(const char* str);
77 66
78 // Printing of common values. 67 // Printing of common values.
79 void PrintRegister(int reg); 68 void PrintRegister(int reg);
80 void PrintFPURegister(int freg); 69 void PrintFPURegister(int freg);
81 void PrintMSARegister(int wreg); 70 void PrintMSARegister(int wreg);
82 void PrintFPUStatusRegister(int freg); 71 void PrintFPUStatusRegister(int freg);
83 void PrintMSAControlRegister(int creg); 72 void PrintMSAControlRegister(int creg);
(...skipping 2927 matching lines...) Expand 10 before | Expand all | Expand 10 after
3011 *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); 3000 *reinterpret_cast<int32_t*>(prev_pc), buffer.start());
3012 } 3001 }
3013 } 3002 }
3014 3003
3015 3004
3016 #undef UNSUPPORTED 3005 #undef UNSUPPORTED
3017 3006
3018 } // namespace disasm 3007 } // namespace disasm
3019 3008
3020 #endif // V8_TARGET_ARCH_MIPS64 3009 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips64/constants-mips64.h ('k') | src/mips64/simulator-mips64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698