| 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 7855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7866 | 7866 |
| 7867 | 7867 |
| 7868 template<class T> | 7868 template<class T> |
| 7869 static void ArrayConstructorStubAheadOfTimeHelper(Isolate* isolate) { | 7869 static void ArrayConstructorStubAheadOfTimeHelper(Isolate* isolate) { |
| 7870 int to_index = GetSequenceIndexFromFastElementsKind( | 7870 int to_index = GetSequenceIndexFromFastElementsKind( |
| 7871 TERMINAL_FAST_ELEMENTS_KIND); | 7871 TERMINAL_FAST_ELEMENTS_KIND); |
| 7872 for (int i = 0; i <= to_index; ++i) { | 7872 for (int i = 0; i <= to_index; ++i) { |
| 7873 ElementsKind kind = GetFastElementsKindFromSequenceIndex(i); | 7873 ElementsKind kind = GetFastElementsKindFromSequenceIndex(i); |
| 7874 T stub(kind, false); | 7874 T stub(kind, false); |
| 7875 stub.GetCode(isolate)->set_is_pregenerated(true); | 7875 stub.GetCode(isolate)->set_is_pregenerated(true); |
| 7876 if (AllocationSiteInfo::GetMode(kind) != DONT_TRACK_ALLOCATION_SITE) { | 7876 if (AllocationSite::GetMode(kind) != DONT_TRACK_ALLOCATION_SITE) { |
| 7877 T stub1(kind, true); | 7877 T stub1(kind, true); |
| 7878 stub1.GetCode(isolate)->set_is_pregenerated(true); | 7878 stub1.GetCode(isolate)->set_is_pregenerated(true); |
| 7879 } | 7879 } |
| 7880 } | 7880 } |
| 7881 } | 7881 } |
| 7882 | 7882 |
| 7883 | 7883 |
| 7884 void ArrayConstructorStubBase::GenerateStubsAheadOfTime(Isolate* isolate) { | 7884 void ArrayConstructorStubBase::GenerateStubsAheadOfTime(Isolate* isolate) { |
| 7885 ArrayConstructorStubAheadOfTimeHelper<ArrayNoArgumentConstructorStub>( | 7885 ArrayConstructorStubAheadOfTimeHelper<ArrayNoArgumentConstructorStub>( |
| 7886 isolate); | 7886 isolate); |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8090 __ jmp(generic_construct_stub, RelocInfo::CODE_TARGET); | 8090 __ jmp(generic_construct_stub, RelocInfo::CODE_TARGET); |
| 8091 } | 8091 } |
| 8092 } | 8092 } |
| 8093 | 8093 |
| 8094 | 8094 |
| 8095 #undef __ | 8095 #undef __ |
| 8096 | 8096 |
| 8097 } } // namespace v8::internal | 8097 } } // namespace v8::internal |
| 8098 | 8098 |
| 8099 #endif // V8_TARGET_ARCH_IA32 | 8099 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |