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 <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/compiler/code-stub-assembler.h" | 10 #include "src/compiler/code-stub-assembler.h" |
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
813 STORE_AND_GROW_NO_TRANSITION).GetCode(); | 813 STORE_AND_GROW_NO_TRANSITION).GetCode(); |
814 for (int i = FIRST_FAST_ELEMENTS_KIND; i <= LAST_FAST_ELEMENTS_KIND; i++) { | 814 for (int i = FIRST_FAST_ELEMENTS_KIND; i <= LAST_FAST_ELEMENTS_KIND; i++) { |
815 ElementsKind kind = static_cast<ElementsKind>(i); | 815 ElementsKind kind = static_cast<ElementsKind>(i); |
816 StoreFastElementStub(isolate, true, kind, STANDARD_STORE).GetCode(); | 816 StoreFastElementStub(isolate, true, kind, STANDARD_STORE).GetCode(); |
817 StoreFastElementStub(isolate, true, kind, STORE_AND_GROW_NO_TRANSITION) | 817 StoreFastElementStub(isolate, true, kind, STORE_AND_GROW_NO_TRANSITION) |
818 .GetCode(); | 818 .GetCode(); |
819 } | 819 } |
820 } | 820 } |
821 | 821 |
822 | 822 |
| 823 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { |
| 824 switch (type()) { |
| 825 case NEW_SLOPPY_FAST: |
| 826 GenerateNewSloppyFast(masm); |
| 827 break; |
| 828 case NEW_SLOPPY_SLOW: |
| 829 GenerateNewSloppySlow(masm); |
| 830 break; |
| 831 } |
| 832 } |
| 833 |
| 834 |
| 835 void ArgumentsAccessStub::PrintName(std::ostream& os) const { // NOLINT |
| 836 os << "ArgumentsAccessStub_"; |
| 837 switch (type()) { |
| 838 case NEW_SLOPPY_FAST: |
| 839 os << "NewSloppyFast"; |
| 840 break; |
| 841 case NEW_SLOPPY_SLOW: |
| 842 os << "NewSloppySlow"; |
| 843 break; |
| 844 } |
| 845 return; |
| 846 } |
| 847 |
| 848 |
823 void ArrayConstructorStub::PrintName(std::ostream& os) const { // NOLINT | 849 void ArrayConstructorStub::PrintName(std::ostream& os) const { // NOLINT |
824 os << "ArrayConstructorStub"; | 850 os << "ArrayConstructorStub"; |
825 switch (argument_count()) { | 851 switch (argument_count()) { |
826 case ANY: | 852 case ANY: |
827 os << "_Any"; | 853 os << "_Any"; |
828 break; | 854 break; |
829 case NONE: | 855 case NONE: |
830 os << "_None"; | 856 os << "_None"; |
831 break; | 857 break; |
832 case ONE: | 858 case ONE: |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
988 if (type->Is(Type::UntaggedPointer())) { | 1014 if (type->Is(Type::UntaggedPointer())) { |
989 return Representation::External(); | 1015 return Representation::External(); |
990 } | 1016 } |
991 | 1017 |
992 DCHECK(!type->Is(Type::Untagged())); | 1018 DCHECK(!type->Is(Type::Untagged())); |
993 return Representation::Tagged(); | 1019 return Representation::Tagged(); |
994 } | 1020 } |
995 | 1021 |
996 } // namespace internal | 1022 } // namespace internal |
997 } // namespace v8 | 1023 } // namespace v8 |
OLD | NEW |