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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 V(InstructionGap) \ | 107 V(InstructionGap) \ |
108 V(Integer32ToDouble) \ | 108 V(Integer32ToDouble) \ |
109 V(Uint32ToDouble) \ | 109 V(Uint32ToDouble) \ |
110 V(InvokeFunction) \ | 110 V(InvokeFunction) \ |
111 V(IsConstructCallAndBranch) \ | 111 V(IsConstructCallAndBranch) \ |
112 V(IsNilAndBranch) \ | 112 V(IsNilAndBranch) \ |
113 V(IsObjectAndBranch) \ | 113 V(IsObjectAndBranch) \ |
114 V(IsStringAndBranch) \ | 114 V(IsStringAndBranch) \ |
115 V(IsSmiAndBranch) \ | 115 V(IsSmiAndBranch) \ |
116 V(IsUndetectableAndBranch) \ | 116 V(IsUndetectableAndBranch) \ |
117 V(JSArrayLength) \ | |
118 V(Label) \ | 117 V(Label) \ |
119 V(LazyBailout) \ | 118 V(LazyBailout) \ |
120 V(LoadContextSlot) \ | 119 V(LoadContextSlot) \ |
121 V(LoadElements) \ | 120 V(LoadElements) \ |
122 V(LoadExternalArrayPointer) \ | 121 V(LoadExternalArrayPointer) \ |
123 V(LoadFunctionPrototype) \ | 122 V(LoadFunctionPrototype) \ |
124 V(LoadGlobalCell) \ | 123 V(LoadGlobalCell) \ |
125 V(LoadGlobalGeneric) \ | 124 V(LoadGlobalGeneric) \ |
126 V(LoadKeyed) \ | 125 V(LoadKeyed) \ |
127 V(LoadKeyedGeneric) \ | 126 V(LoadKeyedGeneric) \ |
(...skipping 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1140 Handle<Map> map() const { return hydrogen()->map(); } | 1139 Handle<Map> map() const { return hydrogen()->map(); } |
1141 int true_block_id() const { | 1140 int true_block_id() const { |
1142 return hydrogen()->FirstSuccessor()->block_id(); | 1141 return hydrogen()->FirstSuccessor()->block_id(); |
1143 } | 1142 } |
1144 int false_block_id() const { | 1143 int false_block_id() const { |
1145 return hydrogen()->SecondSuccessor()->block_id(); | 1144 return hydrogen()->SecondSuccessor()->block_id(); |
1146 } | 1145 } |
1147 }; | 1146 }; |
1148 | 1147 |
1149 | 1148 |
1150 class LJSArrayLength: public LTemplateInstruction<1, 1, 0> { | |
1151 public: | |
1152 explicit LJSArrayLength(LOperand* value) { | |
1153 inputs_[0] = value; | |
1154 } | |
1155 | |
1156 LOperand* value() { return inputs_[0]; } | |
1157 | |
1158 DECLARE_CONCRETE_INSTRUCTION(JSArrayLength, "js-array-length") | |
1159 DECLARE_HYDROGEN_ACCESSOR(JSArrayLength) | |
1160 }; | |
1161 | |
1162 | |
1163 class LFixedArrayBaseLength: public LTemplateInstruction<1, 1, 0> { | 1149 class LFixedArrayBaseLength: public LTemplateInstruction<1, 1, 0> { |
1164 public: | 1150 public: |
1165 explicit LFixedArrayBaseLength(LOperand* value) { | 1151 explicit LFixedArrayBaseLength(LOperand* value) { |
1166 inputs_[0] = value; | 1152 inputs_[0] = value; |
1167 } | 1153 } |
1168 | 1154 |
1169 LOperand* value() { return inputs_[0]; } | 1155 LOperand* value() { return inputs_[0]; } |
1170 | 1156 |
1171 DECLARE_CONCRETE_INSTRUCTION(FixedArrayBaseLength, | 1157 DECLARE_CONCRETE_INSTRUCTION(FixedArrayBaseLength, |
1172 "fixed-array-base-length") | 1158 "fixed-array-base-length") |
(...skipping 1684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2857 | 2843 |
2858 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2844 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2859 }; | 2845 }; |
2860 | 2846 |
2861 #undef DECLARE_HYDROGEN_ACCESSOR | 2847 #undef DECLARE_HYDROGEN_ACCESSOR |
2862 #undef DECLARE_CONCRETE_INSTRUCTION | 2848 #undef DECLARE_CONCRETE_INSTRUCTION |
2863 | 2849 |
2864 } } // namespace v8::internal | 2850 } } // namespace v8::internal |
2865 | 2851 |
2866 #endif // V8_IA32_LITHIUM_IA32_H_ | 2852 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |