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

Side by Side Diff: src/isolate.cc

Issue 388783004: Do not expose all timer events to the API callback. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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/ic.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 "src/v8.h" 7 #include "src/v8.h"
8 8
9 #include "src/ast.h" 9 #include "src/ast.h"
10 #include "src/base/platform/platform.h" 10 #include "src/base/platform/platform.h"
(...skipping 1860 matching lines...) Expand 10 before | Expand all | Expand 10 after
1871 // Terminate the cache array with the sentinel so we can iterate. 1871 // Terminate the cache array with the sentinel so we can iterate.
1872 PushToPartialSnapshotCache(heap_.undefined_value()); 1872 PushToPartialSnapshotCache(heap_.undefined_value());
1873 } 1873 }
1874 1874
1875 InitializeThreadLocal(); 1875 InitializeThreadLocal();
1876 1876
1877 bootstrapper_->Initialize(create_heap_objects); 1877 bootstrapper_->Initialize(create_heap_objects);
1878 builtins_.SetUp(this, create_heap_objects); 1878 builtins_.SetUp(this, create_heap_objects);
1879 1879
1880 if (FLAG_log_internal_timer_events) { 1880 if (FLAG_log_internal_timer_events) {
1881 set_event_logger(Logger::LogInternalEvents); 1881 set_event_logger(Logger::DefaultTimerEventsLogger);
1882 } else { 1882 } else {
1883 set_event_logger(Logger::EmptyLogInternalEvents); 1883 set_event_logger(Logger::EmptyTimerEventsLogger);
1884 } 1884 }
1885 1885
1886 // Set default value if not yet set. 1886 // Set default value if not yet set.
1887 // TODO(yangguo): move this to ResourceConstraints::ConfigureDefaults 1887 // TODO(yangguo): move this to ResourceConstraints::ConfigureDefaults
1888 // once ResourceConstraints becomes an argument to the Isolate constructor. 1888 // once ResourceConstraints becomes an argument to the Isolate constructor.
1889 if (max_available_threads_ < 1) { 1889 if (max_available_threads_ < 1) {
1890 // Choose the default between 1 and 4. 1890 // Choose the default between 1 and 4.
1891 max_available_threads_ = 1891 max_available_threads_ =
1892 Max(Min(base::OS::NumberOfProcessorsOnline(), 4), 1); 1892 Max(Min(base::OS::NumberOfProcessorsOnline(), 4), 1);
1893 } 1893 }
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
2348 if (prev_ && prev_->Intercept(flag)) return true; 2348 if (prev_ && prev_->Intercept(flag)) return true;
2349 // Then check whether this scope intercepts. 2349 // Then check whether this scope intercepts.
2350 if ((flag & intercept_mask_)) { 2350 if ((flag & intercept_mask_)) {
2351 intercepted_flags_ |= flag; 2351 intercepted_flags_ |= flag;
2352 return true; 2352 return true;
2353 } 2353 }
2354 return false; 2354 return false;
2355 } 2355 }
2356 2356
2357 } } // namespace v8::internal 2357 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698