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

Side by Side Diff: runtime/vm/constants_mips.h

Issue 2937933002: Reduce copying, redundancy & repetition for codegen of comparison instructions (Closed)
Patch Set: Feedback from Slava 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 | « runtime/vm/constants_ia32.h ('k') | runtime/vm/constants_x64.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 (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef RUNTIME_VM_CONSTANTS_MIPS_H_ 5 #ifndef RUNTIME_VM_CONSTANTS_MIPS_H_
6 #define RUNTIME_VM_CONSTANTS_MIPS_H_ 6 #define RUNTIME_VM_CONSTANTS_MIPS_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 EQ, // equal 249 EQ, // equal
250 NE, // not equal 250 NE, // not equal
251 GT, // greater than 251 GT, // greater than
252 GE, // greater equal 252 GE, // greater equal
253 LT, // less than 253 LT, // less than
254 LE, // less equal 254 LE, // less equal
255 UGT, // unsigned greater than 255 UGT, // unsigned greater than
256 UGE, // unsigned greater equal 256 UGE, // unsigned greater equal
257 ULT, // unsigned less than 257 ULT, // unsigned less than
258 ULE, // unsigned less equal 258 ULE, // unsigned less equal
259 INVALID_RELATION
259 }; 260 };
260 261
261 262
262 // Constants used for the decoding or encoding of the individual fields of 263 // Constants used for the decoding or encoding of the individual fields of
263 // instructions. Based on the "Table 4.25 CPU Instruction Format Fields". 264 // instructions. Based on the "Table 4.25 CPU Instruction Format Fields".
264 enum InstructionFields { 265 enum InstructionFields {
265 kOpcodeShift = 26, 266 kOpcodeShift = 26,
266 kOpcodeBits = 6, 267 kOpcodeBits = 6,
267 kRsShift = 21, 268 kRsShift = 21,
268 kRsBits = 5, 269 kRsBits = 5,
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 #endif // defined(DEBUG) 635 #endif // defined(DEBUG)
635 636
636 private: 637 private:
637 DISALLOW_ALLOCATION(); 638 DISALLOW_ALLOCATION();
638 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); 639 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr);
639 }; 640 };
640 641
641 } // namespace dart 642 } // namespace dart
642 643
643 #endif // RUNTIME_VM_CONSTANTS_MIPS_H_ 644 #endif // RUNTIME_VM_CONSTANTS_MIPS_H_
OLDNEW
« no previous file with comments | « runtime/vm/constants_ia32.h ('k') | runtime/vm/constants_x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698