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

Side by Side Diff: src/crankshaft/x64/lithium-x64.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_X64_LITHIUM_X64_H_ 5 #ifndef V8_CRANKSHAFT_X64_LITHIUM_X64_H_
6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_H_ 6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_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 891 matching lines...) Expand 10 before | Expand all | Expand 10 after
902 public: 902 public:
903 explicit LMathClz32(LOperand* value) { 903 explicit LMathClz32(LOperand* value) {
904 inputs_[0] = value; 904 inputs_[0] = value;
905 } 905 }
906 906
907 LOperand* value() { return inputs_[0]; } 907 LOperand* value() { return inputs_[0]; }
908 908
909 DECLARE_CONCRETE_INSTRUCTION(MathClz32, "math-clz32") 909 DECLARE_CONCRETE_INSTRUCTION(MathClz32, "math-clz32")
910 }; 910 };
911 911
912 912 class LMathExp final : public LTemplateInstruction<1, 1, 0> {
913 class LMathExp final : public LTemplateInstruction<1, 1, 2> {
914 public: 913 public:
915 LMathExp(LOperand* value, LOperand* temp1, LOperand* temp2) { 914 explicit LMathExp(LOperand* value) { inputs_[0] = value; }
916 inputs_[0] = value;
917 temps_[0] = temp1;
918 temps_[1] = temp2;
919 ExternalReference::InitializeMathExpData();
920 }
921 915
922 LOperand* value() { return inputs_[0]; } 916 LOperand* value() { return inputs_[0]; }
923 LOperand* temp1() { return temps_[0]; }
924 LOperand* temp2() { return temps_[1]; }
925 917
926 DECLARE_CONCRETE_INSTRUCTION(MathExp, "math-exp") 918 DECLARE_CONCRETE_INSTRUCTION(MathExp, "math-exp")
927 }; 919 };
928 920
929 921
930 class LMathSqrt final : public LTemplateInstruction<1, 1, 0> { 922 class LMathSqrt final : public LTemplateInstruction<1, 1, 0> {
931 public: 923 public:
932 explicit LMathSqrt(LOperand* value) { 924 explicit LMathSqrt(LOperand* value) {
933 inputs_[0] = value; 925 inputs_[0] = value;
934 } 926 }
(...skipping 1719 matching lines...) Expand 10 before | Expand all | Expand 10 after
2654 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2646 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2655 }; 2647 };
2656 2648
2657 #undef DECLARE_HYDROGEN_ACCESSOR 2649 #undef DECLARE_HYDROGEN_ACCESSOR
2658 #undef DECLARE_CONCRETE_INSTRUCTION 2650 #undef DECLARE_CONCRETE_INSTRUCTION
2659 2651
2660 } // namespace internal 2652 } // namespace internal
2661 } // namespace v8 2653 } // namespace v8
2662 2654
2663 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ 2655 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698