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 2142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2153 Deoptimizer::EnsureCodeForDeoptimizationEntry( | 2153 Deoptimizer::EnsureCodeForDeoptimizationEntry( |
2154 this, | 2154 this, |
2155 Deoptimizer::LAZY, | 2155 Deoptimizer::LAZY, |
2156 kDeoptTableSerializeEntryCount - 1); | 2156 kDeoptTableSerializeEntryCount - 1); |
2157 } | 2157 } |
2158 | 2158 |
2159 if (!Serializer::enabled()) { | 2159 if (!Serializer::enabled()) { |
2160 // Ensure that all stubs which need to be generated ahead of time, but | 2160 // Ensure that all stubs which need to be generated ahead of time, but |
2161 // cannot be serialized into the snapshot have been generated. | 2161 // cannot be serialized into the snapshot have been generated. |
2162 HandleScope scope(this); | 2162 HandleScope scope(this); |
2163 CodeStub::GenerateFPStubs(this); | |
2163 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(this); | 2164 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(this); |
2164 CodeStub::GenerateFPStubs(this); | |
2165 StubFailureTrampolineStub::GenerateAheadOfTime(this); | 2165 StubFailureTrampolineStub::GenerateAheadOfTime(this); |
2166 // TODO(mstarzinger): The following is an ugly hack to make sure the | |
2167 // interface descriptor is initialized even when stubs have been | |
2168 // deserialized out of the snapshot without the graph builder. | |
Michael Starzinger
2013/03/13 14:29:46
I haven't found a clean solution for that yet, nee
| |
2169 FastCloneShallowArrayStub stub(FastCloneShallowArrayStub::CLONE_ELEMENTS, | |
2170 DONT_TRACK_ALLOCATION_SITE, 0); | |
2171 stub.InitializeInterfaceDescriptor( | |
2172 this, code_stub_interface_descriptor(CodeStub::FastCloneShallowArray)); | |
2166 } | 2173 } |
2167 | 2174 |
2168 if (FLAG_parallel_recompilation) optimizing_compiler_thread_.Start(); | 2175 if (FLAG_parallel_recompilation) optimizing_compiler_thread_.Start(); |
2169 | 2176 |
2170 if (FLAG_parallel_marking && FLAG_marking_threads == 0) { | 2177 if (FLAG_parallel_marking && FLAG_marking_threads == 0) { |
2171 FLAG_marking_threads = SystemThreadManager:: | 2178 FLAG_marking_threads = SystemThreadManager:: |
2172 NumberOfParallelSystemThreads( | 2179 NumberOfParallelSystemThreads( |
2173 SystemThreadManager::PARALLEL_MARKING); | 2180 SystemThreadManager::PARALLEL_MARKING); |
2174 } | 2181 } |
2175 if (FLAG_marking_threads > 0) { | 2182 if (FLAG_marking_threads > 0) { |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2341 | 2348 |
2342 #ifdef DEBUG | 2349 #ifdef DEBUG |
2343 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 2350 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
2344 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); | 2351 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); |
2345 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 2352 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
2346 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 2353 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
2347 #undef ISOLATE_FIELD_OFFSET | 2354 #undef ISOLATE_FIELD_OFFSET |
2348 #endif | 2355 #endif |
2349 | 2356 |
2350 } } // namespace v8::internal | 2357 } } // namespace v8::internal |
OLD | NEW |