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 2651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2662 LInstruction* CheckElideControlInstruction(HControlInstruction* instr); | 2662 LInstruction* CheckElideControlInstruction(HControlInstruction* instr); |
2663 | 2663 |
2664 // Declare methods that deal with the individual node types. | 2664 // Declare methods that deal with the individual node types. |
2665 #define DECLARE_DO(type) LInstruction* Do##type(H##type* node); | 2665 #define DECLARE_DO(type) LInstruction* Do##type(H##type* node); |
2666 HYDROGEN_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) | 2666 HYDROGEN_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) |
2667 #undef DECLARE_DO | 2667 #undef DECLARE_DO |
2668 | 2668 |
2669 LInstruction* DoMultiplyAdd(HMul* mul, HValue* addend); | 2669 LInstruction* DoMultiplyAdd(HMul* mul, HValue* addend); |
2670 | 2670 |
2671 static bool HasMagicNumberForDivisor(int32_t divisor); | 2671 static bool HasMagicNumberForDivisor(int32_t divisor); |
2672 static HValue* SimplifiedDivisorForMathFloorOfDiv(HValue* val); | |
2673 | 2672 |
2674 LInstruction* DoMathFloor(HUnaryMathOperation* instr); | 2673 LInstruction* DoMathFloor(HUnaryMathOperation* instr); |
2675 LInstruction* DoMathRound(HUnaryMathOperation* instr); | 2674 LInstruction* DoMathRound(HUnaryMathOperation* instr); |
2676 LInstruction* DoMathAbs(HUnaryMathOperation* instr); | 2675 LInstruction* DoMathAbs(HUnaryMathOperation* instr); |
2677 LInstruction* DoMathLog(HUnaryMathOperation* instr); | 2676 LInstruction* DoMathLog(HUnaryMathOperation* instr); |
2678 LInstruction* DoMathExp(HUnaryMathOperation* instr); | 2677 LInstruction* DoMathExp(HUnaryMathOperation* instr); |
2679 LInstruction* DoMathSqrt(HUnaryMathOperation* instr); | 2678 LInstruction* DoMathSqrt(HUnaryMathOperation* instr); |
2680 LInstruction* DoMathPowHalf(HUnaryMathOperation* instr); | 2679 LInstruction* DoMathPowHalf(HUnaryMathOperation* instr); |
2681 | 2680 |
2682 private: | 2681 private: |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2795 | 2794 |
2796 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2795 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2797 }; | 2796 }; |
2798 | 2797 |
2799 #undef DECLARE_HYDROGEN_ACCESSOR | 2798 #undef DECLARE_HYDROGEN_ACCESSOR |
2800 #undef DECLARE_CONCRETE_INSTRUCTION | 2799 #undef DECLARE_CONCRETE_INSTRUCTION |
2801 | 2800 |
2802 } } // namespace v8::internal | 2801 } } // namespace v8::internal |
2803 | 2802 |
2804 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2803 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |