| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 V(CallNew) \ | 84 V(CallNew) \ |
| 85 V(CallRuntime) \ | 85 V(CallRuntime) \ |
| 86 V(CallStub) \ | 86 V(CallStub) \ |
| 87 V(Change) \ | 87 V(Change) \ |
| 88 V(CheckFunction) \ | 88 V(CheckFunction) \ |
| 89 V(CheckInstanceType) \ | 89 V(CheckInstanceType) \ |
| 90 V(CheckMap) \ | 90 V(CheckMap) \ |
| 91 V(CheckNonSmi) \ | 91 V(CheckNonSmi) \ |
| 92 V(CheckPrototypeMaps) \ | 92 V(CheckPrototypeMaps) \ |
| 93 V(CheckSmi) \ | 93 V(CheckSmi) \ |
| 94 V(ClassOfTest) \ |
| 94 V(Compare) \ | 95 V(Compare) \ |
| 95 V(CompareJSObjectEq) \ | 96 V(CompareJSObjectEq) \ |
| 96 V(CompareMap) \ | 97 V(CompareMap) \ |
| 97 V(Constant) \ | 98 V(Constant) \ |
| 98 V(Context) \ | 99 V(Context) \ |
| 99 V(DeleteProperty) \ | 100 V(DeleteProperty) \ |
| 100 V(Deoptimize) \ | 101 V(Deoptimize) \ |
| 101 V(Div) \ | 102 V(Div) \ |
| 102 V(EnterInlined) \ | 103 V(EnterInlined) \ |
| 104 V(ExternalArrayLength) \ |
| 103 V(FixedArrayLength) \ | 105 V(FixedArrayLength) \ |
| 104 V(FunctionLiteral) \ | 106 V(FunctionLiteral) \ |
| 105 V(GetCachedArrayIndex) \ | 107 V(GetCachedArrayIndex) \ |
| 106 V(GlobalObject) \ | 108 V(GlobalObject) \ |
| 107 V(GlobalReceiver) \ | 109 V(GlobalReceiver) \ |
| 108 V(Goto) \ | 110 V(Goto) \ |
| 111 V(HasInstanceType) \ |
| 112 V(HasCachedArrayIndex) \ |
| 109 V(InstanceOf) \ | 113 V(InstanceOf) \ |
| 110 V(InstanceOfKnownGlobal) \ | 114 V(InstanceOfKnownGlobal) \ |
| 111 V(IsNull) \ | 115 V(IsNull) \ |
| 112 V(IsObject) \ | 116 V(IsObject) \ |
| 113 V(IsSmi) \ | 117 V(IsSmi) \ |
| 114 V(IsConstructCall) \ | 118 V(IsConstructCall) \ |
| 115 V(HasInstanceType) \ | |
| 116 V(HasCachedArrayIndex) \ | |
| 117 V(JSArrayLength) \ | 119 V(JSArrayLength) \ |
| 118 V(ClassOfTest) \ | |
| 119 V(LeaveInlined) \ | 120 V(LeaveInlined) \ |
| 120 V(LoadContextSlot) \ | 121 V(LoadContextSlot) \ |
| 121 V(LoadElements) \ | 122 V(LoadElements) \ |
| 123 V(LoadExternalArrayPointer) \ |
| 122 V(LoadFunctionPrototype) \ | 124 V(LoadFunctionPrototype) \ |
| 123 V(LoadGlobal) \ | 125 V(LoadGlobal) \ |
| 124 V(LoadKeyedFastElement) \ | 126 V(LoadKeyedFastElement) \ |
| 125 V(LoadKeyedGeneric) \ | 127 V(LoadKeyedGeneric) \ |
| 126 V(LoadNamedField) \ | 128 V(LoadNamedField) \ |
| 127 V(LoadNamedGeneric) \ | 129 V(LoadNamedGeneric) \ |
| 128 V(LoadPixelArrayElement) \ | 130 V(LoadPixelArrayElement) \ |
| 129 V(LoadPixelArrayExternalPointer) \ | |
| 130 V(Mod) \ | 131 V(Mod) \ |
| 131 V(Mul) \ | 132 V(Mul) \ |
| 132 V(ObjectLiteral) \ | 133 V(ObjectLiteral) \ |
| 133 V(OsrEntry) \ | 134 V(OsrEntry) \ |
| 134 V(OuterContext) \ | 135 V(OuterContext) \ |
| 135 V(Parameter) \ | 136 V(Parameter) \ |
| 136 V(PixelArrayLength) \ | |
| 137 V(Power) \ | 137 V(Power) \ |
| 138 V(PushArgument) \ | 138 V(PushArgument) \ |
| 139 V(RegExpLiteral) \ | 139 V(RegExpLiteral) \ |
| 140 V(Return) \ | 140 V(Return) \ |
| 141 V(Sar) \ | 141 V(Sar) \ |
| 142 V(Shl) \ | 142 V(Shl) \ |
| 143 V(Shr) \ | 143 V(Shr) \ |
| 144 V(Simulate) \ | 144 V(Simulate) \ |
| 145 V(StackCheck) \ | 145 V(StackCheck) \ |
| 146 V(StoreContextSlot) \ | 146 V(StoreContextSlot) \ |
| (...skipping 1265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1412 return Representation::Tagged(); | 1412 return Representation::Tagged(); |
| 1413 } | 1413 } |
| 1414 | 1414 |
| 1415 DECLARE_CONCRETE_INSTRUCTION(FixedArrayLength, "fixed_array_length") | 1415 DECLARE_CONCRETE_INSTRUCTION(FixedArrayLength, "fixed_array_length") |
| 1416 | 1416 |
| 1417 protected: | 1417 protected: |
| 1418 virtual bool DataEquals(HValue* other) { return true; } | 1418 virtual bool DataEquals(HValue* other) { return true; } |
| 1419 }; | 1419 }; |
| 1420 | 1420 |
| 1421 | 1421 |
| 1422 class HPixelArrayLength: public HUnaryOperation { | 1422 class HExternalArrayLength: public HUnaryOperation { |
| 1423 public: | 1423 public: |
| 1424 explicit HPixelArrayLength(HValue* value) : HUnaryOperation(value) { | 1424 explicit HExternalArrayLength(HValue* value) : HUnaryOperation(value) { |
| 1425 set_representation(Representation::Integer32()); | 1425 set_representation(Representation::Integer32()); |
| 1426 // The result of this instruction is idempotent as long as its inputs don't | 1426 // The result of this instruction is idempotent as long as its inputs don't |
| 1427 // change. The length of a pixel array cannot change once set, so it's not | 1427 // change. The length of a pixel array cannot change once set, so it's not |
| 1428 // necessary to introduce a kDependsOnArrayLengths or any other dependency. | 1428 // necessary to introduce a kDependsOnArrayLengths or any other dependency. |
| 1429 SetFlag(kUseGVN); | 1429 SetFlag(kUseGVN); |
| 1430 } | 1430 } |
| 1431 | 1431 |
| 1432 virtual Representation RequiredInputRepresentation(int index) const { | 1432 virtual Representation RequiredInputRepresentation(int index) const { |
| 1433 return Representation::Tagged(); | 1433 return Representation::Tagged(); |
| 1434 } | 1434 } |
| 1435 | 1435 |
| 1436 DECLARE_CONCRETE_INSTRUCTION(PixelArrayLength, "pixel_array_length") | 1436 DECLARE_CONCRETE_INSTRUCTION(ExternalArrayLength, "external_array_length") |
| 1437 | 1437 |
| 1438 protected: | 1438 protected: |
| 1439 virtual bool DataEquals(HValue* other) { return true; } | 1439 virtual bool DataEquals(HValue* other) { return true; } |
| 1440 }; | 1440 }; |
| 1441 | 1441 |
| 1442 | 1442 |
| 1443 class HBitNot: public HUnaryOperation { | 1443 class HBitNot: public HUnaryOperation { |
| 1444 public: | 1444 public: |
| 1445 explicit HBitNot(HValue* value) : HUnaryOperation(value) { | 1445 explicit HBitNot(HValue* value) : HUnaryOperation(value) { |
| 1446 set_representation(Representation::Integer32()); | 1446 set_representation(Representation::Integer32()); |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1550 return Representation::Tagged(); | 1550 return Representation::Tagged(); |
| 1551 } | 1551 } |
| 1552 | 1552 |
| 1553 DECLARE_CONCRETE_INSTRUCTION(LoadElements, "load-elements") | 1553 DECLARE_CONCRETE_INSTRUCTION(LoadElements, "load-elements") |
| 1554 | 1554 |
| 1555 protected: | 1555 protected: |
| 1556 virtual bool DataEquals(HValue* other) { return true; } | 1556 virtual bool DataEquals(HValue* other) { return true; } |
| 1557 }; | 1557 }; |
| 1558 | 1558 |
| 1559 | 1559 |
| 1560 class HLoadPixelArrayExternalPointer: public HUnaryOperation { | 1560 class HLoadExternalArrayPointer: public HUnaryOperation { |
| 1561 public: | 1561 public: |
| 1562 explicit HLoadPixelArrayExternalPointer(HValue* value) | 1562 explicit HLoadExternalArrayPointer(HValue* value) |
| 1563 : HUnaryOperation(value) { | 1563 : HUnaryOperation(value) { |
| 1564 set_representation(Representation::External()); | 1564 set_representation(Representation::External()); |
| 1565 // The result of this instruction is idempotent as long as its inputs don't | 1565 // The result of this instruction is idempotent as long as its inputs don't |
| 1566 // change. The external array of a pixel array elements object cannot | 1566 // change. The external array of a pixel array elements object cannot |
| 1567 // change once set, so it's no necessary to introduce any additional | 1567 // change once set, so it's no necessary to introduce any additional |
| 1568 // dependencies on top of the inputs. | 1568 // dependencies on top of the inputs. |
| 1569 SetFlag(kUseGVN); | 1569 SetFlag(kUseGVN); |
| 1570 } | 1570 } |
| 1571 | 1571 |
| 1572 virtual Representation RequiredInputRepresentation(int index) const { | 1572 virtual Representation RequiredInputRepresentation(int index) const { |
| 1573 return Representation::Tagged(); | 1573 return Representation::Tagged(); |
| 1574 } | 1574 } |
| 1575 | 1575 |
| 1576 DECLARE_CONCRETE_INSTRUCTION(LoadPixelArrayExternalPointer, | 1576 DECLARE_CONCRETE_INSTRUCTION(LoadExternalArrayPointer, |
| 1577 "load-pixel-array-external-pointer") | 1577 "load-external-array-pointer") |
| 1578 | 1578 |
| 1579 protected: | 1579 protected: |
| 1580 virtual bool DataEquals(HValue* other) { return true; } | 1580 virtual bool DataEquals(HValue* other) { return true; } |
| 1581 }; | 1581 }; |
| 1582 | 1582 |
| 1583 | 1583 |
| 1584 class HCheckMap: public HUnaryOperation { | 1584 class HCheckMap: public HUnaryOperation { |
| 1585 public: | 1585 public: |
| 1586 HCheckMap(HValue* value, Handle<Map> map) | 1586 HCheckMap(HValue* value, Handle<Map> map) |
| 1587 : HUnaryOperation(value), map_(map) { | 1587 : HUnaryOperation(value), map_(map) { |
| (...skipping 1863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3451 HValue* object() { return left(); } | 3451 HValue* object() { return left(); } |
| 3452 HValue* key() { return right(); } | 3452 HValue* key() { return right(); } |
| 3453 }; | 3453 }; |
| 3454 | 3454 |
| 3455 #undef DECLARE_INSTRUCTION | 3455 #undef DECLARE_INSTRUCTION |
| 3456 #undef DECLARE_CONCRETE_INSTRUCTION | 3456 #undef DECLARE_CONCRETE_INSTRUCTION |
| 3457 | 3457 |
| 3458 } } // namespace v8::internal | 3458 } } // namespace v8::internal |
| 3459 | 3459 |
| 3460 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 3460 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |