| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 V(RSubI) \ | 177 V(RSubI) \ |
| 178 V(TaggedToI) \ | 178 V(TaggedToI) \ |
| 179 V(ThisFunction) \ | 179 V(ThisFunction) \ |
| 180 V(Throw) \ | 180 V(Throw) \ |
| 181 V(ToFastProperties) \ | 181 V(ToFastProperties) \ |
| 182 V(TransitionElementsKind) \ | 182 V(TransitionElementsKind) \ |
| 183 V(TrapAllocationMemento) \ | 183 V(TrapAllocationMemento) \ |
| 184 V(Typeof) \ | 184 V(Typeof) \ |
| 185 V(TypeofIsAndBranch) \ | 185 V(TypeofIsAndBranch) \ |
| 186 V(Uint32ToDouble) \ | 186 V(Uint32ToDouble) \ |
| 187 V(Uint32ToSmi) \ |
| 187 V(UnknownOSRValue) \ | 188 V(UnknownOSRValue) \ |
| 188 V(ValueOf) \ | 189 V(ValueOf) \ |
| 189 V(WrapReceiver) | 190 V(WrapReceiver) |
| 190 | 191 |
| 191 | 192 |
| 192 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ | 193 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ |
| 193 virtual Opcode opcode() const V8_FINAL V8_OVERRIDE { \ | 194 virtual Opcode opcode() const V8_FINAL V8_OVERRIDE { \ |
| 194 return LInstruction::k##type; \ | 195 return LInstruction::k##type; \ |
| 195 } \ | 196 } \ |
| 196 virtual void CompileToNative(LCodeGen* generator) V8_FINAL V8_OVERRIDE; \ | 197 virtual void CompileToNative(LCodeGen* generator) V8_FINAL V8_OVERRIDE; \ |
| (...skipping 1870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2067 explicit LUint32ToDouble(LOperand* value) { | 2068 explicit LUint32ToDouble(LOperand* value) { |
| 2068 inputs_[0] = value; | 2069 inputs_[0] = value; |
| 2069 } | 2070 } |
| 2070 | 2071 |
| 2071 LOperand* value() { return inputs_[0]; } | 2072 LOperand* value() { return inputs_[0]; } |
| 2072 | 2073 |
| 2073 DECLARE_CONCRETE_INSTRUCTION(Uint32ToDouble, "uint32-to-double") | 2074 DECLARE_CONCRETE_INSTRUCTION(Uint32ToDouble, "uint32-to-double") |
| 2074 }; | 2075 }; |
| 2075 | 2076 |
| 2076 | 2077 |
| 2078 class LUint32ToSmi V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
| 2079 public: |
| 2080 explicit LUint32ToSmi(LOperand* value) { |
| 2081 inputs_[0] = value; |
| 2082 } |
| 2083 |
| 2084 LOperand* value() { return inputs_[0]; } |
| 2085 |
| 2086 DECLARE_CONCRETE_INSTRUCTION(Uint32ToSmi, "uint32-to-smi") |
| 2087 DECLARE_HYDROGEN_ACCESSOR(Change) |
| 2088 }; |
| 2089 |
| 2090 |
| 2077 class LNumberTagI V8_FINAL : public LTemplateInstruction<1, 1, 0> { | 2091 class LNumberTagI V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
| 2078 public: | 2092 public: |
| 2079 explicit LNumberTagI(LOperand* value) { | 2093 explicit LNumberTagI(LOperand* value) { |
| 2080 inputs_[0] = value; | 2094 inputs_[0] = value; |
| 2081 } | 2095 } |
| 2082 | 2096 |
| 2083 LOperand* value() { return inputs_[0]; } | 2097 LOperand* value() { return inputs_[0]; } |
| 2084 | 2098 |
| 2085 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i") | 2099 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i") |
| 2086 }; | 2100 }; |
| (...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2886 | 2900 |
| 2887 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2901 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2888 }; | 2902 }; |
| 2889 | 2903 |
| 2890 #undef DECLARE_HYDROGEN_ACCESSOR | 2904 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2891 #undef DECLARE_CONCRETE_INSTRUCTION | 2905 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2892 | 2906 |
| 2893 } } // namespace v8::internal | 2907 } } // namespace v8::internal |
| 2894 | 2908 |
| 2895 #endif // V8_ARM_LITHIUM_ARM_H_ | 2909 #endif // V8_ARM_LITHIUM_ARM_H_ |
| OLD | NEW |