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

Side by Side Diff: src/mips/constants-mips.h

Issue 2908753002: MIPS[64]: Implement insert.df and I8 instructions in simulator (Closed)
Patch Set: Review comments, rebase Created 3 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 | « no previous file | src/mips/simulator-mips.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 #ifndef V8_MIPS_CONSTANTS_H_ 5 #ifndef V8_MIPS_CONSTANTS_H_
6 #define V8_MIPS_CONSTANTS_H_ 6 #define V8_MIPS_CONSTANTS_H_
7 #include "src/globals.h" 7 #include "src/globals.h"
8 // UNIMPLEMENTED_ macro for MIPS. 8 // UNIMPLEMENTED_ macro for MIPS.
9 #ifdef DEBUG 9 #ifdef DEBUG
10 #define UNIMPLEMENTED_MIPS() \ 10 #define UNIMPLEMENTED_MIPS() \
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 const int kNumFPURegisters = 32; 154 const int kNumFPURegisters = 32;
155 const int kInvalidFPURegister = -1; 155 const int kInvalidFPURegister = -1;
156 156
157 // Number of MSA registers 157 // Number of MSA registers
158 const int kNumMSARegisters = 32; 158 const int kNumMSARegisters = 32;
159 const int kInvalidMSARegister = -1; 159 const int kInvalidMSARegister = -1;
160 160
161 const int kInvalidMSAControlRegister = -1; 161 const int kInvalidMSAControlRegister = -1;
162 const int kMSAIRRegister = 0; 162 const int kMSAIRRegister = 0;
163 const int kMSACSRRegister = 1; 163 const int kMSACSRRegister = 1;
164 const int kMSARegSize = 128;
165 const int kMSALanesByte = kMSARegSize / 8;
166 const int kMSALanesHalf = kMSARegSize / 16;
167 const int kMSALanesWord = kMSARegSize / 32;
168 const int kMSALanesDword = kMSARegSize / 64;
164 169
165 // FPU (coprocessor 1) control registers. Currently only FCSR is implemented. 170 // FPU (coprocessor 1) control registers. Currently only FCSR is implemented.
166 const int kFCSRRegister = 31; 171 const int kFCSRRegister = 31;
167 const int kInvalidFPUControlRegister = -1; 172 const int kInvalidFPUControlRegister = -1;
168 const uint32_t kFPUInvalidResult = static_cast<uint32_t>(1 << 31) - 1; 173 const uint32_t kFPUInvalidResult = static_cast<uint32_t>(1 << 31) - 1;
169 const int32_t kFPUInvalidResultNegative = static_cast<int32_t>(1 << 31); 174 const int32_t kFPUInvalidResultNegative = static_cast<int32_t>(1 << 31);
170 const uint64_t kFPU64InvalidResult = 175 const uint64_t kFPU64InvalidResult =
171 static_cast<uint64_t>(static_cast<uint64_t>(1) << 63) - 1; 176 static_cast<uint64_t>(static_cast<uint64_t>(1) << 63) - 1;
172 const int64_t kFPU64InvalidResultNegative = 177 const int64_t kFPU64InvalidResultNegative =
173 static_cast<int64_t>(static_cast<uint64_t>(1) << 63); 178 static_cast<int64_t>(static_cast<uint64_t>(1) << 63);
(...skipping 1668 matching lines...) Expand 10 before | Expand all | Expand 10 after
1842 } 1847 }
1843 break; 1848 break;
1844 default: 1849 default:
1845 return false; 1850 return false;
1846 } 1851 }
1847 } 1852 }
1848 } // namespace internal 1853 } // namespace internal
1849 } // namespace v8 1854 } // namespace v8
1850 1855
1851 #endif // #ifndef V8_MIPS_CONSTANTS_H_ 1856 #endif // #ifndef V8_MIPS_CONSTANTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/mips/simulator-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698