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 851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
862 case NEW_SLOPPY_SLOW: | 862 case NEW_SLOPPY_SLOW: |
863 GenerateNewSloppySlow(masm); | 863 GenerateNewSloppySlow(masm); |
864 break; | 864 break; |
865 case NEW_STRICT: | 865 case NEW_STRICT: |
866 GenerateNewStrict(masm); | 866 GenerateNewStrict(masm); |
867 break; | 867 break; |
868 } | 868 } |
869 } | 869 } |
870 | 870 |
871 | 871 |
872 void RestParamAccessStub::Generate(MacroAssembler* masm) { | |
873 GenerateNew(masm); | |
874 } | |
875 | |
876 | |
877 void ArgumentsAccessStub::PrintName(std::ostream& os) const { // NOLINT | 872 void ArgumentsAccessStub::PrintName(std::ostream& os) const { // NOLINT |
878 os << "ArgumentsAccessStub_"; | 873 os << "ArgumentsAccessStub_"; |
879 switch (type()) { | 874 switch (type()) { |
880 case READ_ELEMENT: | 875 case READ_ELEMENT: |
881 os << "ReadElement"; | 876 os << "ReadElement"; |
882 break; | 877 break; |
883 case NEW_SLOPPY_FAST: | 878 case NEW_SLOPPY_FAST: |
884 os << "NewSloppyFast"; | 879 os << "NewSloppyFast"; |
885 break; | 880 break; |
886 case NEW_SLOPPY_SLOW: | 881 case NEW_SLOPPY_SLOW: |
887 os << "NewSloppySlow"; | 882 os << "NewSloppySlow"; |
888 break; | 883 break; |
889 case NEW_STRICT: | 884 case NEW_STRICT: |
890 os << "NewStrict"; | 885 os << "NewStrict"; |
891 break; | 886 break; |
892 } | 887 } |
893 return; | 888 return; |
894 } | 889 } |
895 | 890 |
896 | 891 |
897 void RestParamAccessStub::PrintName(std::ostream& os) const { // NOLINT | |
898 os << "RestParamAccessStub_"; | |
899 } | |
900 | |
901 | |
902 void CallFunctionStub::PrintName(std::ostream& os) const { // NOLINT | 892 void CallFunctionStub::PrintName(std::ostream& os) const { // NOLINT |
903 os << "CallFunctionStub_Args" << argc(); | 893 os << "CallFunctionStub_Args" << argc(); |
904 } | 894 } |
905 | 895 |
906 | 896 |
907 void CallConstructStub::PrintName(std::ostream& os) const { // NOLINT | 897 void CallConstructStub::PrintName(std::ostream& os) const { // NOLINT |
908 os << "CallConstructStub"; | 898 os << "CallConstructStub"; |
909 if (RecordCallTarget()) os << "_Recording"; | 899 if (RecordCallTarget()) os << "_Recording"; |
910 } | 900 } |
911 | 901 |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1083 | 1073 |
1084 if (type->Is(Type::UntaggedPointer())) { | 1074 if (type->Is(Type::UntaggedPointer())) { |
1085 return Representation::External(); | 1075 return Representation::External(); |
1086 } | 1076 } |
1087 | 1077 |
1088 DCHECK(!type->Is(Type::Untagged())); | 1078 DCHECK(!type->Is(Type::Untagged())); |
1089 return Representation::Tagged(); | 1079 return Representation::Tagged(); |
1090 } | 1080 } |
1091 } // namespace internal | 1081 } // namespace internal |
1092 } // namespace v8 | 1082 } // namespace v8 |
OLD | NEW |