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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 // static | 262 // static |
263 void BinaryOpICWithAllocationSiteStub::GenerateAheadOfTime( | 263 void BinaryOpICWithAllocationSiteStub::GenerateAheadOfTime( |
264 Isolate* isolate, const BinaryOpIC::State& state) { | 264 Isolate* isolate, const BinaryOpIC::State& state) { |
265 if (state.CouldCreateAllocationMementos()) { | 265 if (state.CouldCreateAllocationMementos()) { |
266 BinaryOpICWithAllocationSiteStub stub(state); | 266 BinaryOpICWithAllocationSiteStub stub(state); |
267 stub.GetCode(isolate); | 267 stub.GetCode(isolate); |
268 } | 268 } |
269 } | 269 } |
270 | 270 |
271 | 271 |
272 void NewStringAddStub::PrintBaseName(StringStream* stream) { | 272 void StringAddStub::PrintBaseName(StringStream* stream) { |
273 stream->Add("NewStringAddStub"); | 273 stream->Add("StringAddStub"); |
274 if ((flags() & STRING_ADD_CHECK_BOTH) == STRING_ADD_CHECK_BOTH) { | 274 if ((flags() & STRING_ADD_CHECK_BOTH) == STRING_ADD_CHECK_BOTH) { |
275 stream->Add("_CheckBoth"); | 275 stream->Add("_CheckBoth"); |
276 } else if ((flags() & STRING_ADD_CHECK_LEFT) == STRING_ADD_CHECK_LEFT) { | 276 } else if ((flags() & STRING_ADD_CHECK_LEFT) == STRING_ADD_CHECK_LEFT) { |
277 stream->Add("_CheckLeft"); | 277 stream->Add("_CheckLeft"); |
278 } else if ((flags() & STRING_ADD_CHECK_RIGHT) == STRING_ADD_CHECK_RIGHT) { | 278 } else if ((flags() & STRING_ADD_CHECK_RIGHT) == STRING_ADD_CHECK_RIGHT) { |
279 stream->Add("_CheckRight"); | 279 stream->Add("_CheckRight"); |
280 } | 280 } |
281 if (pretenure_flag() == TENURED) { | 281 if (pretenure_flag() == TENURED) { |
282 stream->Add("_Tenured"); | 282 stream->Add("_Tenured"); |
283 } | 283 } |
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
774 | 774 |
775 | 775 |
776 // static | 776 // static |
777 void BinaryOpWithAllocationSiteStub::InstallDescriptors(Isolate* isolate) { | 777 void BinaryOpWithAllocationSiteStub::InstallDescriptors(Isolate* isolate) { |
778 BinaryOpWithAllocationSiteStub stub(Token::ADD, NO_OVERWRITE); | 778 BinaryOpWithAllocationSiteStub stub(Token::ADD, NO_OVERWRITE); |
779 InstallDescriptor(isolate, &stub); | 779 InstallDescriptor(isolate, &stub); |
780 } | 780 } |
781 | 781 |
782 | 782 |
783 // static | 783 // static |
784 void NewStringAddStub::InstallDescriptors(Isolate* isolate) { | 784 void StringAddStub::InstallDescriptors(Isolate* isolate) { |
785 NewStringAddStub stub(STRING_ADD_CHECK_NONE, NOT_TENURED); | 785 StringAddStub stub(STRING_ADD_CHECK_NONE, NOT_TENURED); |
786 InstallDescriptor(isolate, &stub); | 786 InstallDescriptor(isolate, &stub); |
787 } | 787 } |
788 | 788 |
789 | 789 |
790 ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate) | 790 ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate) |
791 : argument_count_(ANY) { | 791 : argument_count_(ANY) { |
792 ArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 792 ArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
793 } | 793 } |
794 | 794 |
795 | 795 |
(...skipping 21 matching lines...) Expand all Loading... |
817 InstallDescriptor(isolate, &stub3); | 817 InstallDescriptor(isolate, &stub3); |
818 } | 818 } |
819 | 819 |
820 InternalArrayConstructorStub::InternalArrayConstructorStub( | 820 InternalArrayConstructorStub::InternalArrayConstructorStub( |
821 Isolate* isolate) { | 821 Isolate* isolate) { |
822 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 822 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
823 } | 823 } |
824 | 824 |
825 | 825 |
826 } } // namespace v8::internal | 826 } } // namespace v8::internal |
OLD | NEW |