| 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(SubI) \ | 177 V(SubI) \ |
| 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 1901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2098 temps_[0] = temp; | 2099 temps_[0] = temp; |
| 2099 } | 2100 } |
| 2100 | 2101 |
| 2101 LOperand* value() { return inputs_[0]; } | 2102 LOperand* value() { return inputs_[0]; } |
| 2102 LOperand* temp() { return temps_[0]; } | 2103 LOperand* temp() { return temps_[0]; } |
| 2103 | 2104 |
| 2104 DECLARE_CONCRETE_INSTRUCTION(Uint32ToDouble, "uint32-to-double") | 2105 DECLARE_CONCRETE_INSTRUCTION(Uint32ToDouble, "uint32-to-double") |
| 2105 }; | 2106 }; |
| 2106 | 2107 |
| 2107 | 2108 |
| 2109 class LUint32ToSmi V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
| 2110 public: |
| 2111 explicit LUint32ToSmi(LOperand* value) { |
| 2112 inputs_[0] = value; |
| 2113 } |
| 2114 |
| 2115 LOperand* value() { return inputs_[0]; } |
| 2116 |
| 2117 DECLARE_CONCRETE_INSTRUCTION(Uint32ToSmi, "uint32-to-smi") |
| 2118 DECLARE_HYDROGEN_ACCESSOR(Change) |
| 2119 }; |
| 2120 |
| 2121 |
| 2108 class LNumberTagI V8_FINAL : public LTemplateInstruction<1, 1, 0> { | 2122 class LNumberTagI V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
| 2109 public: | 2123 public: |
| 2110 explicit LNumberTagI(LOperand* value) { | 2124 explicit LNumberTagI(LOperand* value) { |
| 2111 inputs_[0] = value; | 2125 inputs_[0] = value; |
| 2112 } | 2126 } |
| 2113 | 2127 |
| 2114 LOperand* value() { return inputs_[0]; } | 2128 LOperand* value() { return inputs_[0]; } |
| 2115 | 2129 |
| 2116 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i") | 2130 DECLARE_CONCRETE_INSTRUCTION(NumberTagI, "number-tag-i") |
| 2117 }; | 2131 }; |
| (...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2927 | 2941 |
| 2928 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2942 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2929 }; | 2943 }; |
| 2930 | 2944 |
| 2931 #undef DECLARE_HYDROGEN_ACCESSOR | 2945 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2932 #undef DECLARE_CONCRETE_INSTRUCTION | 2946 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2933 | 2947 |
| 2934 } } // namespace v8::internal | 2948 } } // namespace v8::internal |
| 2935 | 2949 |
| 2936 #endif // V8_IA32_LITHIUM_IA32_H_ | 2950 #endif // V8_IA32_LITHIUM_IA32_H_ |
| OLD | NEW |