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 3290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3301 rep = rep.generalize(input_rep); | 3301 rep = rep.generalize(input_rep); |
3302 } | 3302 } |
3303 return rep; | 3303 return rep; |
3304 } | 3304 } |
3305 | 3305 |
3306 | 3306 |
3307 void HAllocate::HandleSideEffectDominator(GVNFlag side_effect, | 3307 void HAllocate::HandleSideEffectDominator(GVNFlag side_effect, |
3308 HValue* dominator) { | 3308 HValue* dominator) { |
3309 ASSERT(side_effect == kChangesNewSpacePromotion); | 3309 ASSERT(side_effect == kChangesNewSpacePromotion); |
3310 Zone* zone = block()->zone(); | 3310 Zone* zone = block()->zone(); |
3311 if (!FLAG_use_allocation_folding || | 3311 if (!FLAG_use_allocation_folding) return; |
3312 isolate()->heap_profiler()->is_tracking_allocations()) { | |
3313 return; | |
3314 } | |
3315 | 3312 |
3316 // Try to fold allocations together with their dominating allocations. | 3313 // Try to fold allocations together with their dominating allocations. |
3317 if (!dominator->IsAllocate()) { | 3314 if (!dominator->IsAllocate()) { |
3318 if (FLAG_trace_allocation_folding) { | 3315 if (FLAG_trace_allocation_folding) { |
3319 PrintF("#%d (%s) cannot fold into #%d (%s)\n", | 3316 PrintF("#%d (%s) cannot fold into #%d (%s)\n", |
3320 id(), Mnemonic(), dominator->id(), dominator->Mnemonic()); | 3317 id(), Mnemonic(), dominator->id(), dominator->Mnemonic()); |
3321 } | 3318 } |
3322 return; | 3319 return; |
3323 } | 3320 } |
3324 | 3321 |
(...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4294 break; | 4291 break; |
4295 case kExternalMemory: | 4292 case kExternalMemory: |
4296 stream->Add("[external-memory]"); | 4293 stream->Add("[external-memory]"); |
4297 break; | 4294 break; |
4298 } | 4295 } |
4299 | 4296 |
4300 stream->Add("@%d", offset()); | 4297 stream->Add("@%d", offset()); |
4301 } | 4298 } |
4302 | 4299 |
4303 } } // namespace v8::internal | 4300 } } // namespace v8::internal |
OLD | NEW |