| 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 V(TaggedToI) \ | 176 V(TaggedToI) \ |
| 177 V(TaggedToINoSSE2) \ | 177 V(TaggedToINoSSE2) \ |
| 178 V(ThisFunction) \ | 178 V(ThisFunction) \ |
| 179 V(Throw) \ | 179 V(Throw) \ |
| 180 V(ToFastProperties) \ | 180 V(ToFastProperties) \ |
| 181 V(TransitionElementsKind) \ | 181 V(TransitionElementsKind) \ |
| 182 V(TrapAllocationMemento) \ | 182 V(TrapAllocationMemento) \ |
| 183 V(Typeof) \ | 183 V(Typeof) \ |
| 184 V(TypeofIsAndBranch) \ | 184 V(TypeofIsAndBranch) \ |
| 185 V(Uint32ToDouble) \ | 185 V(Uint32ToDouble) \ |
| 186 V(Uint32ToSmi) \ |
| 186 V(UnknownOSRValue) \ | 187 V(UnknownOSRValue) \ |
| 187 V(ValueOf) \ | 188 V(ValueOf) \ |
| 188 V(WrapReceiver) | 189 V(WrapReceiver) |
| 189 | 190 |
| 190 | 191 |
| 191 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ | 192 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ |
| 192 virtual Opcode opcode() const { return LInstruction::k##type; } \ | 193 virtual Opcode opcode() const { return LInstruction::k##type; } \ |
| 193 virtual void CompileToNative(LCodeGen* generator); \ | 194 virtual void CompileToNative(LCodeGen* generator); \ |
| 194 virtual const char* Mnemonic() const { return mnemonic; } \ | 195 virtual const char* Mnemonic() const { return mnemonic; } \ |
| 195 static L##type* cast(LInstruction* instr) { \ | 196 static L##type* cast(LInstruction* instr) { \ |
| (...skipping 1847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2043 temps_[0] = temp; | 2044 temps_[0] = temp; |
| 2044 } | 2045 } |
| 2045 | 2046 |
| 2046 LOperand* value() { return inputs_[0]; } | 2047 LOperand* value() { return inputs_[0]; } |
| 2047 LOperand* temp() { return temps_[0]; } | 2048 LOperand* temp() { return temps_[0]; } |
| 2048 | 2049 |
| 2049 DECLARE_CONCRETE_INSTRUCTION(Uint32ToDouble, "uint32-to-double") | 2050 DECLARE_CONCRETE_INSTRUCTION(Uint32ToDouble, "uint32-to-double") |
| 2050 }; | 2051 }; |
| 2051 | 2052 |
| 2052 | 2053 |
| 2054 class LUint32ToSmi: public LTemplateInstruction<1, 1, 0> { |
| 2055 public: |
| 2056 explicit LUint32ToSmi(LOperand* value) { |
| 2057 inputs_[0] = value; |
| 2058 } |
| 2059 |
| 2060 LOperand* value() { return inputs_[0]; } |
| 2061 |
| 2062 DECLARE_CONCRETE_INSTRUCTION(Uint32ToSmi, "uint32-to-smi") |
| 2063 DECLARE_HYDROGEN_ACCESSOR(Change) |
| 2064 }; |
| 2065 |
| 2066 |
| 2053 class LNumberTagI: public LTemplateInstruction<1, 1, 0> { | 2067 class LNumberTagI: public LTemplateInstruction<1, 1, 0> { |
| 2054 public: | 2068 public: |
| 2055 explicit LNumberTagI(LOperand* value) { | 2069 explicit LNumberTagI(LOperand* value) { |
| 2056 inputs_[0] = value; | 2070 inputs_[0] = value; |
| 2057 } | 2071 } |
| 2058 | 2072 |
| 2059 LOperand* value() { return inputs_[0]; } | 2073 LOperand* value() { return inputs_[0]; } |
| 2060 | 2074 |
| 2061 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i") | 2075 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i") |
| 2062 }; | 2076 }; |
| (...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2899 | 2913 |
| 2900 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2914 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2901 }; | 2915 }; |
| 2902 | 2916 |
| 2903 #undef DECLARE_HYDROGEN_ACCESSOR | 2917 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2904 #undef DECLARE_CONCRETE_INSTRUCTION | 2918 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2905 | 2919 |
| 2906 } } // namespace v8::internal | 2920 } } // namespace v8::internal |
| 2907 | 2921 |
| 2908 #endif // V8_IA32_LITHIUM_IA32_H_ | 2922 #endif // V8_IA32_LITHIUM_IA32_H_ |
| OLD | NEW |