| OLD | NEW |
| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 #else | 54 #else |
| 55 static const ArchVariants kArchVariant = kMips32r1; | 55 static const ArchVariants kArchVariant = kMips32r1; |
| 56 #endif | 56 #endif |
| 57 | 57 |
| 58 | 58 |
| 59 #if(defined(__mips_hard_float) && __mips_hard_float != 0) | 59 #if(defined(__mips_hard_float) && __mips_hard_float != 0) |
| 60 // Use floating-point coprocessor instructions. This flag is raised when | 60 // Use floating-point coprocessor instructions. This flag is raised when |
| 61 // -mhard-float is passed to the compiler. | 61 // -mhard-float is passed to the compiler. |
| 62 const bool IsMipsSoftFloatABI = false; | 62 const bool IsMipsSoftFloatABI = false; |
| 63 #elif(defined(__mips_soft_float) && __mips_soft_float != 0) | 63 #elif(defined(__mips_soft_float) && __mips_soft_float != 0) |
| 64 // Not using floating-point coprocessor instructions. This flag is raised when | 64 // This flag is raised when -msoft-float is passed to the compiler. |
| 65 // -msoft-float is passed to the compiler. | 65 // Although FPU is a base requirement for v8, soft-float ABI is used |
| 66 // on soft-float systems with FPU kernel emulation. |
| 66 const bool IsMipsSoftFloatABI = true; | 67 const bool IsMipsSoftFloatABI = true; |
| 67 #else | 68 #else |
| 68 const bool IsMipsSoftFloatABI = true; | 69 const bool IsMipsSoftFloatABI = true; |
| 69 #endif | 70 #endif |
| 70 | 71 |
| 71 | 72 |
| 72 // Defines constants and accessor classes to assemble, disassemble and | 73 // Defines constants and accessor classes to assemble, disassemble and |
| 73 // simulate MIPS32 instructions. | 74 // simulate MIPS32 instructions. |
| 74 // | 75 // |
| 75 // See: MIPS32 Architecture For Programmers | 76 // See: MIPS32 Architecture For Programmers |
| (...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 798 // JS argument slots size. | 799 // JS argument slots size. |
| 799 const int kJSArgsSlotsSize = 0 * Instruction::kInstrSize; | 800 const int kJSArgsSlotsSize = 0 * Instruction::kInstrSize; |
| 800 // Assembly builtins argument slots size. | 801 // Assembly builtins argument slots size. |
| 801 const int kBArgsSlotsSize = 0 * Instruction::kInstrSize; | 802 const int kBArgsSlotsSize = 0 * Instruction::kInstrSize; |
| 802 | 803 |
| 803 const int kBranchReturnOffset = 2 * Instruction::kInstrSize; | 804 const int kBranchReturnOffset = 2 * Instruction::kInstrSize; |
| 804 | 805 |
| 805 } } // namespace v8::internal | 806 } } // namespace v8::internal |
| 806 | 807 |
| 807 #endif // #ifndef V8_MIPS_CONSTANTS_H_ | 808 #endif // #ifndef V8_MIPS_CONSTANTS_H_ |
| OLD | NEW |