| 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 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |