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

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

Issue 1680783002: [intrinsics] Kill the %_IsMinusZero intrinsic. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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/ppc/lithium-codegen-ppc.cc ('k') | src/crankshaft/ppc/lithium-ppc.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC_LITHIUM_PPC_H_ 5 #ifndef V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_
6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ 6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_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 29 matching lines...) Expand all
40 V(CheckInstanceType) \ 40 V(CheckInstanceType) \
41 V(CheckNonSmi) \ 41 V(CheckNonSmi) \
42 V(CheckMaps) \ 42 V(CheckMaps) \
43 V(CheckMapValue) \ 43 V(CheckMapValue) \
44 V(CheckSmi) \ 44 V(CheckSmi) \
45 V(CheckValue) \ 45 V(CheckValue) \
46 V(ClampDToUint8) \ 46 V(ClampDToUint8) \
47 V(ClampIToUint8) \ 47 V(ClampIToUint8) \
48 V(ClampTToUint8) \ 48 V(ClampTToUint8) \
49 V(ClassOfTestAndBranch) \ 49 V(ClassOfTestAndBranch) \
50 V(CompareMinusZeroAndBranch) \
51 V(CompareNumericAndBranch) \ 50 V(CompareNumericAndBranch) \
52 V(CmpObjectEqAndBranch) \ 51 V(CmpObjectEqAndBranch) \
53 V(CmpHoleAndBranch) \ 52 V(CmpHoleAndBranch) \
54 V(CmpMapAndBranch) \ 53 V(CmpMapAndBranch) \
55 V(CmpT) \ 54 V(CmpT) \
56 V(ConstantD) \ 55 V(ConstantD) \
57 V(ConstantE) \ 56 V(ConstantE) \
58 V(ConstantI) \ 57 V(ConstantI) \
59 V(ConstantS) \ 58 V(ConstantS) \
60 V(ConstantT) \ 59 V(ConstantT) \
(...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after
946 public: 945 public:
947 explicit LCmpHoleAndBranch(LOperand* object) { inputs_[0] = object; } 946 explicit LCmpHoleAndBranch(LOperand* object) { inputs_[0] = object; }
948 947
949 LOperand* object() { return inputs_[0]; } 948 LOperand* object() { return inputs_[0]; }
950 949
951 DECLARE_CONCRETE_INSTRUCTION(CmpHoleAndBranch, "cmp-hole-and-branch") 950 DECLARE_CONCRETE_INSTRUCTION(CmpHoleAndBranch, "cmp-hole-and-branch")
952 DECLARE_HYDROGEN_ACCESSOR(CompareHoleAndBranch) 951 DECLARE_HYDROGEN_ACCESSOR(CompareHoleAndBranch)
953 }; 952 };
954 953
955 954
956 class LCompareMinusZeroAndBranch final : public LControlInstruction<1, 1> {
957 public:
958 LCompareMinusZeroAndBranch(LOperand* value, LOperand* temp) {
959 inputs_[0] = value;
960 temps_[0] = temp;
961 }
962
963 LOperand* value() { return inputs_[0]; }
964 LOperand* temp() { return temps_[0]; }
965
966 DECLARE_CONCRETE_INSTRUCTION(CompareMinusZeroAndBranch,
967 "cmp-minus-zero-and-branch")
968 DECLARE_HYDROGEN_ACCESSOR(CompareMinusZeroAndBranch)
969 };
970
971
972 class LIsStringAndBranch final : public LControlInstruction<1, 1> { 955 class LIsStringAndBranch final : public LControlInstruction<1, 1> {
973 public: 956 public:
974 LIsStringAndBranch(LOperand* value, LOperand* temp) { 957 LIsStringAndBranch(LOperand* value, LOperand* temp) {
975 inputs_[0] = value; 958 inputs_[0] = value;
976 temps_[0] = temp; 959 temps_[0] = temp;
977 } 960 }
978 961
979 LOperand* value() { return inputs_[0]; } 962 LOperand* value() { return inputs_[0]; }
980 LOperand* temp() { return temps_[0]; } 963 LOperand* temp() { return temps_[0]; }
981 964
(...skipping 1665 matching lines...) Expand 10 before | Expand all | Expand 10 after
2647 2630
2648 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2631 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2649 }; 2632 };
2650 2633
2651 #undef DECLARE_HYDROGEN_ACCESSOR 2634 #undef DECLARE_HYDROGEN_ACCESSOR
2652 #undef DECLARE_CONCRETE_INSTRUCTION 2635 #undef DECLARE_CONCRETE_INSTRUCTION
2653 } // namespace internal 2636 } // namespace internal
2654 } // namespace v8 2637 } // namespace v8
2655 2638
2656 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ 2639 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_
OLDNEW
« no previous file with comments | « src/crankshaft/ppc/lithium-codegen-ppc.cc ('k') | src/crankshaft/ppc/lithium-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698