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 7212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7223 | 7223 |
7224 | 7224 |
7225 template<class T> | 7225 template<class T> |
7226 static void ArrayConstructorStubAheadOfTimeHelper(Isolate* isolate) { | 7226 static void ArrayConstructorStubAheadOfTimeHelper(Isolate* isolate) { |
7227 int to_index = GetSequenceIndexFromFastElementsKind( | 7227 int to_index = GetSequenceIndexFromFastElementsKind( |
7228 TERMINAL_FAST_ELEMENTS_KIND); | 7228 TERMINAL_FAST_ELEMENTS_KIND); |
7229 for (int i = 0; i <= to_index; ++i) { | 7229 for (int i = 0; i <= to_index; ++i) { |
7230 ElementsKind kind = GetFastElementsKindFromSequenceIndex(i); | 7230 ElementsKind kind = GetFastElementsKindFromSequenceIndex(i); |
7231 T stub(kind); | 7231 T stub(kind); |
7232 stub.GetCode(isolate)->set_is_pregenerated(true); | 7232 stub.GetCode(isolate)->set_is_pregenerated(true); |
| 7233 if (AllocationSiteInfo::GetMode(kind) != DONT_TRACK_ALLOCATION_SITE) { |
| 7234 T stub1(kind, true); |
| 7235 stub1.GetCode(isolate)->set_is_pregenerated(true); |
| 7236 } |
7233 } | 7237 } |
7234 } | 7238 } |
7235 | 7239 |
7236 | 7240 |
7237 void ArrayConstructorStubBase::GenerateStubsAheadOfTime(Isolate* isolate) { | 7241 void ArrayConstructorStubBase::GenerateStubsAheadOfTime(Isolate* isolate) { |
7238 ArrayConstructorStubAheadOfTimeHelper<ArrayNoArgumentConstructorStub>( | 7242 ArrayConstructorStubAheadOfTimeHelper<ArrayNoArgumentConstructorStub>( |
7239 isolate); | 7243 isolate); |
7240 ArrayConstructorStubAheadOfTimeHelper<ArraySingleArgumentConstructorStub>( | 7244 ArrayConstructorStubAheadOfTimeHelper<ArraySingleArgumentConstructorStub>( |
7241 isolate); | 7245 isolate); |
7242 ArrayConstructorStubAheadOfTimeHelper<ArrayNArgumentsConstructorStub>( | 7246 ArrayConstructorStubAheadOfTimeHelper<ArrayNArgumentsConstructorStub>( |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7328 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); | 7332 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); |
7329 } | 7333 } |
7330 } | 7334 } |
7331 | 7335 |
7332 | 7336 |
7333 #undef __ | 7337 #undef __ |
7334 | 7338 |
7335 } } // namespace v8::internal | 7339 } } // namespace v8::internal |
7336 | 7340 |
7337 #endif // V8_TARGET_ARCH_ARM | 7341 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |