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

Side by Side Diff: src/isolate.cc

Issue 1132943007: Fixed various simulator-related space leaks. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed a leak in ARM64 disassembler. Created 5 years, 7 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/arm64/simulator-arm64.cc ('k') | src/mips/simulator-mips.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 #include <sstream> 8 #include <sstream>
9 9
10 #include "src/v8.h" 10 #include "src/v8.h"
(...skipping 1983 matching lines...) Expand 10 before | Expand all | Expand 10 after
1994 eternal_handles_ = NULL; 1994 eternal_handles_ = NULL;
1995 1995
1996 delete string_stream_debug_object_cache_; 1996 delete string_stream_debug_object_cache_;
1997 string_stream_debug_object_cache_ = NULL; 1997 string_stream_debug_object_cache_ = NULL;
1998 1998
1999 delete random_number_generator_; 1999 delete random_number_generator_;
2000 random_number_generator_ = NULL; 2000 random_number_generator_ = NULL;
2001 2001
2002 delete debug_; 2002 delete debug_;
2003 debug_ = NULL; 2003 debug_ = NULL;
2004
2005 #if USE_SIMULATOR
2006 Simulator::TearDown(simulator_i_cache_, simulator_redirection_);
2007 simulator_i_cache_ = nullptr;
2008 simulator_redirection_ = nullptr;
2009 #endif
2004 } 2010 }
2005 2011
2006 2012
2007 void Isolate::InitializeThreadLocal() { 2013 void Isolate::InitializeThreadLocal() {
2008 thread_local_top_.isolate_ = this; 2014 thread_local_top_.isolate_ = this;
2009 thread_local_top_.Initialize(); 2015 thread_local_top_.Initialize();
2010 } 2016 }
2011 2017
2012 2018
2013 bool Isolate::PropagatePendingExceptionToExternalTryCatch() { 2019 bool Isolate::PropagatePendingExceptionToExternalTryCatch() {
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after
2779 if (prev_ && prev_->Intercept(flag)) return true; 2785 if (prev_ && prev_->Intercept(flag)) return true;
2780 // Then check whether this scope intercepts. 2786 // Then check whether this scope intercepts.
2781 if ((flag & intercept_mask_)) { 2787 if ((flag & intercept_mask_)) {
2782 intercepted_flags_ |= flag; 2788 intercepted_flags_ |= flag;
2783 return true; 2789 return true;
2784 } 2790 }
2785 return false; 2791 return false;
2786 } 2792 }
2787 2793
2788 } } // namespace v8::internal 2794 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm64/simulator-arm64.cc ('k') | src/mips/simulator-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698