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 3155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3166 if (!input_rep.IsTagged()) rep = rep.generalize(input_rep); | 3166 if (!input_rep.IsTagged()) rep = rep.generalize(input_rep); |
3167 return rep; | 3167 return rep; |
3168 } | 3168 } |
3169 | 3169 |
3170 | 3170 |
3171 HType HStringCharFromCode::CalculateInferredType() { | 3171 HType HStringCharFromCode::CalculateInferredType() { |
3172 return HType::String(); | 3172 return HType::String(); |
3173 } | 3173 } |
3174 | 3174 |
3175 | 3175 |
3176 HType HAllocateObject::CalculateInferredType() { | |
3177 return HType::JSObject(); | |
3178 } | |
3179 | |
3180 | |
3181 HType HAllocate::CalculateInferredType() { | 3176 HType HAllocate::CalculateInferredType() { |
3182 return type_; | 3177 return type_; |
3183 } | 3178 } |
3184 | 3179 |
3185 | 3180 |
3186 void HAllocate::HandleSideEffectDominator(GVNFlag side_effect, | 3181 void HAllocate::HandleSideEffectDominator(GVNFlag side_effect, |
3187 HValue* dominator) { | 3182 HValue* dominator) { |
3188 ASSERT(side_effect == kChangesNewSpacePromotion); | 3183 ASSERT(side_effect == kChangesNewSpacePromotion); |
3189 // Try to fold allocations together with their dominating allocations. | 3184 // Try to fold allocations together with their dominating allocations. |
3190 if (!FLAG_use_allocation_folding || !dominator->IsAllocate()) { | 3185 if (!FLAG_use_allocation_folding || !dominator->IsAllocate()) { |
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3974 case kBackingStore: | 3969 case kBackingStore: |
3975 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString()); | 3970 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString()); |
3976 stream->Add("[backing-store]"); | 3971 stream->Add("[backing-store]"); |
3977 break; | 3972 break; |
3978 } | 3973 } |
3979 | 3974 |
3980 stream->Add("@%d", offset()); | 3975 stream->Add("@%d", offset()); |
3981 } | 3976 } |
3982 | 3977 |
3983 } } // namespace v8::internal | 3978 } } // namespace v8::internal |
OLD | NEW |