| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 V(CompareMap) \ | 94 V(CompareMap) \ |
| 95 V(CompareSymbolEq) \ | 95 V(CompareSymbolEq) \ |
| 96 V(Constant) \ | 96 V(Constant) \ |
| 97 V(Context) \ | 97 V(Context) \ |
| 98 V(DeleteProperty) \ | 98 V(DeleteProperty) \ |
| 99 V(Deoptimize) \ | 99 V(Deoptimize) \ |
| 100 V(Div) \ | 100 V(Div) \ |
| 101 V(EnterInlined) \ | 101 V(EnterInlined) \ |
| 102 V(ExternalArrayLength) \ | 102 V(ExternalArrayLength) \ |
| 103 V(FixedArrayLength) \ | 103 V(FixedArrayLength) \ |
| 104 V(ToInt32) \ | |
| 105 V(ForceRepresentation) \ | 104 V(ForceRepresentation) \ |
| 106 V(FunctionLiteral) \ | 105 V(FunctionLiteral) \ |
| 107 V(GetCachedArrayIndex) \ | 106 V(GetCachedArrayIndex) \ |
| 108 V(GlobalObject) \ | 107 V(GlobalObject) \ |
| 109 V(GlobalReceiver) \ | 108 V(GlobalReceiver) \ |
| 110 V(Goto) \ | 109 V(Goto) \ |
| 110 V(HasCachedArrayIndex) \ |
| 111 V(HasInstanceType) \ | 111 V(HasInstanceType) \ |
| 112 V(HasCachedArrayIndex) \ | |
| 113 V(In) \ | 112 V(In) \ |
| 114 V(InstanceOf) \ | 113 V(InstanceOf) \ |
| 115 V(InstanceOfKnownGlobal) \ | 114 V(InstanceOfKnownGlobal) \ |
| 116 V(InvokeFunction) \ | 115 V(InvokeFunction) \ |
| 117 V(IsConstructCall) \ | 116 V(IsConstructCall) \ |
| 118 V(IsNull) \ | 117 V(IsNull) \ |
| 119 V(IsObject) \ | 118 V(IsObject) \ |
| 120 V(IsSmi) \ | 119 V(IsSmi) \ |
| 121 V(IsUndetectable) \ | 120 V(IsUndetectable) \ |
| 122 V(JSArrayLength) \ | 121 V(JSArrayLength) \ |
| (...skipping 22 matching lines...) Expand all Loading... |
| 145 V(Return) \ | 144 V(Return) \ |
| 146 V(Sar) \ | 145 V(Sar) \ |
| 147 V(Shl) \ | 146 V(Shl) \ |
| 148 V(Shr) \ | 147 V(Shr) \ |
| 149 V(Simulate) \ | 148 V(Simulate) \ |
| 150 V(StackCheck) \ | 149 V(StackCheck) \ |
| 151 V(StoreContextSlot) \ | 150 V(StoreContextSlot) \ |
| 152 V(StoreGlobalCell) \ | 151 V(StoreGlobalCell) \ |
| 153 V(StoreGlobalGeneric) \ | 152 V(StoreGlobalGeneric) \ |
| 154 V(StoreKeyedFastElement) \ | 153 V(StoreKeyedFastElement) \ |
| 154 V(StoreKeyedGeneric) \ |
| 155 V(StoreKeyedSpecializedArrayElement) \ | 155 V(StoreKeyedSpecializedArrayElement) \ |
| 156 V(StoreKeyedGeneric) \ | |
| 157 V(StoreNamedField) \ | 156 V(StoreNamedField) \ |
| 158 V(StoreNamedGeneric) \ | 157 V(StoreNamedGeneric) \ |
| 159 V(StringAdd) \ | 158 V(StringAdd) \ |
| 160 V(StringCharCodeAt) \ | 159 V(StringCharCodeAt) \ |
| 161 V(StringCharFromCode) \ | 160 V(StringCharFromCode) \ |
| 162 V(StringLength) \ | 161 V(StringLength) \ |
| 163 V(Sub) \ | 162 V(Sub) \ |
| 164 V(Test) \ | 163 V(Test) \ |
| 164 V(ThisFunction) \ |
| 165 V(Throw) \ | 165 V(Throw) \ |
| 166 V(ToFastProperties) \ | 166 V(ToFastProperties) \ |
| 167 V(ToInt32) \ |
| 167 V(Typeof) \ | 168 V(Typeof) \ |
| 168 V(TypeofIs) \ | 169 V(TypeofIs) \ |
| 169 V(UnaryMathOperation) \ | 170 V(UnaryMathOperation) \ |
| 170 V(UnknownOSRValue) \ | 171 V(UnknownOSRValue) \ |
| 171 V(UseConst) \ | 172 V(UseConst) \ |
| 172 V(ValueOf) | 173 V(ValueOf) |
| 173 | 174 |
| 174 #define GVN_FLAG_LIST(V) \ | 175 #define GVN_FLAG_LIST(V) \ |
| 175 V(Calls) \ | 176 V(Calls) \ |
| 176 V(InobjectFields) \ | 177 V(InobjectFields) \ |
| (...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1295 virtual Representation RequiredInputRepresentation(int index) const { | 1296 virtual Representation RequiredInputRepresentation(int index) const { |
| 1296 return Representation::Tagged(); | 1297 return Representation::Tagged(); |
| 1297 } | 1298 } |
| 1298 | 1299 |
| 1299 HValue* argument() { return OperandAt(0); } | 1300 HValue* argument() { return OperandAt(0); } |
| 1300 | 1301 |
| 1301 DECLARE_CONCRETE_INSTRUCTION(PushArgument) | 1302 DECLARE_CONCRETE_INSTRUCTION(PushArgument) |
| 1302 }; | 1303 }; |
| 1303 | 1304 |
| 1304 | 1305 |
| 1306 class HThisFunction: public HTemplateInstruction<0> { |
| 1307 public: |
| 1308 HThisFunction() { |
| 1309 set_representation(Representation::Tagged()); |
| 1310 SetFlag(kUseGVN); |
| 1311 } |
| 1312 |
| 1313 virtual Representation RequiredInputRepresentation(int index) const { |
| 1314 return Representation::None(); |
| 1315 } |
| 1316 |
| 1317 DECLARE_CONCRETE_INSTRUCTION(ThisFunction) |
| 1318 |
| 1319 protected: |
| 1320 virtual bool DataEquals(HValue* other) { return true; } |
| 1321 }; |
| 1322 |
| 1323 |
| 1305 class HContext: public HTemplateInstruction<0> { | 1324 class HContext: public HTemplateInstruction<0> { |
| 1306 public: | 1325 public: |
| 1307 HContext() { | 1326 HContext() { |
| 1308 set_representation(Representation::Tagged()); | 1327 set_representation(Representation::Tagged()); |
| 1309 SetFlag(kUseGVN); | 1328 SetFlag(kUseGVN); |
| 1310 } | 1329 } |
| 1311 | 1330 |
| 1312 virtual Representation RequiredInputRepresentation(int index) const { | 1331 virtual Representation RequiredInputRepresentation(int index) const { |
| 1313 return Representation::None(); | 1332 return Representation::None(); |
| 1314 } | 1333 } |
| 1315 | 1334 |
| 1316 DECLARE_CONCRETE_INSTRUCTION(Context); | 1335 DECLARE_CONCRETE_INSTRUCTION(Context) |
| 1317 | 1336 |
| 1318 protected: | 1337 protected: |
| 1319 virtual bool DataEquals(HValue* other) { return true; } | 1338 virtual bool DataEquals(HValue* other) { return true; } |
| 1320 }; | 1339 }; |
| 1321 | 1340 |
| 1322 | 1341 |
| 1323 class HOuterContext: public HUnaryOperation { | 1342 class HOuterContext: public HUnaryOperation { |
| 1324 public: | 1343 public: |
| 1325 explicit HOuterContext(HValue* inner) : HUnaryOperation(inner) { | 1344 explicit HOuterContext(HValue* inner) : HUnaryOperation(inner) { |
| 1326 set_representation(Representation::Tagged()); | 1345 set_representation(Representation::Tagged()); |
| (...skipping 2686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4013 | 4032 |
| 4014 DECLARE_CONCRETE_INSTRUCTION(In) | 4033 DECLARE_CONCRETE_INSTRUCTION(In) |
| 4015 }; | 4034 }; |
| 4016 | 4035 |
| 4017 #undef DECLARE_INSTRUCTION | 4036 #undef DECLARE_INSTRUCTION |
| 4018 #undef DECLARE_CONCRETE_INSTRUCTION | 4037 #undef DECLARE_CONCRETE_INSTRUCTION |
| 4019 | 4038 |
| 4020 } } // namespace v8::internal | 4039 } } // namespace v8::internal |
| 4021 | 4040 |
| 4022 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 4041 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |