OLD | NEW |
---|---|
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 2574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2585 Add<HStoreNamedField>( | 2585 Add<HStoreNamedField>( |
2586 allocation_memento, | 2586 allocation_memento, |
2587 HObjectAccess::ForAllocationMementoSite(), | 2587 HObjectAccess::ForAllocationMementoSite(), |
2588 allocation_site); | 2588 allocation_site); |
2589 if (FLAG_allocation_site_pretenuring) { | 2589 if (FLAG_allocation_site_pretenuring) { |
2590 HValue* memento_create_count = Add<HLoadNamedField>( | 2590 HValue* memento_create_count = Add<HLoadNamedField>( |
2591 allocation_site, HObjectAccess::ForAllocationSiteOffset( | 2591 allocation_site, HObjectAccess::ForAllocationSiteOffset( |
2592 AllocationSite::kMementoCreateCountOffset)); | 2592 AllocationSite::kMementoCreateCountOffset)); |
2593 memento_create_count = AddUncasted<HAdd>( | 2593 memento_create_count = AddUncasted<HAdd>( |
2594 memento_create_count, graph()->GetConstant1()); | 2594 memento_create_count, graph()->GetConstant1()); |
2595 // This smi value is reset to zero after every gc, overflow isn't a problem. | |
Hannes Payer (out of office)
2013/12/04 10:32:33
"isn't a problem since the counter is bounded by t
| |
2596 memento_create_count->ClearFlag(HValue::kCanOverflow); | |
2595 HStoreNamedField* store = Add<HStoreNamedField>( | 2597 HStoreNamedField* store = Add<HStoreNamedField>( |
2596 allocation_site, HObjectAccess::ForAllocationSiteOffset( | 2598 allocation_site, HObjectAccess::ForAllocationSiteOffset( |
2597 AllocationSite::kMementoCreateCountOffset), memento_create_count); | 2599 AllocationSite::kMementoCreateCountOffset), memento_create_count); |
2598 // No write barrier needed to store a smi. | 2600 // No write barrier needed to store a smi. |
2599 store->SkipWriteBarrier(); | 2601 store->SkipWriteBarrier(); |
2600 } | 2602 } |
2601 } | 2603 } |
2602 | 2604 |
2603 | 2605 |
2604 HInstruction* HGraphBuilder::BuildGetNativeContext() { | 2606 HInstruction* HGraphBuilder::BuildGetNativeContext() { |
(...skipping 8203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
10808 if (ShouldProduceTraceOutput()) { | 10810 if (ShouldProduceTraceOutput()) { |
10809 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 10811 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
10810 } | 10812 } |
10811 | 10813 |
10812 #ifdef DEBUG | 10814 #ifdef DEBUG |
10813 graph_->Verify(false); // No full verify. | 10815 graph_->Verify(false); // No full verify. |
10814 #endif | 10816 #endif |
10815 } | 10817 } |
10816 | 10818 |
10817 } } // namespace v8::internal | 10819 } } // namespace v8::internal |
OLD | NEW |