| Index: src/isolate.h
|
| ===================================================================
|
| --- src/isolate.h (revision 7948)
|
| +++ src/isolate.h (working copy)
|
| @@ -224,6 +224,7 @@
|
| ASSERT(try_catch_handler_address_ == NULL);
|
| }
|
|
|
| + Isolate* isolate_;
|
| // The context where the current execution method is created and for variable
|
| // lookups.
|
| Context* context_;
|
| @@ -487,6 +488,10 @@
|
| // Safe to call multiple times.
|
| static void EnsureDefaultIsolate();
|
|
|
| + // Find the PerThread for this particular (isolate, thread) combination
|
| + // If one does not yet exist, return null.
|
| + PerIsolateThreadData* FindPerThreadDataForThisThread();
|
| +
|
| #ifdef ENABLE_DEBUGGER_SUPPORT
|
| // Get the debugger from the default isolate. Preinitializes the
|
| // default isolate if needed.
|
| @@ -989,6 +994,9 @@
|
|
|
| void ResetEagerOptimizingData();
|
|
|
| + void SetData(void* data) { embedder_data_ = data; }
|
| + void* GetData() { return embedder_data_; }
|
| +
|
| private:
|
| Isolate();
|
|
|
| @@ -1066,7 +1074,7 @@
|
| // If one does not yet exist, allocate a new one.
|
| PerIsolateThreadData* FindOrAllocatePerThreadDataForThisThread();
|
|
|
| - // PreInits and returns a default isolate. Needed when a new thread tries
|
| +// PreInits and returns a default isolate. Needed when a new thread tries
|
| // to create a Locker for the first time (the lock itself is in the isolate).
|
| static Isolate* GetDefaultIsolateForLocking();
|
|
|
| @@ -1151,6 +1159,7 @@
|
| unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_;
|
| ZoneObjectList frame_element_constant_list_;
|
| ZoneObjectList result_constant_list_;
|
| + void* embedder_data_;
|
|
|
| #if defined(V8_TARGET_ARCH_ARM) && !defined(__arm__) || \
|
| defined(V8_TARGET_ARCH_MIPS) && !defined(__mips__)
|
| @@ -1198,9 +1207,13 @@
|
|
|
| friend class ExecutionAccess;
|
| friend class IsolateInitializer;
|
| + friend class ThreadManager;
|
| + friend class Simulator;
|
| + friend class StackGuard;
|
| friend class ThreadId;
|
| friend class v8::Isolate;
|
| friend class v8::Locker;
|
| + friend class v8::Unlocker;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(Isolate);
|
| };
|
|
|