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 | |
849 void ArrayConstructorStub::PrintName(std::ostream& os) const { // NOLINT | 823 void ArrayConstructorStub::PrintName(std::ostream& os) const { // NOLINT |
850 os << "ArrayConstructorStub"; | 824 os << "ArrayConstructorStub"; |
851 switch (argument_count()) { | 825 switch (argument_count()) { |
852 case ANY: | 826 case ANY: |
853 os << "_Any"; | 827 os << "_Any"; |
854 break; | 828 break; |
855 case NONE: | 829 case NONE: |
856 os << "_None"; | 830 os << "_None"; |
857 break; | 831 break; |
858 case ONE: | 832 case ONE: |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1014 if (type->Is(Type::UntaggedPointer())) { | 988 if (type->Is(Type::UntaggedPointer())) { |
1015 return Representation::External(); | 989 return Representation::External(); |
1016 } | 990 } |
1017 | 991 |
1018 DCHECK(!type->Is(Type::Untagged())); | 992 DCHECK(!type->Is(Type::Untagged())); |
1019 return Representation::Tagged(); | 993 return Representation::Tagged(); |
1020 } | 994 } |
1021 | 995 |
1022 } // namespace internal | 996 } // namespace internal |
1023 } // namespace v8 | 997 } // namespace v8 |
OLD | NEW |