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

Side by Side Diff: src/debug.cc

Issue 10837037: Age code to allow reclaiming old unexecuted functions (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback Created 8 years, 1 month 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/compiler.cc ('k') | src/flag-definitions.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 // 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 // Move to the break point found. 254 // Move to the break point found.
255 Reset(); 255 Reset();
256 Next(closest_break_point); 256 Next(closest_break_point);
257 } 257 }
258 258
259 259
260 void BreakLocationIterator::Reset() { 260 void BreakLocationIterator::Reset() {
261 // Create relocation iterators for the two code objects. 261 // Create relocation iterators for the two code objects.
262 if (reloc_iterator_ != NULL) delete reloc_iterator_; 262 if (reloc_iterator_ != NULL) delete reloc_iterator_;
263 if (reloc_iterator_original_ != NULL) delete reloc_iterator_original_; 263 if (reloc_iterator_original_ != NULL) delete reloc_iterator_original_;
264 reloc_iterator_ = new RelocIterator(debug_info_->code()); 264 reloc_iterator_ = new RelocIterator(
265 reloc_iterator_original_ = new RelocIterator(debug_info_->original_code()); 265 debug_info_->code(),
266 ~RelocInfo::ModeMask(RelocInfo::CODE_AGE_SEQUENCE));
267 reloc_iterator_original_ = new RelocIterator(
268 debug_info_->original_code(),
269 ~RelocInfo::ModeMask(RelocInfo::CODE_AGE_SEQUENCE));
266 270
267 // Position at the first break point. 271 // Position at the first break point.
268 break_point_ = -1; 272 break_point_ = -1;
269 position_ = 1; 273 position_ = 1;
270 statement_position_ = 1; 274 statement_position_ = 1;
271 Next(); 275 Next();
272 } 276 }
273 277
274 278
275 bool BreakLocationIterator::Done() const { 279 bool BreakLocationIterator::Done() const {
(...skipping 3491 matching lines...) Expand 10 before | Expand all | Expand 10 after
3767 { 3771 {
3768 Locker locker; 3772 Locker locker;
3769 Isolate::Current()->debugger()->CallMessageDispatchHandler(); 3773 Isolate::Current()->debugger()->CallMessageDispatchHandler();
3770 } 3774 }
3771 } 3775 }
3772 } 3776 }
3773 3777
3774 #endif // ENABLE_DEBUGGER_SUPPORT 3778 #endif // ENABLE_DEBUGGER_SUPPORT
3775 3779
3776 } } // namespace v8::internal 3780 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698