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::DefaultTimerEventsLogger); | |
1916 } else { | |
1917 set_event_logger(Logger::EmptyTimerEventsLogger); | |
1918 } | |
1919 | |
1920 // Set default value if not yet set. | 1914 // Set default value if not yet set. |
1921 // TODO(yangguo): move this to ResourceConstraints::ConfigureDefaults | 1915 // TODO(yangguo): move this to ResourceConstraints::ConfigureDefaults |
1922 // once ResourceConstraints becomes an argument to the Isolate constructor. | 1916 // once ResourceConstraints becomes an argument to the Isolate constructor. |
1923 if (max_available_threads_ < 1) { | 1917 if (max_available_threads_ < 1) { |
1924 // Choose the default between 1 and 4. | 1918 // Choose the default between 1 and 4. |
1925 max_available_threads_ = | 1919 max_available_threads_ = |
1926 Max(Min(base::SysInfo::NumberOfProcessors(), 4), 1); | 1920 Max(Min(base::SysInfo::NumberOfProcessors(), 4), 1); |
1927 } | 1921 } |
1928 | 1922 |
1929 if (FLAG_trace_hydrogen || FLAG_trace_hydrogen_stubs) { | 1923 if (FLAG_trace_hydrogen || FLAG_trace_hydrogen_stubs) { |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2403 if (prev_ && prev_->Intercept(flag)) return true; | 2397 if (prev_ && prev_->Intercept(flag)) return true; |
2404 // Then check whether this scope intercepts. | 2398 // Then check whether this scope intercepts. |
2405 if ((flag & intercept_mask_)) { | 2399 if ((flag & intercept_mask_)) { |
2406 intercepted_flags_ |= flag; | 2400 intercepted_flags_ |= flag; |
2407 return true; | 2401 return true; |
2408 } | 2402 } |
2409 return false; | 2403 return false; |
2410 } | 2404 } |
2411 | 2405 |
2412 } } // namespace v8::internal | 2406 } } // namespace v8::internal |
OLD | NEW |