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

Unified Diff: third_party/WebKit/Source/platform/v8_inspector/JavaScriptCallFrame.h

Issue 1804043002: Revert of Remove V8RecrusionScope, cleanup call sites. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
Index: third_party/WebKit/Source/platform/v8_inspector/JavaScriptCallFrame.h
diff --git a/third_party/WebKit/Source/platform/v8_inspector/JavaScriptCallFrame.h b/third_party/WebKit/Source/platform/v8_inspector/JavaScriptCallFrame.h
index bd17be761c2968741dd271a1c934c6b7169c5bfd..b30ca47f76b3dafdaf9828e26c3726a6fb6719b2 100644
--- a/third_party/WebKit/Source/platform/v8_inspector/JavaScriptCallFrame.h
+++ b/third_party/WebKit/Source/platform/v8_inspector/JavaScriptCallFrame.h
@@ -38,11 +38,13 @@
namespace blink {
+class V8DebuggerClient;
+
class JavaScriptCallFrame {
public:
- static PassOwnPtr<JavaScriptCallFrame> create(v8::Local<v8::Context> debuggerContext, v8::Local<v8::Object> callFrame)
+ static PassOwnPtr<JavaScriptCallFrame> create(V8DebuggerClient* client, v8::Local<v8::Context> debuggerContext, v8::Local<v8::Object> callFrame)
{
- return adoptPtr(new JavaScriptCallFrame(debuggerContext, callFrame));
+ return adoptPtr(new JavaScriptCallFrame(client, debuggerContext, callFrame));
}
~JavaScriptCallFrame();
@@ -76,13 +78,16 @@
void setWrapperTemplate(v8::Local<v8::FunctionTemplate> wrapperTemplate, v8::Isolate* isolate) { m_wrapperTemplate.Reset(isolate, wrapperTemplate); }
v8::Local<v8::FunctionTemplate> wrapperTemplate(v8::Isolate* isolate) { return v8::Local<v8::FunctionTemplate>::New(isolate, m_wrapperTemplate); }
+ V8DebuggerClient* client() { return m_client; }
+
private:
- JavaScriptCallFrame(v8::Local<v8::Context> debuggerContext, v8::Local<v8::Object> callFrame);
+ JavaScriptCallFrame(V8DebuggerClient*, v8::Local<v8::Context> debuggerContext, v8::Local<v8::Object> callFrame);
int callV8FunctionReturnInt(const char* name) const;
String16 callV8FunctionReturnString(const char* name) const;
v8::Local<v8::Value> callScopeLocationFunction(const char* name, int scopeIndex) const;
+ V8DebuggerClient* m_client;
v8::Isolate* m_isolate;
OwnPtr<JavaScriptCallFrame> m_caller;
v8::Global<v8::Context> m_debuggerContext;

Powered by Google App Engine
This is Rietveld 408576698