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

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

Issue 1701653002: Revert of [runtime] Turn ArgumentAccessStub into FastNewSloppyArgumentsStub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
823 void ArrayConstructorStub::PrintName(std::ostream& os) const { // NOLINT 849 void ArrayConstructorStub::PrintName(std::ostream& os) const { // NOLINT
824 os << "ArrayConstructorStub"; 850 os << "ArrayConstructorStub";
825 switch (argument_count()) { 851 switch (argument_count()) {
826 case ANY: 852 case ANY:
827 os << "_Any"; 853 os << "_Any";
828 break; 854 break;
829 case NONE: 855 case NONE:
830 os << "_None"; 856 os << "_None";
831 break; 857 break;
832 case ONE: 858 case ONE:
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
988 if (type->Is(Type::UntaggedPointer())) { 1014 if (type->Is(Type::UntaggedPointer())) {
989 return Representation::External(); 1015 return Representation::External();
990 } 1016 }
991 1017
992 DCHECK(!type->Is(Type::Untagged())); 1018 DCHECK(!type->Is(Type::Untagged()));
993 return Representation::Tagged(); 1019 return Representation::Tagged();
994 } 1020 }
995 1021
996 } // namespace internal 1022 } // namespace internal
997 } // namespace v8 1023 } // 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