| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 V(LoadKeyedGeneric) \ | 142 V(LoadKeyedGeneric) \ |
| 143 V(LoadNamedField) \ | 143 V(LoadNamedField) \ |
| 144 V(LoadNamedGeneric) \ | 144 V(LoadNamedGeneric) \ |
| 145 V(LoadRoot) \ | 145 V(LoadRoot) \ |
| 146 V(MapEnumLength) \ | 146 V(MapEnumLength) \ |
| 147 V(MathFloorOfDiv) \ | 147 V(MathFloorOfDiv) \ |
| 148 V(MathMinMax) \ | 148 V(MathMinMax) \ |
| 149 V(Mod) \ | 149 V(Mod) \ |
| 150 V(Mul) \ | 150 V(Mul) \ |
| 151 V(OsrEntry) \ | 151 V(OsrEntry) \ |
| 152 V(OuterContext) \ | |
| 153 V(Parameter) \ | 152 V(Parameter) \ |
| 154 V(Power) \ | 153 V(Power) \ |
| 155 V(PushArgument) \ | 154 V(PushArgument) \ |
| 156 V(RegExpLiteral) \ | 155 V(RegExpLiteral) \ |
| 157 V(Return) \ | 156 V(Return) \ |
| 158 V(Ror) \ | 157 V(Ror) \ |
| 159 V(Sar) \ | 158 V(Sar) \ |
| 160 V(SeqStringGetChar) \ | 159 V(SeqStringGetChar) \ |
| 161 V(SeqStringSetChar) \ | 160 V(SeqStringSetChar) \ |
| 162 V(Shl) \ | 161 V(Shl) \ |
| (...skipping 1956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2119 private: | 2118 private: |
| 2120 HThisFunction() { | 2119 HThisFunction() { |
| 2121 set_representation(Representation::Tagged()); | 2120 set_representation(Representation::Tagged()); |
| 2122 SetFlag(kUseGVN); | 2121 SetFlag(kUseGVN); |
| 2123 } | 2122 } |
| 2124 | 2123 |
| 2125 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 2124 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
| 2126 }; | 2125 }; |
| 2127 | 2126 |
| 2128 | 2127 |
| 2129 class HOuterContext V8_FINAL : public HUnaryOperation { | |
| 2130 public: | |
| 2131 DECLARE_INSTRUCTION_FACTORY_P1(HOuterContext, HValue*); | |
| 2132 | |
| 2133 DECLARE_CONCRETE_INSTRUCTION(OuterContext); | |
| 2134 | |
| 2135 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { | |
| 2136 return Representation::Tagged(); | |
| 2137 } | |
| 2138 | |
| 2139 protected: | |
| 2140 virtual bool DataEquals(HValue* other) V8_OVERRIDE { return true; } | |
| 2141 | |
| 2142 private: | |
| 2143 explicit HOuterContext(HValue* inner) : HUnaryOperation(inner) { | |
| 2144 set_representation(Representation::Tagged()); | |
| 2145 SetFlag(kUseGVN); | |
| 2146 } | |
| 2147 | |
| 2148 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | |
| 2149 }; | |
| 2150 | |
| 2151 | |
| 2152 class HDeclareGlobals V8_FINAL : public HUnaryOperation { | 2128 class HDeclareGlobals V8_FINAL : public HUnaryOperation { |
| 2153 public: | 2129 public: |
| 2154 DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P2(HDeclareGlobals, | 2130 DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P2(HDeclareGlobals, |
| 2155 Handle<FixedArray>, | 2131 Handle<FixedArray>, |
| 2156 int); | 2132 int); |
| 2157 | 2133 |
| 2158 HValue* context() { return OperandAt(0); } | 2134 HValue* context() { return OperandAt(0); } |
| 2159 Handle<FixedArray> pairs() const { return pairs_; } | 2135 Handle<FixedArray> pairs() const { return pairs_; } |
| 2160 int flags() const { return flags_; } | 2136 int flags() const { return flags_; } |
| 2161 | 2137 |
| (...skipping 5391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7553 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7529 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
| 7554 }; | 7530 }; |
| 7555 | 7531 |
| 7556 | 7532 |
| 7557 #undef DECLARE_INSTRUCTION | 7533 #undef DECLARE_INSTRUCTION |
| 7558 #undef DECLARE_CONCRETE_INSTRUCTION | 7534 #undef DECLARE_CONCRETE_INSTRUCTION |
| 7559 | 7535 |
| 7560 } } // namespace v8::internal | 7536 } } // namespace v8::internal |
| 7561 | 7537 |
| 7562 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7538 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |