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

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

Issue 2096283002: X87: [builtins] Introduce proper Float64Exp operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « src/crankshaft/x87/lithium-codegen-x87.cc ('k') | src/crankshaft/x87/lithium-x87.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_X87_LITHIUM_X87_H_ 5 #ifndef V8_CRANKSHAFT_X87_LITHIUM_X87_H_
6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_H_ 6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_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 886 matching lines...) Expand 10 before | Expand all | Expand 10 after
897 public: 897 public:
898 explicit LMathClz32(LOperand* value) { 898 explicit LMathClz32(LOperand* value) {
899 inputs_[0] = value; 899 inputs_[0] = value;
900 } 900 }
901 901
902 LOperand* value() { return inputs_[0]; } 902 LOperand* value() { return inputs_[0]; }
903 903
904 DECLARE_CONCRETE_INSTRUCTION(MathClz32, "math-clz32") 904 DECLARE_CONCRETE_INSTRUCTION(MathClz32, "math-clz32")
905 }; 905 };
906 906
907 907 class LMathExp final : public LTemplateInstruction<1, 1, 0> {
908 class LMathExp final : public LTemplateInstruction<1, 1, 2> {
909 public: 908 public:
910 LMathExp(LOperand* value, 909 explicit LMathExp(LOperand* value) { inputs_[0] = value; }
911 LOperand* temp1,
912 LOperand* temp2) {
913 inputs_[0] = value;
914 temps_[0] = temp1;
915 temps_[1] = temp2;
916 ExternalReference::InitializeMathExpData();
917 }
918 910
919 LOperand* value() { return inputs_[0]; } 911 LOperand* value() { return inputs_[0]; }
920 LOperand* temp1() { return temps_[0]; }
921 LOperand* temp2() { return temps_[1]; }
922 912
923 DECLARE_CONCRETE_INSTRUCTION(MathExp, "math-exp") 913 DECLARE_CONCRETE_INSTRUCTION(MathExp, "math-exp")
924 }; 914 };
925 915
926 916
927 class LMathSqrt final : public LTemplateInstruction<1, 1, 2> { 917 class LMathSqrt final : public LTemplateInstruction<1, 1, 2> {
928 public: 918 public:
929 explicit LMathSqrt(LOperand* value, 919 explicit LMathSqrt(LOperand* value,
930 LOperand* temp1, 920 LOperand* temp1,
931 LOperand* temp2) { 921 LOperand* temp2) {
(...skipping 1732 matching lines...) Expand 10 before | Expand all | Expand 10 after
2664 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2654 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2665 }; 2655 };
2666 2656
2667 #undef DECLARE_HYDROGEN_ACCESSOR 2657 #undef DECLARE_HYDROGEN_ACCESSOR
2668 #undef DECLARE_CONCRETE_INSTRUCTION 2658 #undef DECLARE_CONCRETE_INSTRUCTION
2669 2659
2670 } // namespace internal 2660 } // namespace internal
2671 } // namespace v8 2661 } // namespace v8
2672 2662
2673 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_ 2663 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_
OLDNEW
« no previous file with comments | « src/crankshaft/x87/lithium-codegen-x87.cc ('k') | src/crankshaft/x87/lithium-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698