| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 V(HasCachedArrayIndexAndBranch) \ | 101 V(HasCachedArrayIndexAndBranch) \ |
| 102 V(HasInstanceType) \ | 102 V(HasInstanceType) \ |
| 103 V(HasInstanceTypeAndBranch) \ | 103 V(HasInstanceTypeAndBranch) \ |
| 104 V(In) \ | 104 V(In) \ |
| 105 V(InstanceOf) \ | 105 V(InstanceOf) \ |
| 106 V(InstanceOfAndBranch) \ | 106 V(InstanceOfAndBranch) \ |
| 107 V(InstanceOfKnownGlobal) \ | 107 V(InstanceOfKnownGlobal) \ |
| 108 V(InstructionGap) \ | 108 V(InstructionGap) \ |
| 109 V(Integer32ToDouble) \ | 109 V(Integer32ToDouble) \ |
| 110 V(InvokeFunction) \ | 110 V(InvokeFunction) \ |
| 111 V(IsConstructCall) \ |
| 112 V(IsConstructCallAndBranch) \ |
| 111 V(IsNull) \ | 113 V(IsNull) \ |
| 112 V(IsNullAndBranch) \ | 114 V(IsNullAndBranch) \ |
| 113 V(IsObject) \ | 115 V(IsObject) \ |
| 114 V(IsObjectAndBranch) \ | 116 V(IsObjectAndBranch) \ |
| 115 V(IsSmi) \ | 117 V(IsSmi) \ |
| 116 V(IsSmiAndBranch) \ | 118 V(IsSmiAndBranch) \ |
| 119 V(IsUndetectable) \ |
| 120 V(IsUndetectableAndBranch) \ |
| 117 V(JSArrayLength) \ | 121 V(JSArrayLength) \ |
| 118 V(Label) \ | 122 V(Label) \ |
| 119 V(LazyBailout) \ | 123 V(LazyBailout) \ |
| 120 V(LoadContextSlot) \ | 124 V(LoadContextSlot) \ |
| 121 V(LoadElements) \ | 125 V(LoadElements) \ |
| 122 V(LoadExternalArrayPointer) \ | 126 V(LoadExternalArrayPointer) \ |
| 123 V(LoadFunctionPrototype) \ | 127 V(LoadFunctionPrototype) \ |
| 124 V(LoadGlobalCell) \ | 128 V(LoadGlobalCell) \ |
| 125 V(LoadGlobalGeneric) \ | 129 V(LoadGlobalGeneric) \ |
| 126 V(LoadKeyedFastElement) \ | 130 V(LoadKeyedFastElement) \ |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 V(StringCharCodeAt) \ | 162 V(StringCharCodeAt) \ |
| 159 V(StringCharFromCode) \ | 163 V(StringCharFromCode) \ |
| 160 V(StringLength) \ | 164 V(StringLength) \ |
| 161 V(SubI) \ | 165 V(SubI) \ |
| 162 V(TaggedToI) \ | 166 V(TaggedToI) \ |
| 163 V(Throw) \ | 167 V(Throw) \ |
| 164 V(ToFastProperties) \ | 168 V(ToFastProperties) \ |
| 165 V(Typeof) \ | 169 V(Typeof) \ |
| 166 V(TypeofIs) \ | 170 V(TypeofIs) \ |
| 167 V(TypeofIsAndBranch) \ | 171 V(TypeofIsAndBranch) \ |
| 168 V(IsConstructCall) \ | |
| 169 V(IsConstructCallAndBranch) \ | |
| 170 V(UnaryMathOperation) \ | 172 V(UnaryMathOperation) \ |
| 171 V(UnknownOSRValue) \ | 173 V(UnknownOSRValue) \ |
| 172 V(ValueOf) | 174 V(ValueOf) |
| 173 | 175 |
| 174 | 176 |
| 175 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ | 177 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ |
| 176 virtual Opcode opcode() const { return LInstruction::k##type; } \ | 178 virtual Opcode opcode() const { return LInstruction::k##type; } \ |
| 177 virtual void CompileToNative(LCodeGen* generator); \ | 179 virtual void CompileToNative(LCodeGen* generator); \ |
| 178 virtual const char* Mnemonic() const { return mnemonic; } \ | 180 virtual const char* Mnemonic() const { return mnemonic; } \ |
| 179 static L##type* cast(LInstruction* instr) { \ | 181 static L##type* cast(LInstruction* instr) { \ |
| (...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 747 explicit LIsSmiAndBranch(LOperand* value) { | 749 explicit LIsSmiAndBranch(LOperand* value) { |
| 748 inputs_[0] = value; | 750 inputs_[0] = value; |
| 749 } | 751 } |
| 750 | 752 |
| 751 DECLARE_CONCRETE_INSTRUCTION(IsSmiAndBranch, "is-smi-and-branch") | 753 DECLARE_CONCRETE_INSTRUCTION(IsSmiAndBranch, "is-smi-and-branch") |
| 752 | 754 |
| 753 virtual void PrintDataTo(StringStream* stream); | 755 virtual void PrintDataTo(StringStream* stream); |
| 754 }; | 756 }; |
| 755 | 757 |
| 756 | 758 |
| 759 class LIsUndetectable: public LTemplateInstruction<1, 1, 0> { |
| 760 public: |
| 761 explicit LIsUndetectable(LOperand* value) { |
| 762 inputs_[0] = value; |
| 763 } |
| 764 |
| 765 DECLARE_CONCRETE_INSTRUCTION(IsUndetectable, "is-undetectable") |
| 766 DECLARE_HYDROGEN_ACCESSOR(IsUndetectable) |
| 767 }; |
| 768 |
| 769 |
| 770 class LIsUndetectableAndBranch: public LControlInstruction<1, 1> { |
| 771 public: |
| 772 explicit LIsUndetectableAndBranch(LOperand* value, LOperand* temp) { |
| 773 inputs_[0] = value; |
| 774 temps_[0] = temp; |
| 775 } |
| 776 |
| 777 DECLARE_CONCRETE_INSTRUCTION(IsUndetectableAndBranch, |
| 778 "is-undetectable-and-branch") |
| 779 |
| 780 virtual void PrintDataTo(StringStream* stream); |
| 781 }; |
| 782 |
| 783 |
| 757 class LHasInstanceType: public LTemplateInstruction<1, 1, 0> { | 784 class LHasInstanceType: public LTemplateInstruction<1, 1, 0> { |
| 758 public: | 785 public: |
| 759 explicit LHasInstanceType(LOperand* value) { | 786 explicit LHasInstanceType(LOperand* value) { |
| 760 inputs_[0] = value; | 787 inputs_[0] = value; |
| 761 } | 788 } |
| 762 | 789 |
| 763 DECLARE_CONCRETE_INSTRUCTION(HasInstanceType, "has-instance-type") | 790 DECLARE_CONCRETE_INSTRUCTION(HasInstanceType, "has-instance-type") |
| 764 DECLARE_HYDROGEN_ACCESSOR(HasInstanceType) | 791 DECLARE_HYDROGEN_ACCESSOR(HasInstanceType) |
| 765 }; | 792 }; |
| 766 | 793 |
| (...skipping 1480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2247 | 2274 |
| 2248 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2275 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2249 }; | 2276 }; |
| 2250 | 2277 |
| 2251 #undef DECLARE_HYDROGEN_ACCESSOR | 2278 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2252 #undef DECLARE_CONCRETE_INSTRUCTION | 2279 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2253 | 2280 |
| 2254 } } // namespace v8::internal | 2281 } } // namespace v8::internal |
| 2255 | 2282 |
| 2256 #endif // V8_ARM_LITHIUM_ARM_H_ | 2283 #endif // V8_ARM_LITHIUM_ARM_H_ |
| OLD | NEW |