| 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 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 824 switch (type()) { | 824 switch (type()) { |
| 825 case READ_ELEMENT: | 825 case READ_ELEMENT: |
| 826 GenerateReadElement(masm); | 826 GenerateReadElement(masm); |
| 827 break; | 827 break; |
| 828 case NEW_SLOPPY_FAST: | 828 case NEW_SLOPPY_FAST: |
| 829 GenerateNewSloppyFast(masm); | 829 GenerateNewSloppyFast(masm); |
| 830 break; | 830 break; |
| 831 case NEW_SLOPPY_SLOW: | 831 case NEW_SLOPPY_SLOW: |
| 832 GenerateNewSloppySlow(masm); | 832 GenerateNewSloppySlow(masm); |
| 833 break; | 833 break; |
| 834 case NEW_STRICT: | |
| 835 GenerateNewStrict(masm); | |
| 836 break; | |
| 837 } | 834 } |
| 838 } | 835 } |
| 839 | 836 |
| 840 | 837 |
| 841 void ArgumentsAccessStub::PrintName(std::ostream& os) const { // NOLINT | 838 void ArgumentsAccessStub::PrintName(std::ostream& os) const { // NOLINT |
| 842 os << "ArgumentsAccessStub_"; | 839 os << "ArgumentsAccessStub_"; |
| 843 switch (type()) { | 840 switch (type()) { |
| 844 case READ_ELEMENT: | 841 case READ_ELEMENT: |
| 845 os << "ReadElement"; | 842 os << "ReadElement"; |
| 846 break; | 843 break; |
| 847 case NEW_SLOPPY_FAST: | 844 case NEW_SLOPPY_FAST: |
| 848 os << "NewSloppyFast"; | 845 os << "NewSloppyFast"; |
| 849 break; | 846 break; |
| 850 case NEW_SLOPPY_SLOW: | 847 case NEW_SLOPPY_SLOW: |
| 851 os << "NewSloppySlow"; | 848 os << "NewSloppySlow"; |
| 852 break; | 849 break; |
| 853 case NEW_STRICT: | |
| 854 os << "NewStrict"; | |
| 855 break; | |
| 856 } | 850 } |
| 857 return; | 851 return; |
| 858 } | 852 } |
| 859 | 853 |
| 860 | 854 |
| 861 void ArrayConstructorStub::PrintName(std::ostream& os) const { // NOLINT | 855 void ArrayConstructorStub::PrintName(std::ostream& os) const { // NOLINT |
| 862 os << "ArrayConstructorStub"; | 856 os << "ArrayConstructorStub"; |
| 863 switch (argument_count()) { | 857 switch (argument_count()) { |
| 864 case ANY: | 858 case ANY: |
| 865 os << "_Any"; | 859 os << "_Any"; |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1026 if (type->Is(Type::UntaggedPointer())) { | 1020 if (type->Is(Type::UntaggedPointer())) { |
| 1027 return Representation::External(); | 1021 return Representation::External(); |
| 1028 } | 1022 } |
| 1029 | 1023 |
| 1030 DCHECK(!type->Is(Type::Untagged())); | 1024 DCHECK(!type->Is(Type::Untagged())); |
| 1031 return Representation::Tagged(); | 1025 return Representation::Tagged(); |
| 1032 } | 1026 } |
| 1033 | 1027 |
| 1034 } // namespace internal | 1028 } // namespace internal |
| 1035 } // namespace v8 | 1029 } // namespace v8 |
| OLD | NEW |