Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: src/code-stubs.cc

Issue 1695633003: [runtime] Turn ArgumentAccessStub into FastNewSloppyArgumentsStub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix MIPS dead code Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/code-stubs.h ('k') | src/compiler/js-create-lowering.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/compiler/js-create-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698