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

Side by Side Diff: src/isolate.cc

Issue 18324007: Plug leaked string stream debug object cache in Isolate. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | « no previous file | no next file » | 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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 11 matching lines...) Expand all
22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #include <stdlib.h> 28 #include <stdlib.h>
29 29
30 #include "v8.h" 30 #include "v8.h"
31 31
32 #include "allocation-inl.h"
32 #include "ast.h" 33 #include "ast.h"
33 #include "bootstrapper.h" 34 #include "bootstrapper.h"
34 #include "codegen.h" 35 #include "codegen.h"
35 #include "compilation-cache.h" 36 #include "compilation-cache.h"
36 #include "debug.h" 37 #include "debug.h"
37 #include "deoptimizer.h" 38 #include "deoptimizer.h"
38 #include "heap-profiler.h" 39 #include "heap-profiler.h"
39 #include "hydrogen.h" 40 #include "hydrogen.h"
40 #include "isolate.h" 41 #include "isolate.h"
41 #include "lithium-allocator.h" 42 #include "lithium-allocator.h"
(...skipping 1953 matching lines...) Expand 10 before | Expand all | Expand 10 after
1995 delete string_tracker_; 1996 delete string_tracker_;
1996 string_tracker_ = NULL; 1997 string_tracker_ = NULL;
1997 1998
1998 delete memory_allocator_; 1999 delete memory_allocator_;
1999 memory_allocator_ = NULL; 2000 memory_allocator_ = NULL;
2000 delete code_range_; 2001 delete code_range_;
2001 code_range_ = NULL; 2002 code_range_ = NULL;
2002 delete global_handles_; 2003 delete global_handles_;
2003 global_handles_ = NULL; 2004 global_handles_ = NULL;
2004 2005
2006 delete string_stream_debug_object_cache_;
2007 string_stream_debug_object_cache_ = NULL;
2008
2005 delete external_reference_table_; 2009 delete external_reference_table_;
2006 external_reference_table_ = NULL; 2010 external_reference_table_ = NULL;
2007 2011
2008 delete callback_table_; 2012 delete callback_table_;
2009 callback_table_ = NULL; 2013 callback_table_ = NULL;
2010 2014
2011 #ifdef ENABLE_DEBUGGER_SUPPORT 2015 #ifdef ENABLE_DEBUGGER_SUPPORT
2012 delete debugger_; 2016 delete debugger_;
2013 debugger_ = NULL; 2017 debugger_ = NULL;
2014 delete debug_; 2018 delete debug_;
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
2452 2456
2453 #ifdef DEBUG 2457 #ifdef DEBUG
2454 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 2458 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
2455 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 2459 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
2456 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 2460 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
2457 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 2461 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
2458 #undef ISOLATE_FIELD_OFFSET 2462 #undef ISOLATE_FIELD_OFFSET
2459 #endif 2463 #endif
2460 2464
2461 } } // namespace v8::internal 2465 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698