| OLD | NEW | 
|---|
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #include "src/crankshaft/hydrogen.h" | 5 #include "src/crankshaft/hydrogen.h" | 
| 6 | 6 | 
| 7 #include <sstream> | 7 #include <sstream> | 
| 8 | 8 | 
| 9 #include "src/allocation-site-scopes.h" | 9 #include "src/allocation-site-scopes.h" | 
| 10 #include "src/ast/ast-numbering.h" | 10 #include "src/ast/ast-numbering.h" | 
| (...skipping 1809 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1820 } | 1820 } | 
| 1821 | 1821 | 
| 1822 | 1822 | 
| 1823 HValue* HGraphBuilder::BuildCreateIterResultObject(HValue* value, | 1823 HValue* HGraphBuilder::BuildCreateIterResultObject(HValue* value, | 
| 1824                                                    HValue* done) { | 1824                                                    HValue* done) { | 
| 1825   NoObservableSideEffectsScope scope(this); | 1825   NoObservableSideEffectsScope scope(this); | 
| 1826 | 1826 | 
| 1827   // Allocate the JSIteratorResult object. | 1827   // Allocate the JSIteratorResult object. | 
| 1828   HValue* result = | 1828   HValue* result = | 
| 1829       Add<HAllocate>(Add<HConstant>(JSIteratorResult::kSize), HType::JSObject(), | 1829       Add<HAllocate>(Add<HConstant>(JSIteratorResult::kSize), HType::JSObject(), | 
| 1830                      NOT_TENURED, JS_ITERATOR_RESULT_TYPE); | 1830                      NOT_TENURED, JS_OBJECT_TYPE); | 
| 1831 | 1831 | 
| 1832   // Initialize the JSIteratorResult object. | 1832   // Initialize the JSIteratorResult object. | 
| 1833   HValue* native_context = BuildGetNativeContext(); | 1833   HValue* native_context = BuildGetNativeContext(); | 
| 1834   HValue* map = Add<HLoadNamedField>( | 1834   HValue* map = Add<HLoadNamedField>( | 
| 1835       native_context, nullptr, | 1835       native_context, nullptr, | 
| 1836       HObjectAccess::ForContextSlot(Context::ITERATOR_RESULT_MAP_INDEX)); | 1836       HObjectAccess::ForContextSlot(Context::ITERATOR_RESULT_MAP_INDEX)); | 
| 1837   Add<HStoreNamedField>(result, HObjectAccess::ForMap(), map); | 1837   Add<HStoreNamedField>(result, HObjectAccess::ForMap(), map); | 
| 1838   HValue* empty_fixed_array = Add<HLoadRoot>(Heap::kEmptyFixedArrayRootIndex); | 1838   HValue* empty_fixed_array = Add<HLoadRoot>(Heap::kEmptyFixedArrayRootIndex); | 
| 1839   Add<HStoreNamedField>(result, HObjectAccess::ForPropertiesPointer(), | 1839   Add<HStoreNamedField>(result, HObjectAccess::ForPropertiesPointer(), | 
| 1840                         empty_fixed_array); | 1840                         empty_fixed_array); | 
| (...skipping 11814 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 13655     isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13655     isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 
| 13656   } | 13656   } | 
| 13657 | 13657 | 
| 13658 #ifdef DEBUG | 13658 #ifdef DEBUG | 
| 13659   graph_->Verify(false);  // No full verify. | 13659   graph_->Verify(false);  // No full verify. | 
| 13660 #endif | 13660 #endif | 
| 13661 } | 13661 } | 
| 13662 | 13662 | 
| 13663 }  // namespace internal | 13663 }  // namespace internal | 
| 13664 }  // namespace v8 | 13664 }  // namespace v8 | 
| OLD | NEW | 
|---|