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

Side by Side Diff: src/isolate.cc

Issue 16304008: release callback table memory in ~Isolate (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | 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 1989 matching lines...) Expand 10 before | Expand all | Expand 10 after
2000 delete memory_allocator_; 2000 delete memory_allocator_;
2001 memory_allocator_ = NULL; 2001 memory_allocator_ = NULL;
2002 delete code_range_; 2002 delete code_range_;
2003 code_range_ = NULL; 2003 code_range_ = NULL;
2004 delete global_handles_; 2004 delete global_handles_;
2005 global_handles_ = NULL; 2005 global_handles_ = NULL;
2006 2006
2007 delete external_reference_table_; 2007 delete external_reference_table_;
2008 external_reference_table_ = NULL; 2008 external_reference_table_ = NULL;
2009 2009
2010 delete callback_table_;
2011 callback_table_ = NULL;
2012
2010 #ifdef ENABLE_DEBUGGER_SUPPORT 2013 #ifdef ENABLE_DEBUGGER_SUPPORT
2011 delete debugger_; 2014 delete debugger_;
2012 debugger_ = NULL; 2015 debugger_ = NULL;
2013 delete debug_; 2016 delete debug_;
2014 debug_ = NULL; 2017 debug_ = NULL;
2015 #endif 2018 #endif
2016 } 2019 }
2017 2020
2018 2021
2019 void Isolate::InitializeThreadLocal() { 2022 void Isolate::InitializeThreadLocal() {
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
2468 2471
2469 #ifdef DEBUG 2472 #ifdef DEBUG
2470 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 2473 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
2471 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 2474 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
2472 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 2475 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
2473 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 2476 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
2474 #undef ISOLATE_FIELD_OFFSET 2477 #undef ISOLATE_FIELD_OFFSET
2475 #endif 2478 #endif
2476 2479
2477 } } // namespace v8::internal 2480 } } // 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