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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
97 V(CompareGeneric) \ | 97 V(CompareGeneric) \ |
98 V(CompareObjectEqAndBranch) \ | 98 V(CompareObjectEqAndBranch) \ |
99 V(CompareMap) \ | 99 V(CompareMap) \ |
100 V(CompareConstantEqAndBranch) \ | 100 V(CompareConstantEqAndBranch) \ |
101 V(Constant) \ | 101 V(Constant) \ |
102 V(Context) \ | 102 V(Context) \ |
103 V(DeclareGlobals) \ | 103 V(DeclareGlobals) \ |
104 V(DeleteProperty) \ | 104 V(DeleteProperty) \ |
105 V(Deoptimize) \ | 105 V(Deoptimize) \ |
106 V(Div) \ | 106 V(Div) \ |
107 V(DummyUse) \ | |
107 V(ElementsKind) \ | 108 V(ElementsKind) \ |
108 V(EnterInlined) \ | 109 V(EnterInlined) \ |
109 V(FastLiteral) \ | 110 V(FastLiteral) \ |
110 V(FixedArrayBaseLength) \ | 111 V(FixedArrayBaseLength) \ |
111 V(ForceRepresentation) \ | 112 V(ForceRepresentation) \ |
112 V(FunctionLiteral) \ | 113 V(FunctionLiteral) \ |
113 V(GetCachedArrayIndex) \ | 114 V(GetCachedArrayIndex) \ |
114 V(GlobalObject) \ | 115 V(GlobalObject) \ |
115 V(GlobalReceiver) \ | 116 V(GlobalReceiver) \ |
116 V(Goto) \ | 117 V(Goto) \ |
(...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1017 class HBlockEntry: public HTemplateInstruction<0> { | 1018 class HBlockEntry: public HTemplateInstruction<0> { |
1018 public: | 1019 public: |
1019 virtual Representation RequiredInputRepresentation(int index) { | 1020 virtual Representation RequiredInputRepresentation(int index) { |
1020 return Representation::None(); | 1021 return Representation::None(); |
1021 } | 1022 } |
1022 | 1023 |
1023 DECLARE_CONCRETE_INSTRUCTION(BlockEntry) | 1024 DECLARE_CONCRETE_INSTRUCTION(BlockEntry) |
1024 }; | 1025 }; |
1025 | 1026 |
1026 | 1027 |
1028 class HDummyUse: public HTemplateInstruction<1> { | |
1029 public: | |
1030 explicit HDummyUse(HValue* value) { | |
1031 SetOperandAt(0, value); | |
1032 set_representation(Representation::Tagged()); | |
danno
2013/01/10 12:30:05
Can you add a comment here that explains why you u
Jakob Kummerow
2013/01/16 11:35:02
Done.
| |
1033 set_type(HType::Smi()); | |
1034 } | |
1035 | |
1036 HValue* value() { return OperandAt(0); } | |
1037 | |
1038 virtual Representation RequiredInputRepresentation(int index) { | |
1039 return Representation::None(); | |
1040 } | |
1041 | |
1042 virtual void PrintDataTo(StringStream* stream); | |
1043 | |
1044 DECLARE_CONCRETE_INSTRUCTION(DummyUse); | |
1045 }; | |
1046 | |
1047 | |
1027 // We insert soft-deoptimize when we hit code with unknown typefeedback, | 1048 // We insert soft-deoptimize when we hit code with unknown typefeedback, |
1028 // so that we get a chance of re-optimizing with useful typefeedback. | 1049 // so that we get a chance of re-optimizing with useful typefeedback. |
1029 // HSoftDeoptimize does not end a basic block as opposed to HDeoptimize. | 1050 // HSoftDeoptimize does not end a basic block as opposed to HDeoptimize. |
1030 class HSoftDeoptimize: public HTemplateInstruction<0> { | 1051 class HSoftDeoptimize: public HTemplateInstruction<0> { |
1031 public: | 1052 public: |
1032 virtual Representation RequiredInputRepresentation(int index) { | 1053 virtual Representation RequiredInputRepresentation(int index) { |
1033 return Representation::None(); | 1054 return Representation::None(); |
1034 } | 1055 } |
1035 | 1056 |
1036 DECLARE_CONCRETE_INSTRUCTION(SoftDeoptimize) | 1057 DECLARE_CONCRETE_INSTRUCTION(SoftDeoptimize) |
(...skipping 4381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5418 virtual bool IsDeletable() const { return true; } | 5439 virtual bool IsDeletable() const { return true; } |
5419 }; | 5440 }; |
5420 | 5441 |
5421 | 5442 |
5422 #undef DECLARE_INSTRUCTION | 5443 #undef DECLARE_INSTRUCTION |
5423 #undef DECLARE_CONCRETE_INSTRUCTION | 5444 #undef DECLARE_CONCRETE_INSTRUCTION |
5424 | 5445 |
5425 } } // namespace v8::internal | 5446 } } // namespace v8::internal |
5426 | 5447 |
5427 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 5448 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |