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

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

Issue 816913003: Implement ES6 rest parameters (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix typo in ARM port Created 5 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.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/cpu-profiler.h" 10 #include "src/cpu-profiler.h"
(...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 case NEW_SLOPPY_SLOW: 783 case NEW_SLOPPY_SLOW:
784 GenerateNewSloppySlow(masm); 784 GenerateNewSloppySlow(masm);
785 break; 785 break;
786 case NEW_STRICT: 786 case NEW_STRICT:
787 GenerateNewStrict(masm); 787 GenerateNewStrict(masm);
788 break; 788 break;
789 } 789 }
790 } 790 }
791 791
792 792
793 void RestParamAccessStub::Generate(MacroAssembler* masm) {
794 GenerateNew(masm);
795 }
796
797
793 void ArgumentsAccessStub::PrintName(std::ostream& os) const { // NOLINT 798 void ArgumentsAccessStub::PrintName(std::ostream& os) const { // NOLINT
794 os << "ArgumentsAccessStub_"; 799 os << "ArgumentsAccessStub_";
795 switch (type()) { 800 switch (type()) {
796 case READ_ELEMENT: 801 case READ_ELEMENT:
797 os << "ReadElement"; 802 os << "ReadElement";
798 break; 803 break;
799 case NEW_SLOPPY_FAST: 804 case NEW_SLOPPY_FAST:
800 os << "NewSloppyFast"; 805 os << "NewSloppyFast";
801 break; 806 break;
802 case NEW_SLOPPY_SLOW: 807 case NEW_SLOPPY_SLOW:
803 os << "NewSloppySlow"; 808 os << "NewSloppySlow";
804 break; 809 break;
805 case NEW_STRICT: 810 case NEW_STRICT:
806 os << "NewStrict"; 811 os << "NewStrict";
807 break; 812 break;
808 } 813 }
809 return; 814 return;
810 } 815 }
811 816
812 817
818 void RestParamAccessStub::PrintName(std::ostream& os) const { // NOLINT
819 os << "RestParamAccessStub_";
820 }
821
822
813 void CallFunctionStub::PrintName(std::ostream& os) const { // NOLINT 823 void CallFunctionStub::PrintName(std::ostream& os) const { // NOLINT
814 os << "CallFunctionStub_Args" << argc(); 824 os << "CallFunctionStub_Args" << argc();
815 } 825 }
816 826
817 827
818 void CallConstructStub::PrintName(std::ostream& os) const { // NOLINT 828 void CallConstructStub::PrintName(std::ostream& os) const { // NOLINT
819 os << "CallConstructStub"; 829 os << "CallConstructStub";
820 if (RecordCallTarget()) os << "_Recording"; 830 if (RecordCallTarget()) os << "_Recording";
821 } 831 }
822 832
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
973 } 983 }
974 984
975 985
976 InternalArrayConstructorStub::InternalArrayConstructorStub( 986 InternalArrayConstructorStub::InternalArrayConstructorStub(
977 Isolate* isolate) : PlatformCodeStub(isolate) { 987 Isolate* isolate) : PlatformCodeStub(isolate) {
978 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 988 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
979 } 989 }
980 990
981 991
982 } } // namespace v8::internal 992 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698