Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: src/crankshaft/hydrogen.cc

Issue 1680513002: [runtime] We don't need an actual instance type for JSIteratorResult. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/bootstrapper.cc ('k') | src/factory.h » ('j') | src/objects.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/factory.h » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698