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

Side by Side Diff: src/isolate.cc

Issue 2061623002: Introduce JIT code events dispatcher for the isolate. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebaseline Created 4 years, 6 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
« no previous file with comments | « src/isolate.h ('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 "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 1844 matching lines...) Expand 10 before | Expand all | Expand 10 after
1855 // TODO(bmeurer) Initialized lazily because it depends on flags; can 1855 // TODO(bmeurer) Initialized lazily because it depends on flags; can
1856 // be fixed once the default isolate cleanup is done. 1856 // be fixed once the default isolate cleanup is done.
1857 random_number_generator_(NULL), 1857 random_number_generator_(NULL),
1858 rail_mode_(PERFORMANCE_DEFAULT), 1858 rail_mode_(PERFORMANCE_DEFAULT),
1859 serializer_enabled_(enable_serializer), 1859 serializer_enabled_(enable_serializer),
1860 has_fatal_error_(false), 1860 has_fatal_error_(false),
1861 initialized_from_snapshot_(false), 1861 initialized_from_snapshot_(false),
1862 is_tail_call_elimination_enabled_(true), 1862 is_tail_call_elimination_enabled_(true),
1863 cpu_profiler_(NULL), 1863 cpu_profiler_(NULL),
1864 heap_profiler_(NULL), 1864 heap_profiler_(NULL),
1865 code_event_dispatcher_(new CodeEventDispatcher()),
1865 function_entry_hook_(NULL), 1866 function_entry_hook_(NULL),
1866 deferred_handles_head_(NULL), 1867 deferred_handles_head_(NULL),
1867 optimizing_compile_dispatcher_(NULL), 1868 optimizing_compile_dispatcher_(NULL),
1868 stress_deopt_count_(0), 1869 stress_deopt_count_(0),
1869 virtual_handler_register_(NULL), 1870 virtual_handler_register_(NULL),
1870 virtual_slot_register_(NULL), 1871 virtual_slot_register_(NULL),
1871 next_optimization_id_(0), 1872 next_optimization_id_(0),
1872 js_calls_from_api_counter_(0), 1873 js_calls_from_api_counter_(0),
1873 #if TRACE_MAPS 1874 #if TRACE_MAPS
1874 next_unique_sfi_id_(0), 1875 next_unique_sfi_id_(0),
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
2012 logger_->TearDown(); 2013 logger_->TearDown();
2013 2014
2014 delete interpreter_; 2015 delete interpreter_;
2015 interpreter_ = NULL; 2016 interpreter_ = NULL;
2016 2017
2017 cancelable_task_manager()->CancelAndWait(); 2018 cancelable_task_manager()->CancelAndWait();
2018 2019
2019 delete cpu_profiler_; 2020 delete cpu_profiler_;
2020 cpu_profiler_ = NULL; 2021 cpu_profiler_ = NULL;
2021 2022
2023 code_event_dispatcher_.reset();
2024
2022 delete root_index_map_; 2025 delete root_index_map_;
2023 root_index_map_ = NULL; 2026 root_index_map_ = NULL;
2024 2027
2025 ClearSerializerData(); 2028 ClearSerializerData();
2026 } 2029 }
2027 2030
2028 2031
2029 void Isolate::SetIsolateThreadLocals(Isolate* isolate, 2032 void Isolate::SetIsolateThreadLocals(Isolate* isolate,
2030 PerIsolateThreadData* data) { 2033 PerIsolateThreadData* data) {
2031 base::Thread::SetThreadLocal(isolate_key_, isolate); 2034 base::Thread::SetThreadLocal(isolate_key_, isolate);
(...skipping 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after
3059 // Then check whether this scope intercepts. 3062 // Then check whether this scope intercepts.
3060 if ((flag & intercept_mask_)) { 3063 if ((flag & intercept_mask_)) {
3061 intercepted_flags_ |= flag; 3064 intercepted_flags_ |= flag;
3062 return true; 3065 return true;
3063 } 3066 }
3064 return false; 3067 return false;
3065 } 3068 }
3066 3069
3067 } // namespace internal 3070 } // namespace internal
3068 } // namespace v8 3071 } // namespace v8
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | src/log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698