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

Side by Side Diff: src/crankshaft/x64/lithium-x64.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/x64/lithium-codegen-x64.cc ('k') | src/crankshaft/x64/lithium-x64.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_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 29 matching lines...) Expand all
40 V(CheckInstanceType) \ 40 V(CheckInstanceType) \
41 V(CheckMaps) \ 41 V(CheckMaps) \
42 V(CheckMapValue) \ 42 V(CheckMapValue) \
43 V(CheckNonSmi) \ 43 V(CheckNonSmi) \
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 899 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 inputs_[0] = object; 959 inputs_[0] = object;
961 } 960 }
962 961
963 LOperand* object() { return inputs_[0]; } 962 LOperand* object() { return inputs_[0]; }
964 963
965 DECLARE_CONCRETE_INSTRUCTION(CmpHoleAndBranch, "cmp-hole-and-branch") 964 DECLARE_CONCRETE_INSTRUCTION(CmpHoleAndBranch, "cmp-hole-and-branch")
966 DECLARE_HYDROGEN_ACCESSOR(CompareHoleAndBranch) 965 DECLARE_HYDROGEN_ACCESSOR(CompareHoleAndBranch)
967 }; 966 };
968 967
969 968
970 class LCompareMinusZeroAndBranch final : public LControlInstruction<1, 0> {
971 public:
972 explicit LCompareMinusZeroAndBranch(LOperand* value) {
973 inputs_[0] = value;
974 }
975
976 LOperand* value() { return inputs_[0]; }
977
978 DECLARE_CONCRETE_INSTRUCTION(CompareMinusZeroAndBranch,
979 "cmp-minus-zero-and-branch")
980 DECLARE_HYDROGEN_ACCESSOR(CompareMinusZeroAndBranch)
981 };
982
983
984 class LIsStringAndBranch final : public LControlInstruction<1, 1> { 969 class LIsStringAndBranch final : public LControlInstruction<1, 1> {
985 public: 970 public:
986 explicit LIsStringAndBranch(LOperand* value, LOperand* temp) { 971 explicit LIsStringAndBranch(LOperand* value, LOperand* temp) {
987 inputs_[0] = value; 972 inputs_[0] = value;
988 temps_[0] = temp; 973 temps_[0] = temp;
989 } 974 }
990 975
991 LOperand* value() { return inputs_[0]; } 976 LOperand* value() { return inputs_[0]; }
992 LOperand* temp() { return temps_[0]; } 977 LOperand* temp() { return temps_[0]; }
993 978
(...skipping 1752 matching lines...) Expand 10 before | Expand all | Expand 10 after
2746 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2731 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2747 }; 2732 };
2748 2733
2749 #undef DECLARE_HYDROGEN_ACCESSOR 2734 #undef DECLARE_HYDROGEN_ACCESSOR
2750 #undef DECLARE_CONCRETE_INSTRUCTION 2735 #undef DECLARE_CONCRETE_INSTRUCTION
2751 2736
2752 } // namespace internal 2737 } // namespace internal
2753 } // namespace v8 2738 } // namespace v8
2754 2739
2755 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ 2740 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/crankshaft/x64/lithium-codegen-x64.cc ('k') | src/crankshaft/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698