| 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 <stdlib.h> | 5 #include <stdlib.h> |
| 6 | 6 |
| 7 #include <fstream> // NOLINT(readability/streams) | 7 #include <fstream> // NOLINT(readability/streams) |
| 8 #include <sstream> | 8 #include <sstream> |
| 9 | 9 |
| 10 #include "src/v8.h" | 10 #include "src/v8.h" |
| (...skipping 2159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2170 if (FLAG_trace_hydrogen || FLAG_trace_hydrogen_stubs) { | 2170 if (FLAG_trace_hydrogen || FLAG_trace_hydrogen_stubs) { |
| 2171 PrintF("Concurrent recompilation has been disabled for tracing.\n"); | 2171 PrintF("Concurrent recompilation has been disabled for tracing.\n"); |
| 2172 } else if (OptimizingCompileDispatcher::Enabled()) { | 2172 } else if (OptimizingCompileDispatcher::Enabled()) { |
| 2173 optimizing_compile_dispatcher_ = new OptimizingCompileDispatcher(this); | 2173 optimizing_compile_dispatcher_ = new OptimizingCompileDispatcher(this); |
| 2174 } | 2174 } |
| 2175 | 2175 |
| 2176 // Initialize runtime profiler before deserialization, because collections may | 2176 // Initialize runtime profiler before deserialization, because collections may |
| 2177 // occur, clearing/updating ICs. | 2177 // occur, clearing/updating ICs. |
| 2178 runtime_profiler_ = new RuntimeProfiler(this); | 2178 runtime_profiler_ = new RuntimeProfiler(this); |
| 2179 | 2179 |
| 2180 if (create_heap_objects) { |
| 2181 if (!bootstrapper_->CreateCodeStubContext(this)) { |
| 2182 return false; |
| 2183 } |
| 2184 } |
| 2185 |
| 2180 // If we are deserializing, read the state into the now-empty heap. | 2186 // If we are deserializing, read the state into the now-empty heap. |
| 2181 if (!create_heap_objects) { | 2187 if (!create_heap_objects) { |
| 2182 des->Deserialize(this); | 2188 des->Deserialize(this); |
| 2183 } | 2189 } |
| 2184 stub_cache_->Initialize(); | 2190 stub_cache_->Initialize(); |
| 2185 | 2191 |
| 2186 // Finish initialization of ThreadLocal after deserialization is done. | 2192 // Finish initialization of ThreadLocal after deserialization is done. |
| 2187 clear_pending_exception(); | 2193 clear_pending_exception(); |
| 2188 clear_pending_message(); | 2194 clear_pending_message(); |
| 2189 clear_scheduled_exception(); | 2195 clear_scheduled_exception(); |
| (...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2801 // Then check whether this scope intercepts. | 2807 // Then check whether this scope intercepts. |
| 2802 if ((flag & intercept_mask_)) { | 2808 if ((flag & intercept_mask_)) { |
| 2803 intercepted_flags_ |= flag; | 2809 intercepted_flags_ |= flag; |
| 2804 return true; | 2810 return true; |
| 2805 } | 2811 } |
| 2806 return false; | 2812 return false; |
| 2807 } | 2813 } |
| 2808 | 2814 |
| 2809 } // namespace internal | 2815 } // namespace internal |
| 2810 } // namespace v8 | 2816 } // namespace v8 |
| OLD | NEW |