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 5102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5113 SetOperandAt(1, size); | 5113 SetOperandAt(1, size); |
5114 set_representation(Representation::Tagged()); | 5114 set_representation(Representation::Tagged()); |
5115 SetFlag(kTrackSideEffectDominators); | 5115 SetFlag(kTrackSideEffectDominators); |
5116 SetGVNFlag(kChangesNewSpacePromotion); | 5116 SetGVNFlag(kChangesNewSpacePromotion); |
5117 SetGVNFlag(kDependsOnNewSpacePromotion); | 5117 SetGVNFlag(kDependsOnNewSpacePromotion); |
5118 flags_ = pretenure_flag == TENURED | 5118 flags_ = pretenure_flag == TENURED |
5119 ? (Heap::TargetSpaceId(instance_type) == OLD_POINTER_SPACE | 5119 ? (Heap::TargetSpaceId(instance_type) == OLD_POINTER_SPACE |
5120 ? ALLOCATE_IN_OLD_POINTER_SPACE : ALLOCATE_IN_OLD_DATA_SPACE) | 5120 ? ALLOCATE_IN_OLD_POINTER_SPACE : ALLOCATE_IN_OLD_DATA_SPACE) |
5121 : ALLOCATE_IN_NEW_SPACE; | 5121 : ALLOCATE_IN_NEW_SPACE; |
5122 if (instance_type == FIXED_DOUBLE_ARRAY_TYPE) { | 5122 if (instance_type == FIXED_DOUBLE_ARRAY_TYPE) { |
5123 flags_ = static_cast<HAllocate::Flags>(flags_ | | 5123 flags_ = static_cast<HAllocate::Flags>(flags_ | ALLOCATE_DOUBLE_ALIGNED); |
5124 ALLOCATE_DOUBLE_ALIGNED); | 5124 } |
5125 // We have to fill the allocated object with one word fillers if we do | |
5126 // not use allocation folding. | |
titzer
2013/08/22 12:32:56
This comment would be a little more useful if it e
| |
5127 if (!FLAG_use_gvn || !FLAG_use_allocation_folding) { | |
5128 flags_ = static_cast<HAllocate::Flags>(flags_ | PREFILL_WITH_FILLER); | |
5125 } | 5129 } |
5126 } | 5130 } |
5127 | 5131 |
5128 Flags flags_; | 5132 Flags flags_; |
5129 Handle<Map> known_initial_map_; | 5133 Handle<Map> known_initial_map_; |
5130 }; | 5134 }; |
5131 | 5135 |
5132 | 5136 |
5133 class HInnerAllocatedObject: public HTemplateInstruction<1> { | 5137 class HInnerAllocatedObject: public HTemplateInstruction<1> { |
5134 public: | 5138 public: |
(...skipping 1653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
6788 virtual bool IsDeletable() const { return true; } | 6792 virtual bool IsDeletable() const { return true; } |
6789 }; | 6793 }; |
6790 | 6794 |
6791 | 6795 |
6792 #undef DECLARE_INSTRUCTION | 6796 #undef DECLARE_INSTRUCTION |
6793 #undef DECLARE_CONCRETE_INSTRUCTION | 6797 #undef DECLARE_CONCRETE_INSTRUCTION |
6794 | 6798 |
6795 } } // namespace v8::internal | 6799 } } // namespace v8::internal |
6796 | 6800 |
6797 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6801 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |