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 2184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2195 if (FLAG_trace_hydrogen || FLAG_trace_hydrogen_stubs) { | 2195 if (FLAG_trace_hydrogen || FLAG_trace_hydrogen_stubs) { |
2196 PrintF("Concurrent recompilation has been disabled for tracing.\n"); | 2196 PrintF("Concurrent recompilation has been disabled for tracing.\n"); |
2197 } else if (OptimizingCompileDispatcher::Enabled()) { | 2197 } else if (OptimizingCompileDispatcher::Enabled()) { |
2198 optimizing_compile_dispatcher_ = new OptimizingCompileDispatcher(this); | 2198 optimizing_compile_dispatcher_ = new OptimizingCompileDispatcher(this); |
2199 } | 2199 } |
2200 | 2200 |
2201 // Initialize runtime profiler before deserialization, because collections may | 2201 // Initialize runtime profiler before deserialization, because collections may |
2202 // occur, clearing/updating ICs. | 2202 // occur, clearing/updating ICs. |
2203 runtime_profiler_ = new RuntimeProfiler(this); | 2203 runtime_profiler_ = new RuntimeProfiler(this); |
2204 | 2204 |
2205 if (create_heap_objects) { | |
2206 if (!bootstrapper_->CreateCodeStubContext(this)) { | |
2207 return false; | |
2208 } | |
2209 } | |
2210 | |
2211 // If we are deserializing, read the state into the now-empty heap. | 2205 // If we are deserializing, read the state into the now-empty heap. |
2212 if (!create_heap_objects) { | 2206 if (!create_heap_objects) { |
2213 des->Deserialize(this); | 2207 des->Deserialize(this); |
2214 } | 2208 } |
2215 stub_cache_->Initialize(); | 2209 stub_cache_->Initialize(); |
2216 | 2210 |
2217 if (FLAG_ignition) { | 2211 if (FLAG_ignition) { |
2218 interpreter_->Initialize(); | 2212 interpreter_->Initialize(); |
2219 } | 2213 } |
2220 | 2214 |
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2844 // Then check whether this scope intercepts. | 2838 // Then check whether this scope intercepts. |
2845 if ((flag & intercept_mask_)) { | 2839 if ((flag & intercept_mask_)) { |
2846 intercepted_flags_ |= flag; | 2840 intercepted_flags_ |= flag; |
2847 return true; | 2841 return true; |
2848 } | 2842 } |
2849 return false; | 2843 return false; |
2850 } | 2844 } |
2851 | 2845 |
2852 } // namespace internal | 2846 } // namespace internal |
2853 } // namespace v8 | 2847 } // namespace v8 |
OLD | NEW |