| Index: src/runtime-profiler.cc
 | 
| ===================================================================
 | 
| --- src/runtime-profiler.cc	(revision 9531)
 | 
| +++ src/runtime-profiler.cc	(working copy)
 | 
| @@ -35,6 +35,7 @@
 | 
|  #include "deoptimizer.h"
 | 
|  #include "execution.h"
 | 
|  #include "global-handles.h"
 | 
| +#include "isolate-inl.h"
 | 
|  #include "mark-compact.h"
 | 
|  #include "platform.h"
 | 
|  #include "scopeinfo.h"
 | 
| @@ -338,7 +339,8 @@
 | 
|  void RuntimeProfiler::RemoveDeadSamples() {
 | 
|    for (int i = 0; i < kSamplerWindowSize; i++) {
 | 
|      Object* function = sampler_window_[i];
 | 
| -    if (function != NULL && !HeapObject::cast(function)->IsMarked()) {
 | 
| +    if (function != NULL &&
 | 
| +        !Marking::MarkBitFrom(HeapObject::cast(function)).Get()) {
 | 
|        sampler_window_[i] = NULL;
 | 
|      }
 | 
|    }
 | 
| 
 |