| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 V(CmpT) \ | 85 V(CmpT) \ |
| 86 V(ConstantD) \ | 86 V(ConstantD) \ |
| 87 V(ConstantI) \ | 87 V(ConstantI) \ |
| 88 V(ConstantT) \ | 88 V(ConstantT) \ |
| 89 V(Context) \ | 89 V(Context) \ |
| 90 V(DeleteProperty) \ | 90 V(DeleteProperty) \ |
| 91 V(Deoptimize) \ | 91 V(Deoptimize) \ |
| 92 V(DivI) \ | 92 V(DivI) \ |
| 93 V(DoubleToI) \ | 93 V(DoubleToI) \ |
| 94 V(ElementsKind) \ | 94 V(ElementsKind) \ |
| 95 V(ExternalArrayLength) \ | 95 V(FixedArrayBaseLength) \ |
| 96 V(FixedArrayLength) \ | |
| 97 V(FunctionLiteral) \ | 96 V(FunctionLiteral) \ |
| 98 V(GetCachedArrayIndex) \ | 97 V(GetCachedArrayIndex) \ |
| 99 V(GlobalObject) \ | 98 V(GlobalObject) \ |
| 100 V(GlobalReceiver) \ | 99 V(GlobalReceiver) \ |
| 101 V(Goto) \ | 100 V(Goto) \ |
| 102 V(HasCachedArrayIndexAndBranch) \ | 101 V(HasCachedArrayIndexAndBranch) \ |
| 103 V(HasInstanceTypeAndBranch) \ | 102 V(HasInstanceTypeAndBranch) \ |
| 104 V(In) \ | 103 V(In) \ |
| 105 V(InstanceOf) \ | 104 V(InstanceOf) \ |
| 106 V(InstanceOfKnownGlobal) \ | 105 V(InstanceOfKnownGlobal) \ |
| (...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 906 public: | 905 public: |
| 907 explicit LJSArrayLength(LOperand* value) { | 906 explicit LJSArrayLength(LOperand* value) { |
| 908 inputs_[0] = value; | 907 inputs_[0] = value; |
| 909 } | 908 } |
| 910 | 909 |
| 911 DECLARE_CONCRETE_INSTRUCTION(JSArrayLength, "js-array-length") | 910 DECLARE_CONCRETE_INSTRUCTION(JSArrayLength, "js-array-length") |
| 912 DECLARE_HYDROGEN_ACCESSOR(JSArrayLength) | 911 DECLARE_HYDROGEN_ACCESSOR(JSArrayLength) |
| 913 }; | 912 }; |
| 914 | 913 |
| 915 | 914 |
| 916 class LExternalArrayLength: public LTemplateInstruction<1, 1, 0> { | 915 class LFixedArrayBaseLength: public LTemplateInstruction<1, 1, 0> { |
| 917 public: | 916 public: |
| 918 explicit LExternalArrayLength(LOperand* value) { | 917 explicit LFixedArrayBaseLength(LOperand* value) { |
| 919 inputs_[0] = value; | 918 inputs_[0] = value; |
| 920 } | 919 } |
| 921 | 920 |
| 922 DECLARE_CONCRETE_INSTRUCTION(ExternalArrayLength, "external-array-length") | 921 DECLARE_CONCRETE_INSTRUCTION(FixedArrayBaseLength, |
| 923 DECLARE_HYDROGEN_ACCESSOR(ExternalArrayLength) | 922 "fixed-array-base-length") |
| 924 }; | 923 DECLARE_HYDROGEN_ACCESSOR(FixedArrayBaseLength) |
| 925 | |
| 926 | |
| 927 class LFixedArrayLength: public LTemplateInstruction<1, 1, 0> { | |
| 928 public: | |
| 929 explicit LFixedArrayLength(LOperand* value) { | |
| 930 inputs_[0] = value; | |
| 931 } | |
| 932 | |
| 933 DECLARE_CONCRETE_INSTRUCTION(FixedArrayLength, "fixed-array-length") | |
| 934 DECLARE_HYDROGEN_ACCESSOR(FixedArrayLength) | |
| 935 }; | 924 }; |
| 936 | 925 |
| 937 | 926 |
| 938 class LElementsKind: public LTemplateInstruction<1, 1, 0> { | 927 class LElementsKind: public LTemplateInstruction<1, 1, 0> { |
| 939 public: | 928 public: |
| 940 explicit LElementsKind(LOperand* value) { | 929 explicit LElementsKind(LOperand* value) { |
| 941 inputs_[0] = value; | 930 inputs_[0] = value; |
| 942 } | 931 } |
| 943 | 932 |
| 944 DECLARE_CONCRETE_INSTRUCTION(ElementsKind, "elements-kind") | 933 DECLARE_CONCRETE_INSTRUCTION(ElementsKind, "elements-kind") |
| (...skipping 1184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2129 LInstruction* DefineAsSpilled(LTemplateInstruction<1, I, T>* instr, | 2118 LInstruction* DefineAsSpilled(LTemplateInstruction<1, I, T>* instr, |
| 2130 int index); | 2119 int index); |
| 2131 template<int I, int T> | 2120 template<int I, int T> |
| 2132 LInstruction* DefineSameAsFirst(LTemplateInstruction<1, I, T>* instr); | 2121 LInstruction* DefineSameAsFirst(LTemplateInstruction<1, I, T>* instr); |
| 2133 template<int I, int T> | 2122 template<int I, int T> |
| 2134 LInstruction* DefineFixed(LTemplateInstruction<1, I, T>* instr, | 2123 LInstruction* DefineFixed(LTemplateInstruction<1, I, T>* instr, |
| 2135 Register reg); | 2124 Register reg); |
| 2136 template<int I, int T> | 2125 template<int I, int T> |
| 2137 LInstruction* DefineFixedDouble(LTemplateInstruction<1, I, T>* instr, | 2126 LInstruction* DefineFixedDouble(LTemplateInstruction<1, I, T>* instr, |
| 2138 XMMRegister reg); | 2127 XMMRegister reg); |
| 2128 // Assigns an environment to an instruction. An instruction which can |
| 2129 // deoptimize must have an environment. |
| 2139 LInstruction* AssignEnvironment(LInstruction* instr); | 2130 LInstruction* AssignEnvironment(LInstruction* instr); |
| 2131 // Assigns a pointer map to an instruction. An instruction which can |
| 2132 // trigger a GC or a lazy deoptimization must have a pointer map. |
| 2140 LInstruction* AssignPointerMap(LInstruction* instr); | 2133 LInstruction* AssignPointerMap(LInstruction* instr); |
| 2141 | 2134 |
| 2142 enum CanDeoptimize { CAN_DEOPTIMIZE_EAGERLY, CANNOT_DEOPTIMIZE_EAGERLY }; | 2135 enum CanDeoptimize { CAN_DEOPTIMIZE_EAGERLY, CANNOT_DEOPTIMIZE_EAGERLY }; |
| 2143 | 2136 |
| 2144 // By default we assume that instruction sequences generated for calls | 2137 // Marks a call for the register allocator. Assigns a pointer map to |
| 2145 // cannot deoptimize eagerly and we do not attach environment to this | 2138 // support GC and lazy deoptimization. Assigns an environment to support |
| 2146 // instruction. | 2139 // eager deoptimization if CAN_DEOPTIMIZE_EAGERLY. |
| 2147 LInstruction* MarkAsCall( | 2140 LInstruction* MarkAsCall( |
| 2148 LInstruction* instr, | 2141 LInstruction* instr, |
| 2149 HInstruction* hinstr, | 2142 HInstruction* hinstr, |
| 2150 CanDeoptimize can_deoptimize = CANNOT_DEOPTIMIZE_EAGERLY); | 2143 CanDeoptimize can_deoptimize = CANNOT_DEOPTIMIZE_EAGERLY); |
| 2151 LInstruction* MarkAsSaveDoubles(LInstruction* instr); | 2144 LInstruction* MarkAsSaveDoubles(LInstruction* instr); |
| 2152 | 2145 |
| 2153 LInstruction* SetInstructionPendingDeoptimizationEnvironment( | 2146 LInstruction* SetInstructionPendingDeoptimizationEnvironment( |
| 2154 LInstruction* instr, int ast_id); | 2147 LInstruction* instr, int ast_id); |
| 2155 void ClearInstructionPendingDeoptimizationEnvironment(); | 2148 void ClearInstructionPendingDeoptimizationEnvironment(); |
| 2156 | 2149 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 2181 | 2174 |
| 2182 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2175 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2183 }; | 2176 }; |
| 2184 | 2177 |
| 2185 #undef DECLARE_HYDROGEN_ACCESSOR | 2178 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2186 #undef DECLARE_CONCRETE_INSTRUCTION | 2179 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2187 | 2180 |
| 2188 } } // namespace v8::int | 2181 } } // namespace v8::int |
| 2189 | 2182 |
| 2190 #endif // V8_X64_LITHIUM_X64_H_ | 2183 #endif // V8_X64_LITHIUM_X64_H_ |
| OLD | NEW |