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 | 8 |
9 #include "src/v8.h" | 9 #include "src/v8.h" |
10 | 10 |
(...skipping 1893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1904 if (create_heap_objects) { | 1904 if (create_heap_objects) { |
1905 // Terminate the cache array with the sentinel so we can iterate. | 1905 // Terminate the cache array with the sentinel so we can iterate. |
1906 PushToPartialSnapshotCache(heap_.undefined_value()); | 1906 PushToPartialSnapshotCache(heap_.undefined_value()); |
1907 } | 1907 } |
1908 | 1908 |
1909 InitializeThreadLocal(); | 1909 InitializeThreadLocal(); |
1910 | 1910 |
1911 bootstrapper_->Initialize(create_heap_objects); | 1911 bootstrapper_->Initialize(create_heap_objects); |
1912 builtins_.SetUp(this, create_heap_objects); | 1912 builtins_.SetUp(this, create_heap_objects); |
1913 | 1913 |
| 1914 if (FLAG_log_internal_timer_events) { |
| 1915 set_event_logger(Logger::DefaultEventLoggerSentinel); |
| 1916 } |
| 1917 |
1914 // Set default value if not yet set. | 1918 // Set default value if not yet set. |
1915 // TODO(yangguo): move this to ResourceConstraints::ConfigureDefaults | 1919 // TODO(yangguo): move this to ResourceConstraints::ConfigureDefaults |
1916 // once ResourceConstraints becomes an argument to the Isolate constructor. | 1920 // once ResourceConstraints becomes an argument to the Isolate constructor. |
1917 if (max_available_threads_ < 1) { | 1921 if (max_available_threads_ < 1) { |
1918 // Choose the default between 1 and 4. | 1922 // Choose the default between 1 and 4. |
1919 max_available_threads_ = | 1923 max_available_threads_ = |
1920 Max(Min(base::SysInfo::NumberOfProcessors(), 4), 1); | 1924 Max(Min(base::SysInfo::NumberOfProcessors(), 4), 1); |
1921 } | 1925 } |
1922 | 1926 |
1923 if (FLAG_trace_hydrogen || FLAG_trace_hydrogen_stubs) { | 1927 if (FLAG_trace_hydrogen || FLAG_trace_hydrogen_stubs) { |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2397 if (prev_ && prev_->Intercept(flag)) return true; | 2401 if (prev_ && prev_->Intercept(flag)) return true; |
2398 // Then check whether this scope intercepts. | 2402 // Then check whether this scope intercepts. |
2399 if ((flag & intercept_mask_)) { | 2403 if ((flag & intercept_mask_)) { |
2400 intercepted_flags_ |= flag; | 2404 intercepted_flags_ |= flag; |
2401 return true; | 2405 return true; |
2402 } | 2406 } |
2403 return false; | 2407 return false; |
2404 } | 2408 } |
2405 | 2409 |
2406 } } // namespace v8::internal | 2410 } } // namespace v8::internal |
OLD | NEW |