| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |