OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/isolate.h" | 5 #include "src/isolate.h" |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 | 8 |
9 #include <fstream> // NOLINT(readability/streams) | 9 #include <fstream> // NOLINT(readability/streams) |
10 #include <sstream> | 10 #include <sstream> |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "src/interpreter/interpreter.h" | 27 #include "src/interpreter/interpreter.h" |
28 #include "src/isolate-inl.h" | 28 #include "src/isolate-inl.h" |
29 #include "src/log.h" | 29 #include "src/log.h" |
30 #include "src/messages.h" | 30 #include "src/messages.h" |
31 #include "src/profiler/cpu-profiler.h" | 31 #include "src/profiler/cpu-profiler.h" |
32 #include "src/profiler/sampler.h" | 32 #include "src/profiler/sampler.h" |
33 #include "src/prototype.h" | 33 #include "src/prototype.h" |
34 #include "src/regexp/regexp-stack.h" | 34 #include "src/regexp/regexp-stack.h" |
35 #include "src/runtime-profiler.h" | 35 #include "src/runtime-profiler.h" |
36 #include "src/simulator.h" | 36 #include "src/simulator.h" |
37 #include "src/snapshot/serialize.h" | 37 #include "src/snapshot/deserializer.h" |
| 38 #include "src/snapshot/serializer-common.h" |
38 #include "src/v8.h" | 39 #include "src/v8.h" |
39 #include "src/version.h" | 40 #include "src/version.h" |
40 #include "src/vm-state-inl.h" | 41 #include "src/vm-state-inl.h" |
41 | 42 |
42 | 43 |
43 namespace v8 { | 44 namespace v8 { |
44 namespace internal { | 45 namespace internal { |
45 | 46 |
46 base::Atomic32 ThreadId::highest_thread_id_ = 0; | 47 base::Atomic32 ThreadId::highest_thread_id_ = 0; |
47 | 48 |
(...skipping 2244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2292 time_millis_at_init_ = heap_.MonotonicallyIncreasingTimeInMs(); | 2293 time_millis_at_init_ = heap_.MonotonicallyIncreasingTimeInMs(); |
2293 | 2294 |
2294 heap_.NotifyDeserializationComplete(); | 2295 heap_.NotifyDeserializationComplete(); |
2295 | 2296 |
2296 if (!create_heap_objects) { | 2297 if (!create_heap_objects) { |
2297 // Now that the heap is consistent, it's OK to generate the code for the | 2298 // Now that the heap is consistent, it's OK to generate the code for the |
2298 // deopt entry table that might have been referred to by optimized code in | 2299 // deopt entry table that might have been referred to by optimized code in |
2299 // the snapshot. | 2300 // the snapshot. |
2300 HandleScope scope(this); | 2301 HandleScope scope(this); |
2301 Deoptimizer::EnsureCodeForDeoptimizationEntry( | 2302 Deoptimizer::EnsureCodeForDeoptimizationEntry( |
2302 this, | 2303 this, Deoptimizer::LAZY, |
2303 Deoptimizer::LAZY, | 2304 ExternalReferenceTable::kDeoptTableSerializeEntryCount - 1); |
2304 kDeoptTableSerializeEntryCount - 1); | |
2305 } | 2305 } |
2306 | 2306 |
2307 if (!serializer_enabled()) { | 2307 if (!serializer_enabled()) { |
2308 // Ensure that all stubs which need to be generated ahead of time, but | 2308 // Ensure that all stubs which need to be generated ahead of time, but |
2309 // cannot be serialized into the snapshot have been generated. | 2309 // cannot be serialized into the snapshot have been generated. |
2310 HandleScope scope(this); | 2310 HandleScope scope(this); |
2311 CodeStub::GenerateFPStubs(this); | 2311 CodeStub::GenerateFPStubs(this); |
2312 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(this); | 2312 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(this); |
2313 StubFailureTrampolineStub::GenerateAheadOfTime(this); | 2313 StubFailureTrampolineStub::GenerateAheadOfTime(this); |
2314 } | 2314 } |
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2972 // Then check whether this scope intercepts. | 2972 // Then check whether this scope intercepts. |
2973 if ((flag & intercept_mask_)) { | 2973 if ((flag & intercept_mask_)) { |
2974 intercepted_flags_ |= flag; | 2974 intercepted_flags_ |= flag; |
2975 return true; | 2975 return true; |
2976 } | 2976 } |
2977 return false; | 2977 return false; |
2978 } | 2978 } |
2979 | 2979 |
2980 } // namespace internal | 2980 } // namespace internal |
2981 } // namespace v8 | 2981 } // namespace v8 |
OLD | NEW |