OLD | NEW |
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 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
762 void ArrayConstructorStubBase::InstallDescriptors(Isolate* isolate) { | 762 void ArrayConstructorStubBase::InstallDescriptors(Isolate* isolate) { |
763 ArrayNoArgumentConstructorStub stub1(GetInitialFastElementsKind()); | 763 ArrayNoArgumentConstructorStub stub1(GetInitialFastElementsKind()); |
764 InstallDescriptor(isolate, &stub1); | 764 InstallDescriptor(isolate, &stub1); |
765 ArraySingleArgumentConstructorStub stub2(GetInitialFastElementsKind()); | 765 ArraySingleArgumentConstructorStub stub2(GetInitialFastElementsKind()); |
766 InstallDescriptor(isolate, &stub2); | 766 InstallDescriptor(isolate, &stub2); |
767 ArrayNArgumentsConstructorStub stub3(GetInitialFastElementsKind()); | 767 ArrayNArgumentsConstructorStub stub3(GetInitialFastElementsKind()); |
768 InstallDescriptor(isolate, &stub3); | 768 InstallDescriptor(isolate, &stub3); |
769 } | 769 } |
770 | 770 |
771 | 771 |
| 772 void FastNewClosureStub::InstallDescriptors(Isolate* isolate) { |
| 773 FastNewClosureStub stub(STRICT_MODE, false); |
| 774 InstallDescriptor(isolate, &stub); |
| 775 } |
| 776 |
| 777 |
772 ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate) | 778 ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate) |
773 : argument_count_(ANY) { | 779 : argument_count_(ANY) { |
774 ArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 780 ArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
775 } | 781 } |
776 | 782 |
777 | 783 |
778 ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate, | 784 ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate, |
779 int argument_count) { | 785 int argument_count) { |
780 if (argument_count == 0) { | 786 if (argument_count == 0) { |
781 argument_count_ = NONE; | 787 argument_count_ = NONE; |
(...skipping 17 matching lines...) Expand all Loading... |
799 InstallDescriptor(isolate, &stub3); | 805 InstallDescriptor(isolate, &stub3); |
800 } | 806 } |
801 | 807 |
802 InternalArrayConstructorStub::InternalArrayConstructorStub( | 808 InternalArrayConstructorStub::InternalArrayConstructorStub( |
803 Isolate* isolate) { | 809 Isolate* isolate) { |
804 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 810 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
805 } | 811 } |
806 | 812 |
807 | 813 |
808 } } // namespace v8::internal | 814 } } // namespace v8::internal |
OLD | NEW |