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

Side by Side Diff: src/crankshaft/mips64/lithium-mips64.h

Issue 2073123002: [builtins] Introduce proper Float64Cos and Float64Sin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix missing breaks Created 4 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ 5 #ifndef V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_
6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ 6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_
7 7
8 #include "src/crankshaft/hydrogen.h" 8 #include "src/crankshaft/hydrogen.h"
9 #include "src/crankshaft/lithium.h" 9 #include "src/crankshaft/lithium.h"
10 #include "src/crankshaft/lithium-allocator.h" 10 #include "src/crankshaft/lithium-allocator.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 V(LoadContextSlot) \ 92 V(LoadContextSlot) \
93 V(LoadRoot) \ 93 V(LoadRoot) \
94 V(LoadFieldByIndex) \ 94 V(LoadFieldByIndex) \
95 V(LoadFunctionPrototype) \ 95 V(LoadFunctionPrototype) \
96 V(LoadGlobalGeneric) \ 96 V(LoadGlobalGeneric) \
97 V(LoadKeyed) \ 97 V(LoadKeyed) \
98 V(LoadKeyedGeneric) \ 98 V(LoadKeyedGeneric) \
99 V(LoadNamedField) \ 99 V(LoadNamedField) \
100 V(LoadNamedGeneric) \ 100 V(LoadNamedGeneric) \
101 V(MathAbs) \ 101 V(MathAbs) \
102 V(MathCos) \
103 V(MathSin) \
102 V(MathExp) \ 104 V(MathExp) \
103 V(MathClz32) \ 105 V(MathClz32) \
104 V(MathFloor) \ 106 V(MathFloor) \
105 V(MathFround) \ 107 V(MathFround) \
106 V(MathLog) \ 108 V(MathLog) \
107 V(MathMinMax) \ 109 V(MathMinMax) \
108 V(MathPowHalf) \ 110 V(MathPowHalf) \
109 V(MathRound) \ 111 V(MathRound) \
110 V(MathSqrt) \ 112 V(MathSqrt) \
111 V(MaybeGrowElements) \ 113 V(MaybeGrowElements) \
(...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after
893 public: 895 public:
894 explicit LMathClz32(LOperand* value) { 896 explicit LMathClz32(LOperand* value) {
895 inputs_[0] = value; 897 inputs_[0] = value;
896 } 898 }
897 899
898 LOperand* value() { return inputs_[0]; } 900 LOperand* value() { return inputs_[0]; }
899 901
900 DECLARE_CONCRETE_INSTRUCTION(MathClz32, "math-clz32") 902 DECLARE_CONCRETE_INSTRUCTION(MathClz32, "math-clz32")
901 }; 903 };
902 904
905 class LMathCos final : public LTemplateInstruction<1, 1, 0> {
906 public:
907 explicit LMathCos(LOperand* value) { inputs_[0] = value; }
908
909 LOperand* value() { return inputs_[0]; }
910
911 DECLARE_CONCRETE_INSTRUCTION(MathCos, "math-cos")
912 };
913
914 class LMathSin final : public LTemplateInstruction<1, 1, 0> {
915 public:
916 explicit LMathSin(LOperand* value) { inputs_[0] = value; }
917
918 LOperand* value() { return inputs_[0]; }
919
920 DECLARE_CONCRETE_INSTRUCTION(MathSin, "math-sin")
921 };
922
903 class LMathExp final : public LTemplateInstruction<1, 1, 0> { 923 class LMathExp final : public LTemplateInstruction<1, 1, 0> {
904 public: 924 public:
905 explicit LMathExp(LOperand* value) { inputs_[0] = value; } 925 explicit LMathExp(LOperand* value) { inputs_[0] = value; }
906 926
907 LOperand* value() { return inputs_[0]; } 927 LOperand* value() { return inputs_[0]; }
908 928
909 DECLARE_CONCRETE_INSTRUCTION(MathExp, "math-exp") 929 DECLARE_CONCRETE_INSTRUCTION(MathExp, "math-exp")
910 }; 930 };
911 931
912 932
(...skipping 1616 matching lines...) Expand 10 before | Expand all | Expand 10 after
2529 2549
2530 LInstruction* DoMultiplyAdd(HMul* mul, HValue* addend); 2550 LInstruction* DoMultiplyAdd(HMul* mul, HValue* addend);
2531 2551
2532 static bool HasMagicNumberForDivisor(int32_t divisor); 2552 static bool HasMagicNumberForDivisor(int32_t divisor);
2533 2553
2534 LInstruction* DoMathFloor(HUnaryMathOperation* instr); 2554 LInstruction* DoMathFloor(HUnaryMathOperation* instr);
2535 LInstruction* DoMathRound(HUnaryMathOperation* instr); 2555 LInstruction* DoMathRound(HUnaryMathOperation* instr);
2536 LInstruction* DoMathFround(HUnaryMathOperation* instr); 2556 LInstruction* DoMathFround(HUnaryMathOperation* instr);
2537 LInstruction* DoMathAbs(HUnaryMathOperation* instr); 2557 LInstruction* DoMathAbs(HUnaryMathOperation* instr);
2538 LInstruction* DoMathLog(HUnaryMathOperation* instr); 2558 LInstruction* DoMathLog(HUnaryMathOperation* instr);
2559 LInstruction* DoMathCos(HUnaryMathOperation* instr);
2560 LInstruction* DoMathSin(HUnaryMathOperation* instr);
2539 LInstruction* DoMathExp(HUnaryMathOperation* instr); 2561 LInstruction* DoMathExp(HUnaryMathOperation* instr);
2540 LInstruction* DoMathSqrt(HUnaryMathOperation* instr); 2562 LInstruction* DoMathSqrt(HUnaryMathOperation* instr);
2541 LInstruction* DoMathPowHalf(HUnaryMathOperation* instr); 2563 LInstruction* DoMathPowHalf(HUnaryMathOperation* instr);
2542 LInstruction* DoMathClz32(HUnaryMathOperation* instr); 2564 LInstruction* DoMathClz32(HUnaryMathOperation* instr);
2543 LInstruction* DoDivByPowerOf2I(HDiv* instr); 2565 LInstruction* DoDivByPowerOf2I(HDiv* instr);
2544 LInstruction* DoDivByConstI(HDiv* instr); 2566 LInstruction* DoDivByConstI(HDiv* instr);
2545 LInstruction* DoDivI(HDiv* instr); 2567 LInstruction* DoDivI(HDiv* instr);
2546 LInstruction* DoModByPowerOf2I(HMod* instr); 2568 LInstruction* DoModByPowerOf2I(HMod* instr);
2547 LInstruction* DoModByConstI(HMod* instr); 2569 LInstruction* DoModByConstI(HMod* instr);
2548 LInstruction* DoModI(HMod* instr); 2570 LInstruction* DoModI(HMod* instr);
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
2644 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2666 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2645 }; 2667 };
2646 2668
2647 #undef DECLARE_HYDROGEN_ACCESSOR 2669 #undef DECLARE_HYDROGEN_ACCESSOR
2648 #undef DECLARE_CONCRETE_INSTRUCTION 2670 #undef DECLARE_CONCRETE_INSTRUCTION
2649 2671
2650 } // namespace internal 2672 } // namespace internal
2651 } // namespace v8 2673 } // namespace v8
2652 2674
2653 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ 2675 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/crankshaft/mips64/lithium-codegen-mips64.cc ('k') | src/crankshaft/mips64/lithium-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698