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

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

Issue 2077533002: [builtins] Introduce proper Float64Exp operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Import tests from Raymond. 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_ARM_LITHIUM_ARM_H_ 5 #ifndef V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_
6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ 6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_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 887 matching lines...) Expand 10 before | Expand all | Expand 10 after
898 public: 898 public:
899 explicit LMathClz32(LOperand* value) { 899 explicit LMathClz32(LOperand* value) {
900 inputs_[0] = value; 900 inputs_[0] = value;
901 } 901 }
902 902
903 LOperand* value() { return inputs_[0]; } 903 LOperand* value() { return inputs_[0]; }
904 904
905 DECLARE_CONCRETE_INSTRUCTION(MathClz32, "math-clz32") 905 DECLARE_CONCRETE_INSTRUCTION(MathClz32, "math-clz32")
906 }; 906 };
907 907
908 908 class LMathExp final : public LTemplateInstruction<1, 1, 0> {
909 class LMathExp final : public LTemplateInstruction<1, 1, 3> {
910 public: 909 public:
911 LMathExp(LOperand* value, 910 explicit LMathExp(LOperand* value) { inputs_[0] = value; }
912 LOperand* double_temp,
913 LOperand* temp1,
914 LOperand* temp2) {
915 inputs_[0] = value;
916 temps_[0] = temp1;
917 temps_[1] = temp2;
918 temps_[2] = double_temp;
919 ExternalReference::InitializeMathExpData();
920 }
921 911
922 LOperand* value() { return inputs_[0]; } 912 LOperand* value() { return inputs_[0]; }
923 LOperand* temp1() { return temps_[0]; }
924 LOperand* temp2() { return temps_[1]; }
925 LOperand* double_temp() { return temps_[2]; }
926 913
927 DECLARE_CONCRETE_INSTRUCTION(MathExp, "math-exp") 914 DECLARE_CONCRETE_INSTRUCTION(MathExp, "math-exp")
928 }; 915 };
929 916
930 917
931 class LMathSqrt final : public LTemplateInstruction<1, 1, 0> { 918 class LMathSqrt final : public LTemplateInstruction<1, 1, 0> {
932 public: 919 public:
933 explicit LMathSqrt(LOperand* value) { 920 explicit LMathSqrt(LOperand* value) {
934 inputs_[0] = value; 921 inputs_[0] = value;
935 } 922 }
(...skipping 1716 matching lines...) Expand 10 before | Expand all | Expand 10 after
2652 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2639 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2653 }; 2640 };
2654 2641
2655 #undef DECLARE_HYDROGEN_ACCESSOR 2642 #undef DECLARE_HYDROGEN_ACCESSOR
2656 #undef DECLARE_CONCRETE_INSTRUCTION 2643 #undef DECLARE_CONCRETE_INSTRUCTION
2657 2644
2658 } // namespace internal 2645 } // namespace internal
2659 } // namespace v8 2646 } // namespace v8
2660 2647
2661 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ 2648 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698