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

Side by Side Diff: src/log.cc

Issue 6347005: [Isolates] Fix memory leaks in Isolate and Logger. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/isolates
Patch Set: Created 9 years, 11 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 | « src/log.h ('k') | 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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 heap_profiler_nesting_(0), 341 heap_profiler_nesting_(0),
342 log_(new Log(this)), 342 log_(new Log(this)),
343 is_initialized_(false), 343 is_initialized_(false),
344 last_address_(NULL), 344 last_address_(NULL),
345 prev_sp_(NULL), 345 prev_sp_(NULL),
346 prev_function_(NULL), 346 prev_function_(NULL),
347 prev_to_(NULL), 347 prev_to_(NULL),
348 prev_code_(NULL) { 348 prev_code_(NULL) {
349 } 349 }
350 350
351 Logger::~Logger() {
352 delete log_;
353 }
354
351 #define DECLARE_LONG_EVENT(ignore1, long_name, ignore2) long_name, 355 #define DECLARE_LONG_EVENT(ignore1, long_name, ignore2) long_name,
352 static const char* const kLongLogEventsNames[Logger::NUMBER_OF_LOG_EVENTS] = { 356 static const char* const kLongLogEventsNames[Logger::NUMBER_OF_LOG_EVENTS] = {
353 LOG_EVENTS_AND_TAGS_LIST(DECLARE_LONG_EVENT) 357 LOG_EVENTS_AND_TAGS_LIST(DECLARE_LONG_EVENT)
354 }; 358 };
355 #undef DECLARE_LONG_EVENT 359 #undef DECLARE_LONG_EVENT
356 360
357 #define DECLARE_SHORT_EVENT(ignore1, ignore2, short_name) short_name, 361 #define DECLARE_SHORT_EVENT(ignore1, ignore2, short_name) short_name,
358 static const char* const 362 static const char* const
359 kCompressedLogEventsNames[Logger::NUMBER_OF_LOG_EVENTS] = { 363 kCompressedLogEventsNames[Logger::NUMBER_OF_LOG_EVENTS] = {
360 LOG_EVENTS_AND_TAGS_LIST(DECLARE_SHORT_EVENT) 364 LOG_EVENTS_AND_TAGS_LIST(DECLARE_SHORT_EVENT)
(...skipping 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after
1611 } 1615 }
1612 // Otherwise, if the sliding state window computation has not been 1616 // Otherwise, if the sliding state window computation has not been
1613 // started we do it now. 1617 // started we do it now.
1614 if (sliding_state_window_ == NULL) { 1618 if (sliding_state_window_ == NULL) {
1615 sliding_state_window_ = new SlidingStateWindow(); 1619 sliding_state_window_ = new SlidingStateWindow();
1616 } 1620 }
1617 #endif 1621 #endif
1618 } 1622 }
1619 1623
1620 } } // namespace v8::internal 1624 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/log.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698