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 4654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4665 } | 4665 } |
4666 | 4666 |
4667 bool GuaranteedInNewSpace() const { | 4667 bool GuaranteedInNewSpace() const { |
4668 return CanAllocateInNewSpace() && !CanAllocateInOldSpace(); | 4668 return CanAllocateInNewSpace() && !CanAllocateInOldSpace(); |
4669 } | 4669 } |
4670 | 4670 |
4671 bool MustAllocateDoubleAligned() const { | 4671 bool MustAllocateDoubleAligned() const { |
4672 return (flags_ & ALLOCATE_DOUBLE_ALIGNED) != 0; | 4672 return (flags_ & ALLOCATE_DOUBLE_ALIGNED) != 0; |
4673 } | 4673 } |
4674 | 4674 |
| 4675 virtual void PrintDataTo(StringStream* stream); |
| 4676 |
4675 DECLARE_CONCRETE_INSTRUCTION(Allocate) | 4677 DECLARE_CONCRETE_INSTRUCTION(Allocate) |
4676 | 4678 |
4677 private: | 4679 private: |
4678 HType type_; | 4680 HType type_; |
4679 Flags flags_; | 4681 Flags flags_; |
4680 }; | 4682 }; |
4681 | 4683 |
4682 | 4684 |
4683 inline bool StoringValueNeedsWriteBarrier(HValue* value) { | 4685 inline bool StoringValueNeedsWriteBarrier(HValue* value) { |
4684 return !value->type().IsBoolean() | 4686 return !value->type().IsBoolean() |
(...skipping 1478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6163 virtual bool IsDeletable() const { return true; } | 6165 virtual bool IsDeletable() const { return true; } |
6164 }; | 6166 }; |
6165 | 6167 |
6166 | 6168 |
6167 #undef DECLARE_INSTRUCTION | 6169 #undef DECLARE_INSTRUCTION |
6168 #undef DECLARE_CONCRETE_INSTRUCTION | 6170 #undef DECLARE_CONCRETE_INSTRUCTION |
6169 | 6171 |
6170 } } // namespace v8::internal | 6172 } } // namespace v8::internal |
6171 | 6173 |
6172 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6174 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |