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

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

Issue 11644097: Use C++ style type casts. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « src/mips/assembler-mips.cc ('k') | src/mips/ic-mips.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // In the simulator, the PC register is simulated as the 34th register. 92 // In the simulator, the PC register is simulated as the 34th register.
93 const int kPCRegister = 34; 93 const int kPCRegister = 34;
94 94
95 // Number coprocessor registers. 95 // Number coprocessor registers.
96 const int kNumFPURegisters = 32; 96 const int kNumFPURegisters = 32;
97 const int kInvalidFPURegister = -1; 97 const int kInvalidFPURegister = -1;
98 98
99 // FPU (coprocessor 1) control registers. Currently only FCSR is implemented. 99 // FPU (coprocessor 1) control registers. Currently only FCSR is implemented.
100 const int kFCSRRegister = 31; 100 const int kFCSRRegister = 31;
101 const int kInvalidFPUControlRegister = -1; 101 const int kInvalidFPUControlRegister = -1;
102 const uint32_t kFPUInvalidResult = (uint32_t) (1 << 31) - 1; 102 const uint32_t kFPUInvalidResult = static_cast<uint32_t>(1) << 31 - 1;
103 103
104 // FCSR constants. 104 // FCSR constants.
105 const uint32_t kFCSRInexactFlagBit = 2; 105 const uint32_t kFCSRInexactFlagBit = 2;
106 const uint32_t kFCSRUnderflowFlagBit = 3; 106 const uint32_t kFCSRUnderflowFlagBit = 3;
107 const uint32_t kFCSROverflowFlagBit = 4; 107 const uint32_t kFCSROverflowFlagBit = 4;
108 const uint32_t kFCSRDivideByZeroFlagBit = 5; 108 const uint32_t kFCSRDivideByZeroFlagBit = 5;
109 const uint32_t kFCSRInvalidOpFlagBit = 6; 109 const uint32_t kFCSRInvalidOpFlagBit = 6;
110 110
111 const uint32_t kFCSRInexactFlagMask = 1 << kFCSRInexactFlagBit; 111 const uint32_t kFCSRInexactFlagMask = 1 << kFCSRInexactFlagBit;
112 const uint32_t kFCSRUnderflowFlagMask = 1 << kFCSRUnderflowFlagBit; 112 const uint32_t kFCSRUnderflowFlagMask = 1 << kFCSRUnderflowFlagBit;
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 // JS argument slots size. 784 // JS argument slots size.
785 const int kJSArgsSlotsSize = 0 * Instruction::kInstrSize; 785 const int kJSArgsSlotsSize = 0 * Instruction::kInstrSize;
786 // Assembly builtins argument slots size. 786 // Assembly builtins argument slots size.
787 const int kBArgsSlotsSize = 0 * Instruction::kInstrSize; 787 const int kBArgsSlotsSize = 0 * Instruction::kInstrSize;
788 788
789 const int kBranchReturnOffset = 2 * Instruction::kInstrSize; 789 const int kBranchReturnOffset = 2 * Instruction::kInstrSize;
790 790
791 } } // namespace v8::internal 791 } } // namespace v8::internal
792 792
793 #endif // #ifndef V8_MIPS_CONSTANTS_H_ 793 #endif // #ifndef V8_MIPS_CONSTANTS_H_
OLDNEW
« no previous file with comments | « src/mips/assembler-mips.cc ('k') | src/mips/ic-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698