| Index: src/heap-inl.h
|
| diff --git a/src/heap-inl.h b/src/heap-inl.h
|
| index 23967bb82ddb287fa904f5b1f27c5e2216ed6f9f..a300b714de5b843eaa33804ead17c740fac118e3 100644
|
| --- a/src/heap-inl.h
|
| +++ b/src/heap-inl.h
|
| @@ -381,6 +381,10 @@ void Heap::SetLastScriptId(Object* last_script_id) {
|
| roots_[kLastScriptIdRootIndex] = last_script_id;
|
| }
|
|
|
| +Isolate* Heap::isolate() {
|
| + return reinterpret_cast<Isolate*>(reinterpret_cast<intptr_t>(this) -
|
| + reinterpret_cast<size_t>(reinterpret_cast<Isolate*>(4)->heap()) + 4);
|
| +}
|
|
|
| #define GC_GREEDY_CHECK() \
|
| ASSERT(!FLAG_gc_greedy || HEAP->GarbageCollectionGreedyCheck())
|
|
|