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

Side by Side Diff: src/isolate.cc

Issue 1414483004: Add the rate of js invocations from the api as a signal of idleness (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comments from Hannes Created 5 years, 1 month 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
« no previous file with comments | « src/isolate.h ('k') | test/cctest/cctest.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 "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 1774 matching lines...) Expand 10 before | Expand all | Expand 10 after
1785 initialized_from_snapshot_(false), 1785 initialized_from_snapshot_(false),
1786 cpu_profiler_(NULL), 1786 cpu_profiler_(NULL),
1787 heap_profiler_(NULL), 1787 heap_profiler_(NULL),
1788 function_entry_hook_(NULL), 1788 function_entry_hook_(NULL),
1789 deferred_handles_head_(NULL), 1789 deferred_handles_head_(NULL),
1790 optimizing_compile_dispatcher_(NULL), 1790 optimizing_compile_dispatcher_(NULL),
1791 stress_deopt_count_(0), 1791 stress_deopt_count_(0),
1792 virtual_handler_register_(NULL), 1792 virtual_handler_register_(NULL),
1793 virtual_slot_register_(NULL), 1793 virtual_slot_register_(NULL),
1794 next_optimization_id_(0), 1794 next_optimization_id_(0),
1795 js_calls_from_api_counter_(0),
1795 #if TRACE_MAPS 1796 #if TRACE_MAPS
1796 next_unique_sfi_id_(0), 1797 next_unique_sfi_id_(0),
1797 #endif 1798 #endif
1798 use_counter_callback_(NULL), 1799 use_counter_callback_(NULL),
1799 basic_block_profiler_(NULL), 1800 basic_block_profiler_(NULL),
1800 abort_on_uncaught_exception_callback_(NULL) { 1801 abort_on_uncaught_exception_callback_(NULL) {
1801 { 1802 {
1802 base::LockGuard<base::Mutex> lock_guard(thread_data_table_mutex_.Pointer()); 1803 base::LockGuard<base::Mutex> lock_guard(thread_data_table_mutex_.Pointer());
1803 CHECK(thread_data_table_); 1804 CHECK(thread_data_table_);
1804 } 1805 }
(...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after
2850 // Then check whether this scope intercepts. 2851 // Then check whether this scope intercepts.
2851 if ((flag & intercept_mask_)) { 2852 if ((flag & intercept_mask_)) {
2852 intercepted_flags_ |= flag; 2853 intercepted_flags_ |= flag;
2853 return true; 2854 return true;
2854 } 2855 }
2855 return false; 2856 return false;
2856 } 2857 }
2857 2858
2858 } // namespace internal 2859 } // namespace internal
2859 } // namespace v8 2860 } // namespace v8
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | test/cctest/cctest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698