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

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

Issue 7239020: MIPS: Long branch implementation and trampoline improvement. (Closed)
Patch Set: Update per comments, refactor buffer-growth-blocking for internal refs. Created 9 years, 5 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/builtins-mips.cc ('k') | src/mips/macro-assembler-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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 static const int kSaShift = 6; 194 static const int kSaShift = 6;
195 static const int kSaBits = 5; 195 static const int kSaBits = 5;
196 static const int kFunctionShift = 0; 196 static const int kFunctionShift = 0;
197 static const int kFunctionBits = 6; 197 static const int kFunctionBits = 6;
198 static const int kLuiShift = 16; 198 static const int kLuiShift = 16;
199 199
200 static const int kImm16Shift = 0; 200 static const int kImm16Shift = 0;
201 static const int kImm16Bits = 16; 201 static const int kImm16Bits = 16;
202 static const int kImm26Shift = 0; 202 static const int kImm26Shift = 0;
203 static const int kImm26Bits = 26; 203 static const int kImm26Bits = 26;
204 static const int kImm28Shift = 0;
205 static const int kImm28Bits = 28;
204 206
205 static const int kFsShift = 11; 207 static const int kFsShift = 11;
206 static const int kFsBits = 5; 208 static const int kFsBits = 5;
207 static const int kFtShift = 16; 209 static const int kFtShift = 16;
208 static const int kFtBits = 5; 210 static const int kFtBits = 5;
209 static const int kFdShift = 6; 211 static const int kFdShift = 6;
210 static const int kFdBits = 5; 212 static const int kFdBits = 5;
211 static const int kFCccShift = 8; 213 static const int kFCccShift = 8;
212 static const int kFCccBits = 3; 214 static const int kFCccBits = 3;
213 static const int kFBccShift = 18; 215 static const int kFBccShift = 18;
214 static const int kFBccBits = 3; 216 static const int kFBccBits = 3;
215 static const int kFBtrueShift = 16; 217 static const int kFBtrueShift = 16;
216 static const int kFBtrueBits = 1; 218 static const int kFBtrueBits = 1;
217 219
218 // ----- Miscellaneous useful masks. 220 // ----- Miscellaneous useful masks.
219 // Instruction bit masks. 221 // Instruction bit masks.
220 static const int kOpcodeMask = ((1 << kOpcodeBits) - 1) << kOpcodeShift; 222 static const int kOpcodeMask = ((1 << kOpcodeBits) - 1) << kOpcodeShift;
221 static const int kImm16Mask = ((1 << kImm16Bits) - 1) << kImm16Shift; 223 static const int kImm16Mask = ((1 << kImm16Bits) - 1) << kImm16Shift;
222 static const int kImm26Mask = ((1 << kImm26Bits) - 1) << kImm26Shift; 224 static const int kImm26Mask = ((1 << kImm26Bits) - 1) << kImm26Shift;
225 static const int kImm28Mask = ((1 << kImm28Bits) - 1) << kImm28Shift;
223 static const int kRsFieldMask = ((1 << kRsBits) - 1) << kRsShift; 226 static const int kRsFieldMask = ((1 << kRsBits) - 1) << kRsShift;
224 static const int kRtFieldMask = ((1 << kRtBits) - 1) << kRtShift; 227 static const int kRtFieldMask = ((1 << kRtBits) - 1) << kRtShift;
225 static const int kRdFieldMask = ((1 << kRdBits) - 1) << kRdShift; 228 static const int kRdFieldMask = ((1 << kRdBits) - 1) << kRdShift;
226 static const int kSaFieldMask = ((1 << kSaBits) - 1) << kSaShift; 229 static const int kSaFieldMask = ((1 << kSaBits) - 1) << kSaShift;
227 static const int kFunctionFieldMask = 230 static const int kFunctionFieldMask =
228 ((1 << kFunctionBits) - 1) << kFunctionShift; 231 ((1 << kFunctionBits) - 1) << kFunctionShift;
229 // Misc masks. 232 // Misc masks.
230 static const int kHiMask = 0xffff << 16; 233 static const int kHiMask = 0xffff << 16;
231 static const int kLoMask = 0xffff; 234 static const int kLoMask = 0xffff;
232 static const int kSignMask = 0x80000000; 235 static const int kSignMask = 0x80000000;
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 static const int kBranchReturnOffset = 2 * Instruction::kInstrSize; 756 static const int kBranchReturnOffset = 2 * Instruction::kInstrSize;
754 757
755 static const int kDoubleAlignmentBits = 3; 758 static const int kDoubleAlignmentBits = 3;
756 static const int kDoubleAlignment = (1 << kDoubleAlignmentBits); 759 static const int kDoubleAlignment = (1 << kDoubleAlignmentBits);
757 static const int kDoubleAlignmentMask = kDoubleAlignment - 1; 760 static const int kDoubleAlignmentMask = kDoubleAlignment - 1;
758 761
759 762
760 } } // namespace v8::internal 763 } } // namespace v8::internal
761 764
762 #endif // #ifndef V8_MIPS_CONSTANTS_H_ 765 #endif // #ifndef V8_MIPS_CONSTANTS_H_
OLDNEW
« no previous file with comments | « src/mips/builtins-mips.cc ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698