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/cpu-profiler.h" | 10 #include "src/cpu-profiler.h" |
(...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
855 case NEW_SLOPPY_SLOW: | 855 case NEW_SLOPPY_SLOW: |
856 GenerateNewSloppySlow(masm); | 856 GenerateNewSloppySlow(masm); |
857 break; | 857 break; |
858 case NEW_STRICT: | 858 case NEW_STRICT: |
859 GenerateNewStrict(masm); | 859 GenerateNewStrict(masm); |
860 break; | 860 break; |
861 } | 861 } |
862 } | 862 } |
863 | 863 |
864 | 864 |
865 void RestParamAccessStub::Generate(MacroAssembler* masm) { | |
866 GenerateNew(masm); | |
867 } | |
868 | |
869 | |
870 void ArgumentsAccessStub::PrintName(std::ostream& os) const { // NOLINT | 865 void ArgumentsAccessStub::PrintName(std::ostream& os) const { // NOLINT |
871 os << "ArgumentsAccessStub_"; | 866 os << "ArgumentsAccessStub_"; |
872 switch (type()) { | 867 switch (type()) { |
873 case READ_ELEMENT: | 868 case READ_ELEMENT: |
874 os << "ReadElement"; | 869 os << "ReadElement"; |
875 break; | 870 break; |
876 case NEW_SLOPPY_FAST: | 871 case NEW_SLOPPY_FAST: |
877 os << "NewSloppyFast"; | 872 os << "NewSloppyFast"; |
878 break; | 873 break; |
879 case NEW_SLOPPY_SLOW: | 874 case NEW_SLOPPY_SLOW: |
880 os << "NewSloppySlow"; | 875 os << "NewSloppySlow"; |
881 break; | 876 break; |
882 case NEW_STRICT: | 877 case NEW_STRICT: |
883 os << "NewStrict"; | 878 os << "NewStrict"; |
884 break; | 879 break; |
885 } | 880 } |
886 return; | 881 return; |
887 } | 882 } |
888 | 883 |
889 | 884 |
890 void RestParamAccessStub::PrintName(std::ostream& os) const { // NOLINT | |
891 os << "RestParamAccessStub_"; | |
892 } | |
893 | |
894 | |
895 void CallFunctionStub::PrintName(std::ostream& os) const { // NOLINT | 885 void CallFunctionStub::PrintName(std::ostream& os) const { // NOLINT |
896 os << "CallFunctionStub_Args" << argc(); | 886 os << "CallFunctionStub_Args" << argc(); |
897 } | 887 } |
898 | 888 |
899 | 889 |
900 void CallConstructStub::PrintName(std::ostream& os) const { // NOLINT | 890 void CallConstructStub::PrintName(std::ostream& os) const { // NOLINT |
901 os << "CallConstructStub"; | 891 os << "CallConstructStub"; |
902 if (RecordCallTarget()) os << "_Recording"; | 892 if (RecordCallTarget()) os << "_Recording"; |
903 } | 893 } |
904 | 894 |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1076 | 1066 |
1077 if (type->Is(Type::UntaggedPointer())) { | 1067 if (type->Is(Type::UntaggedPointer())) { |
1078 return Representation::External(); | 1068 return Representation::External(); |
1079 } | 1069 } |
1080 | 1070 |
1081 DCHECK(!type->Is(Type::Untagged())); | 1071 DCHECK(!type->Is(Type::Untagged())); |
1082 return Representation::Tagged(); | 1072 return Representation::Tagged(); |
1083 } | 1073 } |
1084 } // namespace internal | 1074 } // namespace internal |
1085 } // namespace v8 | 1075 } // namespace v8 |
OLD | NEW |