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

Side by Side Diff: src/heap.h

Issue 11975012: Remove support for Live Object List and inspector module. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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/flag-definitions.h ('k') | src/heap.cc » ('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 2822 matching lines...) Expand 10 before | Expand all | Expand 10 after
2833 static int SizeOfMarkedObject(HeapObject* object) { 2833 static int SizeOfMarkedObject(HeapObject* object) {
2834 return object->SizeFromMap(MapOfMarkedObject(object)); 2834 return object->SizeFromMap(MapOfMarkedObject(object));
2835 } 2835 }
2836 2836
2837 private: 2837 private:
2838 static const uintptr_t kNotMarkedBit = 0x1; 2838 static const uintptr_t kNotMarkedBit = 0x1;
2839 STATIC_ASSERT((kHeapObjectTag & kNotMarkedBit) != 0); 2839 STATIC_ASSERT((kHeapObjectTag & kNotMarkedBit) != 0);
2840 }; 2840 };
2841 2841
2842 2842
2843 #if defined(DEBUG) || defined(LIVE_OBJECT_LIST) 2843 #ifdef DEBUG
2844 // Helper class for tracing paths to a search target Object from all roots. 2844 // Helper class for tracing paths to a search target Object from all roots.
2845 // The TracePathFrom() method can be used to trace paths from a specific 2845 // The TracePathFrom() method can be used to trace paths from a specific
2846 // object to the search target object. 2846 // object to the search target object.
2847 class PathTracer : public ObjectVisitor { 2847 class PathTracer : public ObjectVisitor {
2848 public: 2848 public:
2849 enum WhatToFind { 2849 enum WhatToFind {
2850 FIND_ALL, // Will find all matches. 2850 FIND_ALL, // Will find all matches.
2851 FIND_FIRST // Will stop the search after first match. 2851 FIND_FIRST // Will stop the search after first match.
2852 }; 2852 };
2853 2853
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
2890 bool found_target_in_trace_; 2890 bool found_target_in_trace_;
2891 WhatToFind what_to_find_; 2891 WhatToFind what_to_find_;
2892 VisitMode visit_mode_; 2892 VisitMode visit_mode_;
2893 List<Object*> object_stack_; 2893 List<Object*> object_stack_;
2894 2894
2895 AssertNoAllocation no_alloc; // i.e. no gc allowed. 2895 AssertNoAllocation no_alloc; // i.e. no gc allowed.
2896 2896
2897 private: 2897 private:
2898 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2898 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2899 }; 2899 };
2900 #endif // DEBUG || LIVE_OBJECT_LIST 2900 #endif // DEBUG
2901 2901
2902 } } // namespace v8::internal 2902 } } // namespace v8::internal
2903 2903
2904 #endif // V8_HEAP_H_ 2904 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698