OLD | NEW |
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_S390_LITHIUM_S390_H_ | 5 #ifndef V8_CRANKSHAFT_S390_LITHIUM_S390_H_ |
6 #define V8_CRANKSHAFT_S390_LITHIUM_S390_H_ | 6 #define V8_CRANKSHAFT_S390_LITHIUM_S390_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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 V(FlooringDivByPowerOf2I) \ | 72 V(FlooringDivByPowerOf2I) \ |
73 V(FlooringDivI) \ | 73 V(FlooringDivI) \ |
74 V(ForInCacheArray) \ | 74 V(ForInCacheArray) \ |
75 V(ForInPrepareMap) \ | 75 V(ForInPrepareMap) \ |
76 V(GetCachedArrayIndex) \ | 76 V(GetCachedArrayIndex) \ |
77 V(Goto) \ | 77 V(Goto) \ |
78 V(HasCachedArrayIndexAndBranch) \ | 78 V(HasCachedArrayIndexAndBranch) \ |
79 V(HasInPrototypeChainAndBranch) \ | 79 V(HasInPrototypeChainAndBranch) \ |
80 V(HasInstanceTypeAndBranch) \ | 80 V(HasInstanceTypeAndBranch) \ |
81 V(InnerAllocatedObject) \ | 81 V(InnerAllocatedObject) \ |
82 V(InstanceOf) \ | |
83 V(InstructionGap) \ | 82 V(InstructionGap) \ |
84 V(Integer32ToDouble) \ | 83 V(Integer32ToDouble) \ |
85 V(InvokeFunction) \ | 84 V(InvokeFunction) \ |
86 V(IsStringAndBranch) \ | 85 V(IsStringAndBranch) \ |
87 V(IsSmiAndBranch) \ | 86 V(IsSmiAndBranch) \ |
88 V(IsUndetectableAndBranch) \ | 87 V(IsUndetectableAndBranch) \ |
89 V(Label) \ | 88 V(Label) \ |
90 V(LazyBailout) \ | 89 V(LazyBailout) \ |
91 V(LoadContextSlot) \ | 90 V(LoadContextSlot) \ |
92 V(LoadRoot) \ | 91 V(LoadRoot) \ |
(...skipping 936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1029 LOperand* context() { return inputs_[0]; } | 1028 LOperand* context() { return inputs_[0]; } |
1030 LOperand* left() { return inputs_[1]; } | 1029 LOperand* left() { return inputs_[1]; } |
1031 LOperand* right() { return inputs_[2]; } | 1030 LOperand* right() { return inputs_[2]; } |
1032 | 1031 |
1033 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") | 1032 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") |
1034 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) | 1033 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) |
1035 | 1034 |
1036 Token::Value op() const { return hydrogen()->token(); } | 1035 Token::Value op() const { return hydrogen()->token(); } |
1037 }; | 1036 }; |
1038 | 1037 |
1039 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> { | |
1040 public: | |
1041 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) { | |
1042 inputs_[0] = context; | |
1043 inputs_[1] = left; | |
1044 inputs_[2] = right; | |
1045 } | |
1046 | |
1047 LOperand* context() const { return inputs_[0]; } | |
1048 LOperand* left() const { return inputs_[1]; } | |
1049 LOperand* right() const { return inputs_[2]; } | |
1050 | |
1051 DECLARE_CONCRETE_INSTRUCTION(InstanceOf, "instance-of") | |
1052 }; | |
1053 | |
1054 class LHasInPrototypeChainAndBranch final : public LControlInstruction<2, 0> { | 1038 class LHasInPrototypeChainAndBranch final : public LControlInstruction<2, 0> { |
1055 public: | 1039 public: |
1056 LHasInPrototypeChainAndBranch(LOperand* object, LOperand* prototype) { | 1040 LHasInPrototypeChainAndBranch(LOperand* object, LOperand* prototype) { |
1057 inputs_[0] = object; | 1041 inputs_[0] = object; |
1058 inputs_[1] = prototype; | 1042 inputs_[1] = prototype; |
1059 } | 1043 } |
1060 | 1044 |
1061 LOperand* object() const { return inputs_[0]; } | 1045 LOperand* object() const { return inputs_[0]; } |
1062 LOperand* prototype() const { return inputs_[1]; } | 1046 LOperand* prototype() const { return inputs_[1]; } |
1063 | 1047 |
(...skipping 1358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2422 | 2406 |
2423 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2407 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2424 }; | 2408 }; |
2425 | 2409 |
2426 #undef DECLARE_HYDROGEN_ACCESSOR | 2410 #undef DECLARE_HYDROGEN_ACCESSOR |
2427 #undef DECLARE_CONCRETE_INSTRUCTION | 2411 #undef DECLARE_CONCRETE_INSTRUCTION |
2428 } // namespace internal | 2412 } // namespace internal |
2429 } // namespace v8 | 2413 } // namespace v8 |
2430 | 2414 |
2431 #endif // V8_CRANKSHAFT_S390_LITHIUM_S390_H_ | 2415 #endif // V8_CRANKSHAFT_S390_LITHIUM_S390_H_ |
OLD | NEW |