| Index: src/debug.h
|
| diff --git a/src/debug.h b/src/debug.h
|
| index 8e71ea6705247ba8162b884e424603b93e6ff6b3..d1b3b23afbdf227ea737d106fa85f56a0666b666 100644
|
| --- a/src/debug.h
|
| +++ b/src/debug.h
|
| @@ -201,9 +201,8 @@ class ScriptCache : private HashMap {
|
| void Clear();
|
|
|
| // Weak handle callback for scripts in the cache.
|
| - static void HandleWeakScript(v8::Isolate* isolate,
|
| - v8::Persistent<v8::Value>* obj,
|
| - void* data);
|
| + static void HandleWeakScript(
|
| + const v8::WeakCallbackData<v8::Value, void>& data);
|
|
|
| Isolate* isolate_;
|
| // List used during GC to temporarily store id's of collected scripts.
|
| @@ -403,9 +402,8 @@ class Debug {
|
| static const int kEstimatedNofBreakPointsInFunction = 16;
|
|
|
| // Passed to MakeWeak.
|
| - static void HandleWeakDebugInfo(v8::Isolate* isolate,
|
| - v8::Persistent<v8::Value>* obj,
|
| - void* data);
|
| + static void HandleWeakDebugInfo(
|
| + const v8::WeakCallbackData<v8::Value, void>& data);
|
|
|
| friend class Debugger;
|
| friend Handle<FixedArray> GetDebuggedFunctions(); // In test-debug.cc
|
| @@ -426,6 +424,9 @@ class Debug {
|
| void AddScriptToScriptCache(Handle<Script> script);
|
| Handle<FixedArray> GetLoadedScripts();
|
|
|
| + // Record function from which eval was called.
|
| + static void RecordEvalCaller(Handle<Script> script);
|
| +
|
| // Garbage collection notifications.
|
| void AfterGarbageCollection();
|
|
|
|
|