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 2275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2286 | 2286 |
2287 if (create_heap_objects) { | 2287 if (create_heap_objects) { |
2288 // Terminate the partial snapshot cache so we can iterate. | 2288 // Terminate the partial snapshot cache so we can iterate. |
2289 partial_snapshot_cache_.Add(heap_.undefined_value()); | 2289 partial_snapshot_cache_.Add(heap_.undefined_value()); |
2290 } | 2290 } |
2291 | 2291 |
2292 InitializeThreadLocal(); | 2292 InitializeThreadLocal(); |
2293 | 2293 |
2294 bootstrapper_->Initialize(create_heap_objects); | 2294 bootstrapper_->Initialize(create_heap_objects); |
2295 builtins_.SetUp(this, create_heap_objects); | 2295 builtins_.SetUp(this, create_heap_objects); |
| 2296 if (create_heap_objects) { |
| 2297 heap_.CreateFixedStubs(); |
| 2298 } |
2296 | 2299 |
2297 if (FLAG_log_internal_timer_events) { | 2300 if (FLAG_log_internal_timer_events) { |
2298 set_event_logger(Logger::DefaultEventLoggerSentinel); | 2301 set_event_logger(Logger::DefaultEventLoggerSentinel); |
2299 } | 2302 } |
2300 | 2303 |
2301 if (FLAG_trace_hydrogen || FLAG_trace_hydrogen_stubs || FLAG_trace_turbo || | 2304 if (FLAG_trace_hydrogen || FLAG_trace_hydrogen_stubs || FLAG_trace_turbo || |
2302 FLAG_trace_turbo_graph) { | 2305 FLAG_trace_turbo_graph) { |
2303 PrintF("Concurrent recompilation has been disabled for tracing.\n"); | 2306 PrintF("Concurrent recompilation has been disabled for tracing.\n"); |
2304 } else if (OptimizingCompileDispatcher::Enabled()) { | 2307 } else if (OptimizingCompileDispatcher::Enabled()) { |
2305 optimizing_compile_dispatcher_ = new OptimizingCompileDispatcher(this); | 2308 optimizing_compile_dispatcher_ = new OptimizingCompileDispatcher(this); |
(...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3085 // Then check whether this scope intercepts. | 3088 // Then check whether this scope intercepts. |
3086 if ((flag & intercept_mask_)) { | 3089 if ((flag & intercept_mask_)) { |
3087 intercepted_flags_ |= flag; | 3090 intercepted_flags_ |= flag; |
3088 return true; | 3091 return true; |
3089 } | 3092 } |
3090 return false; | 3093 return false; |
3091 } | 3094 } |
3092 | 3095 |
3093 } // namespace internal | 3096 } // namespace internal |
3094 } // namespace v8 | 3097 } // namespace v8 |
OLD | NEW |