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 6410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6421 return field_representation(); | 6421 return field_representation(); |
6422 } else if (field_representation().IsExternal()) { | 6422 } else if (field_representation().IsExternal()) { |
6423 return Representation::External(); | 6423 return Representation::External(); |
6424 } | 6424 } |
6425 } | 6425 } |
6426 return Representation::Tagged(); | 6426 return Representation::Tagged(); |
6427 } | 6427 } |
6428 virtual void HandleSideEffectDominator(GVNFlag side_effect, | 6428 virtual void HandleSideEffectDominator(GVNFlag side_effect, |
6429 HValue* dominator) V8_OVERRIDE { | 6429 HValue* dominator) V8_OVERRIDE { |
6430 ASSERT(side_effect == kChangesNewSpacePromotion); | 6430 ASSERT(side_effect == kChangesNewSpacePromotion); |
| 6431 if (!FLAG_use_write_barrier_elimination) return; |
6431 new_space_dominator_ = dominator; | 6432 new_space_dominator_ = dominator; |
6432 } | 6433 } |
6433 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 6434 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
6434 | 6435 |
6435 void SkipWriteBarrier() { write_barrier_mode_ = SKIP_WRITE_BARRIER; } | 6436 void SkipWriteBarrier() { write_barrier_mode_ = SKIP_WRITE_BARRIER; } |
6436 bool IsSkipWriteBarrier() const { | 6437 bool IsSkipWriteBarrier() const { |
6437 return write_barrier_mode_ == SKIP_WRITE_BARRIER; | 6438 return write_barrier_mode_ == SKIP_WRITE_BARRIER; |
6438 } | 6439 } |
6439 | 6440 |
6440 HValue* object() const { return OperandAt(0); } | 6441 HValue* object() const { return OperandAt(0); } |
(...skipping 965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7406 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7407 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
7407 }; | 7408 }; |
7408 | 7409 |
7409 | 7410 |
7410 #undef DECLARE_INSTRUCTION | 7411 #undef DECLARE_INSTRUCTION |
7411 #undef DECLARE_CONCRETE_INSTRUCTION | 7412 #undef DECLARE_CONCRETE_INSTRUCTION |
7412 | 7413 |
7413 } } // namespace v8::internal | 7414 } } // namespace v8::internal |
7414 | 7415 |
7415 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7416 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |