| 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 2210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2221 | 2221 |
| 2222 deoptimizer_data_ = new DeoptimizerData(memory_allocator_); | 2222 deoptimizer_data_ = new DeoptimizerData(memory_allocator_); |
| 2223 | 2223 |
| 2224 const bool create_heap_objects = (des == NULL); | 2224 const bool create_heap_objects = (des == NULL); |
| 2225 if (create_heap_objects && !heap_.CreateHeapObjects()) { | 2225 if (create_heap_objects && !heap_.CreateHeapObjects()) { |
| 2226 V8::FatalProcessOutOfMemory("heap object creation"); | 2226 V8::FatalProcessOutOfMemory("heap object creation"); |
| 2227 return false; | 2227 return false; |
| 2228 } | 2228 } |
| 2229 | 2229 |
| 2230 if (create_heap_objects) { | 2230 if (create_heap_objects) { |
| 2231 // Terminate the cache array with the sentinel so we can iterate. | 2231 // Terminate the partial snapshot cache so we can iterate. |
| 2232 partial_snapshot_cache_.Add(heap_.undefined_value()); | 2232 partial_snapshot_cache_.Add(heap_.undefined_value()); |
| 2233 } | 2233 } |
| 2234 | 2234 |
| 2235 InitializeThreadLocal(); | 2235 InitializeThreadLocal(); |
| 2236 | 2236 |
| 2237 bootstrapper_->Initialize(create_heap_objects); | 2237 bootstrapper_->Initialize(create_heap_objects); |
| 2238 builtins_.SetUp(this, create_heap_objects); | 2238 builtins_.SetUp(this, create_heap_objects); |
| 2239 | 2239 |
| 2240 if (FLAG_log_internal_timer_events) { | 2240 if (FLAG_log_internal_timer_events) { |
| 2241 set_event_logger(Logger::DefaultEventLoggerSentinel); | 2241 set_event_logger(Logger::DefaultEventLoggerSentinel); |
| (...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2975 // Then check whether this scope intercepts. | 2975 // Then check whether this scope intercepts. |
| 2976 if ((flag & intercept_mask_)) { | 2976 if ((flag & intercept_mask_)) { |
| 2977 intercepted_flags_ |= flag; | 2977 intercepted_flags_ |= flag; |
| 2978 return true; | 2978 return true; |
| 2979 } | 2979 } |
| 2980 return false; | 2980 return false; |
| 2981 } | 2981 } |
| 2982 | 2982 |
| 2983 } // namespace internal | 2983 } // namespace internal |
| 2984 } // namespace v8 | 2984 } // namespace v8 |
| OLD | NEW |