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 3207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3218 | 3218 |
3219 void ReuseSideEffectsFromStore(HInstruction* store) { | 3219 void ReuseSideEffectsFromStore(HInstruction* store) { |
3220 ASSERT(store->HasObservableSideEffects()); | 3220 ASSERT(store->HasObservableSideEffects()); |
3221 ASSERT(store->IsStoreNamedField()); | 3221 ASSERT(store->IsStoreNamedField()); |
3222 gvn_flags_.Add(store->gvn_flags()); | 3222 gvn_flags_.Add(store->gvn_flags()); |
3223 } | 3223 } |
3224 | 3224 |
3225 // Replay effects of this instruction on the given environment. | 3225 // Replay effects of this instruction on the given environment. |
3226 void ReplayEnvironment(HEnvironment* env); | 3226 void ReplayEnvironment(HEnvironment* env); |
3227 | 3227 |
| 3228 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
| 3229 |
3228 DECLARE_CONCRETE_INSTRUCTION(CapturedObject) | 3230 DECLARE_CONCRETE_INSTRUCTION(CapturedObject) |
3229 | 3231 |
3230 private: | 3232 private: |
3231 int capture_id_; | 3233 int capture_id_; |
3232 }; | 3234 }; |
3233 | 3235 |
3234 | 3236 |
3235 class HConstant V8_FINAL : public HTemplateInstruction<0> { | 3237 class HConstant V8_FINAL : public HTemplateInstruction<0> { |
3236 public: | 3238 public: |
3237 DECLARE_INSTRUCTION_FACTORY_P1(HConstant, int32_t); | 3239 DECLARE_INSTRUCTION_FACTORY_P1(HConstant, int32_t); |
(...skipping 3761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6999 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7001 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
7000 }; | 7002 }; |
7001 | 7003 |
7002 | 7004 |
7003 #undef DECLARE_INSTRUCTION | 7005 #undef DECLARE_INSTRUCTION |
7004 #undef DECLARE_CONCRETE_INSTRUCTION | 7006 #undef DECLARE_CONCRETE_INSTRUCTION |
7005 | 7007 |
7006 } } // namespace v8::internal | 7008 } } // namespace v8::internal |
7007 | 7009 |
7008 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7010 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |