OLD | NEW |
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_X87_LITHIUM_X87_H_ | 5 #ifndef V8_X87_LITHIUM_X87_H_ |
6 #define V8_X87_LITHIUM_X87_H_ | 6 #define V8_X87_LITHIUM_X87_H_ |
7 | 7 |
8 #include "src/hydrogen.h" | 8 #include "src/hydrogen.h" |
9 #include "src/lithium.h" | 9 #include "src/lithium.h" |
10 #include "src/lithium-allocator.h" | 10 #include "src/lithium-allocator.h" |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 V(Goto) \ | 89 V(Goto) \ |
90 V(HasCachedArrayIndexAndBranch) \ | 90 V(HasCachedArrayIndexAndBranch) \ |
91 V(HasInstanceTypeAndBranch) \ | 91 V(HasInstanceTypeAndBranch) \ |
92 V(InnerAllocatedObject) \ | 92 V(InnerAllocatedObject) \ |
93 V(InstanceOf) \ | 93 V(InstanceOf) \ |
94 V(InstanceOfKnownGlobal) \ | 94 V(InstanceOfKnownGlobal) \ |
95 V(InstructionGap) \ | 95 V(InstructionGap) \ |
96 V(Integer32ToDouble) \ | 96 V(Integer32ToDouble) \ |
97 V(InvokeFunction) \ | 97 V(InvokeFunction) \ |
98 V(IsConstructCallAndBranch) \ | 98 V(IsConstructCallAndBranch) \ |
99 V(IsObjectAndBranch) \ | |
100 V(IsStringAndBranch) \ | 99 V(IsStringAndBranch) \ |
101 V(IsSmiAndBranch) \ | 100 V(IsSmiAndBranch) \ |
102 V(IsUndetectableAndBranch) \ | 101 V(IsUndetectableAndBranch) \ |
103 V(Label) \ | 102 V(Label) \ |
104 V(LazyBailout) \ | 103 V(LazyBailout) \ |
105 V(LoadContextSlot) \ | 104 V(LoadContextSlot) \ |
106 V(LoadFieldByIndex) \ | 105 V(LoadFieldByIndex) \ |
107 V(LoadFunctionPrototype) \ | 106 V(LoadFunctionPrototype) \ |
108 V(LoadGlobalGeneric) \ | 107 V(LoadGlobalGeneric) \ |
109 V(LoadGlobalViaContext) \ | 108 V(LoadGlobalViaContext) \ |
(...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
999 explicit LCompareMinusZeroAndBranch(LOperand* value) { inputs_[0] = value; } | 998 explicit LCompareMinusZeroAndBranch(LOperand* value) { inputs_[0] = value; } |
1000 | 999 |
1001 LOperand* value() { return inputs_[0]; } | 1000 LOperand* value() { return inputs_[0]; } |
1002 | 1001 |
1003 DECLARE_CONCRETE_INSTRUCTION(CompareMinusZeroAndBranch, | 1002 DECLARE_CONCRETE_INSTRUCTION(CompareMinusZeroAndBranch, |
1004 "cmp-minus-zero-and-branch") | 1003 "cmp-minus-zero-and-branch") |
1005 DECLARE_HYDROGEN_ACCESSOR(CompareMinusZeroAndBranch) | 1004 DECLARE_HYDROGEN_ACCESSOR(CompareMinusZeroAndBranch) |
1006 }; | 1005 }; |
1007 | 1006 |
1008 | 1007 |
1009 class LIsObjectAndBranch final : public LControlInstruction<1, 1> { | |
1010 public: | |
1011 LIsObjectAndBranch(LOperand* value, LOperand* temp) { | |
1012 inputs_[0] = value; | |
1013 temps_[0] = temp; | |
1014 } | |
1015 | |
1016 LOperand* value() { return inputs_[0]; } | |
1017 LOperand* temp() { return temps_[0]; } | |
1018 | |
1019 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") | |
1020 | |
1021 void PrintDataTo(StringStream* stream) override; | |
1022 }; | |
1023 | |
1024 | |
1025 class LIsStringAndBranch final : public LControlInstruction<1, 1> { | 1008 class LIsStringAndBranch final : public LControlInstruction<1, 1> { |
1026 public: | 1009 public: |
1027 LIsStringAndBranch(LOperand* value, LOperand* temp) { | 1010 LIsStringAndBranch(LOperand* value, LOperand* temp) { |
1028 inputs_[0] = value; | 1011 inputs_[0] = value; |
1029 temps_[0] = temp; | 1012 temps_[0] = temp; |
1030 } | 1013 } |
1031 | 1014 |
1032 LOperand* value() { return inputs_[0]; } | 1015 LOperand* value() { return inputs_[0]; } |
1033 LOperand* temp() { return temps_[0]; } | 1016 LOperand* temp() { return temps_[0]; } |
1034 | 1017 |
(...skipping 1893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2928 | 2911 |
2929 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2912 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2930 }; | 2913 }; |
2931 | 2914 |
2932 #undef DECLARE_HYDROGEN_ACCESSOR | 2915 #undef DECLARE_HYDROGEN_ACCESSOR |
2933 #undef DECLARE_CONCRETE_INSTRUCTION | 2916 #undef DECLARE_CONCRETE_INSTRUCTION |
2934 | 2917 |
2935 } } // namespace v8::internal | 2918 } } // namespace v8::internal |
2936 | 2919 |
2937 #endif // V8_X87_LITHIUM_X87_H_ | 2920 #endif // V8_X87_LITHIUM_X87_H_ |
OLD | NEW |