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

Side by Side Diff: src/mark-compact.h

Issue 546089: Fix issue 553: function frame is skipped in profile when compare stub is called. (Closed)
Patch Set: Introduced dedicated log event types, added stuff for DevTools Created 10 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
« no previous file with comments | « src/log.cc ('k') | src/mark-compact.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
109 // During a full GC, there is a stack-allocated GCTracer that is used for 109 // During a full GC, there is a stack-allocated GCTracer that is used for
110 // bookkeeping information. Return a pointer to that tracer. 110 // bookkeeping information. Return a pointer to that tracer.
111 static GCTracer* tracer() { return tracer_; } 111 static GCTracer* tracer() { return tracer_; }
112 112
113 #ifdef DEBUG 113 #ifdef DEBUG
114 // Checks whether performing mark-compact collection. 114 // Checks whether performing mark-compact collection.
115 static bool in_use() { return state_ > PREPARE_GC; } 115 static bool in_use() { return state_ > PREPARE_GC; }
116 #endif 116 #endif
117 117
118 // Determine type of object and emit deletion log event.
119 static void ReportDeleteIfNeeded(HeapObject* obj);
120
118 private: 121 private:
119 #ifdef DEBUG 122 #ifdef DEBUG
120 enum CollectorState { 123 enum CollectorState {
121 IDLE, 124 IDLE,
122 PREPARE_GC, 125 PREPARE_GC,
123 MARK_LIVE_OBJECTS, 126 MARK_LIVE_OBJECTS,
124 SWEEP_SPACES, 127 SWEEP_SPACES,
125 ENCODE_FORWARDING_ADDRESSES, 128 ENCODE_FORWARDING_ADDRESSES,
126 UPDATE_POINTERS, 129 UPDATE_POINTERS,
127 RELOCATE_OBJECTS, 130 RELOCATE_OBJECTS,
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 436
434 friend class UnmarkObjectVisitor; 437 friend class UnmarkObjectVisitor;
435 static void UnmarkObject(HeapObject* obj); 438 static void UnmarkObject(HeapObject* obj);
436 #endif 439 #endif
437 }; 440 };
438 441
439 442
440 } } // namespace v8::internal 443 } } // namespace v8::internal
441 444
442 #endif // V8_MARK_COMPACT_H_ 445 #endif // V8_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « src/log.cc ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698