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

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

Issue 22562002: Convert FastNewClosureStub into hydrogen. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Nit fixin Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « src/code-stubs.h ('k') | src/code-stubs-hydrogen.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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 void ArrayConstructorStubBase::InstallDescriptors(Isolate* isolate) { 752 void ArrayConstructorStubBase::InstallDescriptors(Isolate* isolate) {
753 ArrayNoArgumentConstructorStub stub1(GetInitialFastElementsKind()); 753 ArrayNoArgumentConstructorStub stub1(GetInitialFastElementsKind());
754 InstallDescriptor(isolate, &stub1); 754 InstallDescriptor(isolate, &stub1);
755 ArraySingleArgumentConstructorStub stub2(GetInitialFastElementsKind()); 755 ArraySingleArgumentConstructorStub stub2(GetInitialFastElementsKind());
756 InstallDescriptor(isolate, &stub2); 756 InstallDescriptor(isolate, &stub2);
757 ArrayNArgumentsConstructorStub stub3(GetInitialFastElementsKind()); 757 ArrayNArgumentsConstructorStub stub3(GetInitialFastElementsKind());
758 InstallDescriptor(isolate, &stub3); 758 InstallDescriptor(isolate, &stub3);
759 } 759 }
760 760
761 761
762 void FastNewClosureStub::InstallDescriptors(Isolate* isolate) {
763 FastNewClosureStub stub(STRICT_MODE, false);
764 InstallDescriptor(isolate, &stub);
765 }
766
767
762 ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate) 768 ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate)
763 : argument_count_(ANY) { 769 : argument_count_(ANY) {
764 ArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 770 ArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
765 } 771 }
766 772
767 773
768 ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate, 774 ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate,
769 int argument_count) { 775 int argument_count) {
770 if (argument_count == 0) { 776 if (argument_count == 0) {
771 argument_count_ = NONE; 777 argument_count_ = NONE;
(...skipping 17 matching lines...) Expand all
789 InstallDescriptor(isolate, &stub3); 795 InstallDescriptor(isolate, &stub3);
790 } 796 }
791 797
792 InternalArrayConstructorStub::InternalArrayConstructorStub( 798 InternalArrayConstructorStub::InternalArrayConstructorStub(
793 Isolate* isolate) { 799 Isolate* isolate) {
794 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 800 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
795 } 801 }
796 802
797 803
798 } } // namespace v8::internal 804 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698