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

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

Issue 1537683002: Partial revert of rest parameter desugaring. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix test failures. Created 4 years, 12 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/ast-graph-builder.h » ('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 820 matching lines...) Expand 10 before | Expand all | Expand 10 after
831 STORE_AND_GROW_NO_TRANSITION).GetCode(); 831 STORE_AND_GROW_NO_TRANSITION).GetCode();
832 for (int i = FIRST_FAST_ELEMENTS_KIND; i <= LAST_FAST_ELEMENTS_KIND; i++) { 832 for (int i = FIRST_FAST_ELEMENTS_KIND; i <= LAST_FAST_ELEMENTS_KIND; i++) {
833 ElementsKind kind = static_cast<ElementsKind>(i); 833 ElementsKind kind = static_cast<ElementsKind>(i);
834 StoreFastElementStub(isolate, true, kind, STANDARD_STORE).GetCode(); 834 StoreFastElementStub(isolate, true, kind, STANDARD_STORE).GetCode();
835 StoreFastElementStub(isolate, true, kind, STORE_AND_GROW_NO_TRANSITION) 835 StoreFastElementStub(isolate, true, kind, STORE_AND_GROW_NO_TRANSITION)
836 .GetCode(); 836 .GetCode();
837 } 837 }
838 } 838 }
839 839
840 840
841 void RestParamAccessStub::Generate(MacroAssembler* masm) { GenerateNew(masm); }
842
843
841 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { 844 void ArgumentsAccessStub::Generate(MacroAssembler* masm) {
842 switch (type()) { 845 switch (type()) {
843 case READ_ELEMENT: 846 case READ_ELEMENT:
844 GenerateReadElement(masm); 847 GenerateReadElement(masm);
845 break; 848 break;
846 case NEW_SLOPPY_FAST: 849 case NEW_SLOPPY_FAST:
847 GenerateNewSloppyFast(masm); 850 GenerateNewSloppyFast(masm);
848 break; 851 break;
849 case NEW_SLOPPY_SLOW: 852 case NEW_SLOPPY_SLOW:
850 GenerateNewSloppySlow(masm); 853 GenerateNewSloppySlow(masm);
(...skipping 18 matching lines...) Expand all
869 os << "NewSloppySlow"; 872 os << "NewSloppySlow";
870 break; 873 break;
871 case NEW_STRICT: 874 case NEW_STRICT:
872 os << "NewStrict"; 875 os << "NewStrict";
873 break; 876 break;
874 } 877 }
875 return; 878 return;
876 } 879 }
877 880
878 881
882 void RestParamAccessStub::PrintName(std::ostream& os) const { // NOLINT
883 os << "RestParamAccessStub_";
884 }
885
886
879 void ArrayConstructorStub::PrintName(std::ostream& os) const { // NOLINT 887 void ArrayConstructorStub::PrintName(std::ostream& os) const { // NOLINT
880 os << "ArrayConstructorStub"; 888 os << "ArrayConstructorStub";
881 switch (argument_count()) { 889 switch (argument_count()) {
882 case ANY: 890 case ANY:
883 os << "_Any"; 891 os << "_Any";
884 break; 892 break;
885 case NONE: 893 case NONE:
886 os << "_None"; 894 os << "_None";
887 break; 895 break;
888 case ONE: 896 case ONE:
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
1044 if (type->Is(Type::UntaggedPointer())) { 1052 if (type->Is(Type::UntaggedPointer())) {
1045 return Representation::External(); 1053 return Representation::External();
1046 } 1054 }
1047 1055
1048 DCHECK(!type->Is(Type::Untagged())); 1056 DCHECK(!type->Is(Type::Untagged()));
1049 return Representation::Tagged(); 1057 return Representation::Tagged();
1050 } 1058 }
1051 1059
1052 } // namespace internal 1060 } // namespace internal
1053 } // namespace v8 1061 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/compiler/ast-graph-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698