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

Unified Diff: src/runtime-profiler.h

Issue 6614010: [Isolates] Merge 6700:7030 from bleeding_edge to isolates. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/runtime.js ('k') | src/runtime-profiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime-profiler.h
===================================================================
--- src/runtime-profiler.h (revision 7006)
+++ src/runtime-profiler.h (working copy)
@@ -62,7 +62,6 @@
void Reset();
void TearDown();
- void MarkCompactPrologue(bool is_compacting);
Object** SamplerWindowAddress();
int SamplerWindowSize();
@@ -94,6 +93,10 @@
// wake it up first.
static void WakeUpRuntimeProfilerThreadBeforeShutdown();
+ void UpdateSamplesAfterScavenge();
+ void RemoveDeadSamples();
+ void UpdateSamplesAfterCompact(ObjectVisitor* visitor);
+
private:
static const int kSamplerWindowSize = 16;
static const int kStateWindowSize = 128;
@@ -125,11 +128,6 @@
// The ratio of ticks spent in JS code in percent.
Atomic32 js_ratio_;
- // The JSFunctions in the sampler window are not GC safe. Old-space
- // pointers are not cleared during mark-sweep collection and therefore
- // the window might contain stale pointers. The window is updated on
- // scavenges and (parts of it) cleared on mark-sweep and
- // mark-sweep-compact.
Object* sampler_window_[kSamplerWindowSize];
int sampler_window_position_;
int sampler_window_weight_[kSamplerWindowSize];
« no previous file with comments | « src/runtime.js ('k') | src/runtime-profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698