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

Side by Side Diff: src/heap.cc

Issue 77035: Add ENABLE_DEBUGGER_SUPPORT macro.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 8 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/handles.cc ('k') | src/ic.h » ('j') | src/serialize.cc » ('J')
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 2661 matching lines...) Expand 10 before | Expand all | Expand 10 after
2672 v->VisitPointer(bit_cast<Object**, String**>(&name##_)); 2672 v->VisitPointer(bit_cast<Object**, String**>(&name##_));
2673 SYMBOL_LIST(SYMBOL_ITERATE) 2673 SYMBOL_LIST(SYMBOL_ITERATE)
2674 #undef SYMBOL_ITERATE 2674 #undef SYMBOL_ITERATE
2675 v->VisitPointer(bit_cast<Object**, String**>(&hidden_symbol_)); 2675 v->VisitPointer(bit_cast<Object**, String**>(&hidden_symbol_));
2676 SYNCHRONIZE_TAG("symbol"); 2676 SYNCHRONIZE_TAG("symbol");
2677 2677
2678 Bootstrapper::Iterate(v); 2678 Bootstrapper::Iterate(v);
2679 SYNCHRONIZE_TAG("bootstrapper"); 2679 SYNCHRONIZE_TAG("bootstrapper");
2680 Top::Iterate(v); 2680 Top::Iterate(v);
2681 SYNCHRONIZE_TAG("top"); 2681 SYNCHRONIZE_TAG("top");
2682
2683 #ifdef ENABLE_DEBUGGER_SUPPORT
2682 Debug::Iterate(v); 2684 Debug::Iterate(v);
2685 #endif
2683 SYNCHRONIZE_TAG("debug"); 2686 SYNCHRONIZE_TAG("debug");
2684 CompilationCache::Iterate(v); 2687 CompilationCache::Iterate(v);
2685 SYNCHRONIZE_TAG("compilationcache"); 2688 SYNCHRONIZE_TAG("compilationcache");
2686 2689
2687 // Iterate over local handles in handle scopes. 2690 // Iterate over local handles in handle scopes.
2688 HandleScopeImplementer::Iterate(v); 2691 HandleScopeImplementer::Iterate(v);
2689 SYNCHRONIZE_TAG("handlescope"); 2692 SYNCHRONIZE_TAG("handlescope");
2690 2693
2691 // Iterate over the builtin code objects and code stubs in the heap. Note 2694 // Iterate over the builtin code objects and code stubs in the heap. Note
2692 // that it is not strictly necessary to iterate over code objects on 2695 // that it is not strictly necessary to iterate over code objects on
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after
3384 #ifdef DEBUG 3387 #ifdef DEBUG
3385 bool Heap::GarbageCollectionGreedyCheck() { 3388 bool Heap::GarbageCollectionGreedyCheck() {
3386 ASSERT(FLAG_gc_greedy); 3389 ASSERT(FLAG_gc_greedy);
3387 if (Bootstrapper::IsActive()) return true; 3390 if (Bootstrapper::IsActive()) return true;
3388 if (disallow_allocation_failure()) return true; 3391 if (disallow_allocation_failure()) return true;
3389 return CollectGarbage(0, NEW_SPACE); 3392 return CollectGarbage(0, NEW_SPACE);
3390 } 3393 }
3391 #endif 3394 #endif
3392 3395
3393 } } // namespace v8::internal 3396 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/handles.cc ('k') | src/ic.h » ('j') | src/serialize.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698