Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(321)

Side by Side Diff: src/isolate.cc

Issue 655813002: Fix V8's default timer event logger. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/counters.cc ('k') | src/log.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/counters.cc ('k') | src/log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698