| 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 4611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4622 CAN_ALLOCATE_IN_NEW_SPACE = 1 << 0, | 4622 CAN_ALLOCATE_IN_NEW_SPACE = 1 << 0, |
| 4623 CAN_ALLOCATE_IN_OLD_DATA_SPACE = 1 << 1, | 4623 CAN_ALLOCATE_IN_OLD_DATA_SPACE = 1 << 1, |
| 4624 CAN_ALLOCATE_IN_OLD_POINTER_SPACE = 1 << 2, | 4624 CAN_ALLOCATE_IN_OLD_POINTER_SPACE = 1 << 2, |
| 4625 ALLOCATE_DOUBLE_ALIGNED = 1 << 3 | 4625 ALLOCATE_DOUBLE_ALIGNED = 1 << 3 |
| 4626 }; | 4626 }; |
| 4627 | 4627 |
| 4628 HAllocate(HValue* context, HValue* size, HType type, Flags flags) | 4628 HAllocate(HValue* context, HValue* size, HType type, Flags flags) |
| 4629 : type_(type), | 4629 : type_(type), |
| 4630 flags_(flags) { | 4630 flags_(flags) { |
| 4631 ASSERT((flags & CAN_ALLOCATE_IN_OLD_DATA_SPACE) == 0); // unimplemented | 4631 ASSERT((flags & CAN_ALLOCATE_IN_OLD_DATA_SPACE) == 0); // unimplemented |
| 4632 ASSERT((flags & CAN_ALLOCATE_IN_OLD_POINTER_SPACE) == 0); // unimplemented | |
| 4633 SetOperandAt(0, context); | 4632 SetOperandAt(0, context); |
| 4634 SetOperandAt(1, size); | 4633 SetOperandAt(1, size); |
| 4635 set_representation(Representation::Tagged()); | 4634 set_representation(Representation::Tagged()); |
| 4636 SetGVNFlag(kChangesNewSpacePromotion); | 4635 SetGVNFlag(kChangesNewSpacePromotion); |
| 4637 } | 4636 } |
| 4638 | 4637 |
| 4639 HValue* context() { return OperandAt(0); } | 4638 HValue* context() { return OperandAt(0); } |
| 4640 HValue* size() { return OperandAt(1); } | 4639 HValue* size() { return OperandAt(1); } |
| 4641 | 4640 |
| 4642 virtual Representation RequiredInputRepresentation(int index) { | 4641 virtual Representation RequiredInputRepresentation(int index) { |
| (...skipping 1524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6167 virtual bool IsDeletable() const { return true; } | 6166 virtual bool IsDeletable() const { return true; } |
| 6168 }; | 6167 }; |
| 6169 | 6168 |
| 6170 | 6169 |
| 6171 #undef DECLARE_INSTRUCTION | 6170 #undef DECLARE_INSTRUCTION |
| 6172 #undef DECLARE_CONCRETE_INSTRUCTION | 6171 #undef DECLARE_CONCRETE_INSTRUCTION |
| 6173 | 6172 |
| 6174 } } // namespace v8::internal | 6173 } } // namespace v8::internal |
| 6175 | 6174 |
| 6176 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6175 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |