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 840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
851 case NEW_SLOPPY_SLOW: | 851 case NEW_SLOPPY_SLOW: |
852 GenerateNewSloppySlow(masm); | 852 GenerateNewSloppySlow(masm); |
853 break; | 853 break; |
854 case NEW_STRICT: | 854 case NEW_STRICT: |
855 GenerateNewStrict(masm); | 855 GenerateNewStrict(masm); |
856 break; | 856 break; |
857 } | 857 } |
858 } | 858 } |
859 | 859 |
860 | 860 |
861 void RestParamAccessStub::Generate(MacroAssembler* masm) { | |
862 GenerateNew(masm); | |
863 } | |
864 | |
865 | |
866 void ArgumentsAccessStub::PrintName(std::ostream& os) const { // NOLINT | 861 void ArgumentsAccessStub::PrintName(std::ostream& os) const { // NOLINT |
867 os << "ArgumentsAccessStub_"; | 862 os << "ArgumentsAccessStub_"; |
868 switch (type()) { | 863 switch (type()) { |
869 case READ_ELEMENT: | 864 case READ_ELEMENT: |
870 os << "ReadElement"; | 865 os << "ReadElement"; |
871 break; | 866 break; |
872 case NEW_SLOPPY_FAST: | 867 case NEW_SLOPPY_FAST: |
873 os << "NewSloppyFast"; | 868 os << "NewSloppyFast"; |
874 break; | 869 break; |
875 case NEW_SLOPPY_SLOW: | 870 case NEW_SLOPPY_SLOW: |
876 os << "NewSloppySlow"; | 871 os << "NewSloppySlow"; |
877 break; | 872 break; |
878 case NEW_STRICT: | 873 case NEW_STRICT: |
879 os << "NewStrict"; | 874 os << "NewStrict"; |
880 break; | 875 break; |
881 } | 876 } |
882 return; | 877 return; |
883 } | 878 } |
884 | 879 |
885 | 880 |
886 void RestParamAccessStub::PrintName(std::ostream& os) const { // NOLINT | |
887 os << "RestParamAccessStub_"; | |
888 } | |
889 | |
890 | |
891 void CallFunctionStub::PrintName(std::ostream& os) const { // NOLINT | 881 void CallFunctionStub::PrintName(std::ostream& os) const { // NOLINT |
892 os << "CallFunctionStub_Args" << argc(); | 882 os << "CallFunctionStub_Args" << argc(); |
893 } | 883 } |
894 | 884 |
895 | 885 |
896 void CallConstructStub::PrintName(std::ostream& os) const { // NOLINT | 886 void CallConstructStub::PrintName(std::ostream& os) const { // NOLINT |
897 os << "CallConstructStub"; | 887 os << "CallConstructStub"; |
898 if (RecordCallTarget()) os << "_Recording"; | 888 if (RecordCallTarget()) os << "_Recording"; |
899 } | 889 } |
900 | 890 |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1066 | 1056 |
1067 if (type->Is(Type::UntaggedPointer())) { | 1057 if (type->Is(Type::UntaggedPointer())) { |
1068 return Representation::External(); | 1058 return Representation::External(); |
1069 } | 1059 } |
1070 | 1060 |
1071 DCHECK(!type->Is(Type::Untagged())); | 1061 DCHECK(!type->Is(Type::Untagged())); |
1072 return Representation::Tagged(); | 1062 return Representation::Tagged(); |
1073 } | 1063 } |
1074 } // namespace internal | 1064 } // namespace internal |
1075 } // namespace v8 | 1065 } // namespace v8 |
OLD | NEW |