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

Side by Side Diff: src/code-stubs-hydrogen.cc

Issue 2227763003: [turbofan] Rewrite ToObject as TurboFan stub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Revert "Delete hydrogen toObject" Created 4 years, 4 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/code-stubs.cc ('k') | src/full-codegen/arm/full-codegen-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/code-stubs.h" 5 #include "src/code-stubs.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "src/bailout-reason.h" 9 #include "src/bailout-reason.h"
10 #include "src/crankshaft/hydrogen.h" 10 #include "src/crankshaft/hydrogen.h"
(...skipping 1641 matching lines...) Expand 10 before | Expand all | Expand 10 after
1652 return value; 1652 return value;
1653 } 1653 }
1654 1654
1655 1655
1656 Handle<Code> ElementsTransitionAndStoreStub::GenerateCode() { 1656 Handle<Code> ElementsTransitionAndStoreStub::GenerateCode() {
1657 return DoGenerateCode(this); 1657 return DoGenerateCode(this);
1658 } 1658 }
1659 1659
1660 1660
1661 template <> 1661 template <>
1662 HValue* CodeStubGraphBuilder<ToObjectStub>::BuildCodeStub() {
1663 HValue* receiver = GetParameter(Descriptor::kArgument);
1664 return BuildToObject(receiver);
1665 }
1666
1667
1668 Handle<Code> ToObjectStub::GenerateCode() { return DoGenerateCode(this); }
1669
1670 template <>
1671 HValue* CodeStubGraphBuilder<LoadDictionaryElementStub>::BuildCodeStub() { 1662 HValue* CodeStubGraphBuilder<LoadDictionaryElementStub>::BuildCodeStub() {
1672 HValue* receiver = GetParameter(Descriptor::kReceiver); 1663 HValue* receiver = GetParameter(Descriptor::kReceiver);
1673 HValue* key = GetParameter(Descriptor::kName); 1664 HValue* key = GetParameter(Descriptor::kName);
1674 1665
1675 Add<HCheckSmi>(key); 1666 Add<HCheckSmi>(key);
1676 1667
1677 HValue* elements = AddLoadElements(receiver); 1668 HValue* elements = AddLoadElements(receiver);
1678 1669
1679 HValue* hash = BuildElementIndexHash(key); 1670 HValue* hash = BuildElementIndexHash(key);
1680 1671
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
1952 return Pop(); 1943 return Pop();
1953 } 1944 }
1954 1945
1955 1946
1956 Handle<Code> KeyedLoadGenericStub::GenerateCode() { 1947 Handle<Code> KeyedLoadGenericStub::GenerateCode() {
1957 return DoGenerateCode(this); 1948 return DoGenerateCode(this);
1958 } 1949 }
1959 1950
1960 } // namespace internal 1951 } // namespace internal
1961 } // namespace v8 1952 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/full-codegen/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698