| 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 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 644 HConstant* HGraph::GetConstantMinus1() { | 644 HConstant* HGraph::GetConstantMinus1() { |
| 645 return GetConstant(&constant_minus1_, -1); | 645 return GetConstant(&constant_minus1_, -1); |
| 646 } | 646 } |
| 647 | 647 |
| 648 | 648 |
| 649 #define DEFINE_GET_CONSTANT(Name, name, htype, boolean_value) \ | 649 #define DEFINE_GET_CONSTANT(Name, name, htype, boolean_value) \ |
| 650 HConstant* HGraph::GetConstant##Name() { \ | 650 HConstant* HGraph::GetConstant##Name() { \ |
| 651 if (!constant_##name##_.is_set()) { \ | 651 if (!constant_##name##_.is_set()) { \ |
| 652 HConstant* constant = new(zone()) HConstant( \ | 652 HConstant* constant = new(zone()) HConstant( \ |
| 653 isolate()->factory()->name##_value(), \ | 653 isolate()->factory()->name##_value(), \ |
| 654 UniqueValueId(isolate()->heap()->name##_value()), \ | 654 UniqueValueId::name##_value(isolate()->heap()), \ |
| 655 Representation::Tagged(), \ | 655 Representation::Tagged(), \ |
| 656 htype, \ | 656 htype, \ |
| 657 false, \ | 657 false, \ |
| 658 true, \ | 658 true, \ |
| 659 false, \ | 659 false, \ |
| 660 boolean_value); \ | 660 boolean_value); \ |
| 661 constant->InsertAfter(GetConstantUndefined()); \ | 661 constant->InsertAfter(GetConstantUndefined()); \ |
| 662 constant_##name##_.set(constant); \ | 662 constant_##name##_.set(constant); \ |
| 663 } \ | 663 } \ |
| 664 return constant_##name##_.get(); \ | 664 return constant_##name##_.get(); \ |
| (...skipping 1154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1819 } | 1819 } |
| 1820 } | 1820 } |
| 1821 | 1821 |
| 1822 if_nil.CaptureContinuation(continuation); | 1822 if_nil.CaptureContinuation(continuation); |
| 1823 } | 1823 } |
| 1824 | 1824 |
| 1825 | 1825 |
| 1826 HValue* HGraphBuilder::BuildCreateAllocationMemento(HValue* previous_object, | 1826 HValue* HGraphBuilder::BuildCreateAllocationMemento(HValue* previous_object, |
| 1827 int previous_object_size, | 1827 int previous_object_size, |
| 1828 HValue* alloc_site) { | 1828 HValue* alloc_site) { |
| 1829 ASSERT(alloc_site != NULL); | 1829 // TODO(mvstanton): ASSERT altered to CHECK to diagnose chromium bug 284577 |
| 1830 CHECK(alloc_site != NULL); |
| 1830 HInnerAllocatedObject* alloc_memento = Add<HInnerAllocatedObject>( | 1831 HInnerAllocatedObject* alloc_memento = Add<HInnerAllocatedObject>( |
| 1831 previous_object, previous_object_size); | 1832 previous_object, previous_object_size); |
| 1832 Handle<Map> alloc_memento_map( | 1833 Handle<Map> alloc_memento_map( |
| 1833 isolate()->heap()->allocation_memento_map()); | 1834 isolate()->heap()->allocation_memento_map()); |
| 1834 AddStoreMapConstant(alloc_memento, alloc_memento_map); | 1835 AddStoreMapConstant(alloc_memento, alloc_memento_map); |
| 1835 HObjectAccess access = HObjectAccess::ForAllocationMementoSite(); | 1836 HObjectAccess access = HObjectAccess::ForAllocationMementoSite(); |
| 1836 Add<HStoreNamedField>(alloc_memento, access, alloc_site); | 1837 Add<HStoreNamedField>(alloc_memento, access, alloc_site); |
| 1837 return alloc_memento; | 1838 return alloc_memento; |
| 1838 } | 1839 } |
| 1839 | 1840 |
| (...skipping 7841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9681 if (ShouldProduceTraceOutput()) { | 9682 if (ShouldProduceTraceOutput()) { |
| 9682 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 9683 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 9683 } | 9684 } |
| 9684 | 9685 |
| 9685 #ifdef DEBUG | 9686 #ifdef DEBUG |
| 9686 graph_->Verify(false); // No full verify. | 9687 graph_->Verify(false); // No full verify. |
| 9687 #endif | 9688 #endif |
| 9688 } | 9689 } |
| 9689 | 9690 |
| 9690 } } // namespace v8::internal | 9691 } } // namespace v8::internal |
| OLD | NEW |