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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 V(ThisFunction) \ | 174 V(ThisFunction) \ |
175 V(Throw) \ | 175 V(Throw) \ |
176 V(ToFastProperties) \ | 176 V(ToFastProperties) \ |
177 V(TransitionElementsKind) \ | 177 V(TransitionElementsKind) \ |
178 V(TrapAllocationMemento) \ | 178 V(TrapAllocationMemento) \ |
179 V(Typeof) \ | 179 V(Typeof) \ |
180 V(TypeofIsAndBranch) \ | 180 V(TypeofIsAndBranch) \ |
181 V(UnaryMathOperation) \ | 181 V(UnaryMathOperation) \ |
182 V(UnknownOSRValue) \ | 182 V(UnknownOSRValue) \ |
183 V(UseConst) \ | 183 V(UseConst) \ |
184 V(ValueOf) \ | |
185 V(WrapReceiver) | 184 V(WrapReceiver) |
186 | 185 |
187 #define GVN_TRACKED_FLAG_LIST(V) \ | 186 #define GVN_TRACKED_FLAG_LIST(V) \ |
188 V(Maps) \ | 187 V(Maps) \ |
189 V(NewSpacePromotion) | 188 V(NewSpacePromotion) |
190 | 189 |
191 #define GVN_UNTRACKED_FLAG_LIST(V) \ | 190 #define GVN_UNTRACKED_FLAG_LIST(V) \ |
192 V(ArrayElements) \ | 191 V(ArrayElements) \ |
193 V(ArrayLengths) \ | 192 V(ArrayLengths) \ |
194 V(StringLengths) \ | 193 V(StringLengths) \ |
(...skipping 7003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7198 #ifdef DEBUG | 7197 #ifdef DEBUG |
7199 const Runtime::Function* function = HCallRuntime::cast(value)->function(); | 7198 const Runtime::Function* function = HCallRuntime::cast(value)->function(); |
7200 ASSERT(function->function_id == Runtime::kCreateObjectLiteral); | 7199 ASSERT(function->function_id == Runtime::kCreateObjectLiteral); |
7201 #endif | 7200 #endif |
7202 } | 7201 } |
7203 | 7202 |
7204 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7203 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
7205 }; | 7204 }; |
7206 | 7205 |
7207 | 7206 |
7208 class HValueOf V8_FINAL : public HUnaryOperation { | |
7209 public: | |
7210 DECLARE_INSTRUCTION_FACTORY_P1(HValueOf, HValue*); | |
7211 | |
7212 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { | |
7213 return Representation::Tagged(); | |
7214 } | |
7215 | |
7216 DECLARE_CONCRETE_INSTRUCTION(ValueOf) | |
7217 | |
7218 private: | |
7219 explicit HValueOf(HValue* value) : HUnaryOperation(value) { | |
7220 set_representation(Representation::Tagged()); | |
7221 } | |
7222 | |
7223 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | |
7224 }; | |
7225 | |
7226 | |
7227 class HDateField V8_FINAL : public HUnaryOperation { | 7207 class HDateField V8_FINAL : public HUnaryOperation { |
7228 public: | 7208 public: |
7229 DECLARE_INSTRUCTION_FACTORY_P2(HDateField, HValue*, Smi*); | 7209 DECLARE_INSTRUCTION_FACTORY_P2(HDateField, HValue*, Smi*); |
7230 | 7210 |
7231 Smi* index() const { return index_; } | 7211 Smi* index() const { return index_; } |
7232 | 7212 |
7233 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { | 7213 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { |
7234 return Representation::Tagged(); | 7214 return Representation::Tagged(); |
7235 } | 7215 } |
7236 | 7216 |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7472 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7452 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
7473 }; | 7453 }; |
7474 | 7454 |
7475 | 7455 |
7476 #undef DECLARE_INSTRUCTION | 7456 #undef DECLARE_INSTRUCTION |
7477 #undef DECLARE_CONCRETE_INSTRUCTION | 7457 #undef DECLARE_CONCRETE_INSTRUCTION |
7478 | 7458 |
7479 } } // namespace v8::internal | 7459 } } // namespace v8::internal |
7480 | 7460 |
7481 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7461 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |