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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/JavaScriptCallFrame.h

Issue 1811853002: [DevTools] Move evaluateOnCallFrame to native (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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010, Google Inc. All rights reserved. 2 * Copyright (c) 2010, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 v8::Local<v8::Value> scopeChain() const; 59 v8::Local<v8::Value> scopeChain() const;
60 int scopeType(int scopeIndex) const; 60 int scopeType(int scopeIndex) const;
61 v8::Local<v8::String> scopeName(int scopeIndex) const; 61 v8::Local<v8::String> scopeName(int scopeIndex) const;
62 v8::Local<v8::Value> scopeStartLocation(int scopeIndex) const; 62 v8::Local<v8::Value> scopeStartLocation(int scopeIndex) const;
63 v8::Local<v8::Value> scopeEndLocation(int scopeIndex) const; 63 v8::Local<v8::Value> scopeEndLocation(int scopeIndex) const;
64 v8::Local<v8::Value> thisObject() const; 64 v8::Local<v8::Value> thisObject() const;
65 String16 stepInPositions() const; 65 String16 stepInPositions() const;
66 bool isAtReturn() const; 66 bool isAtReturn() const;
67 v8::Local<v8::Value> returnValue() const; 67 v8::Local<v8::Value> returnValue() const;
68 68
69 v8::Local<v8::Value> evaluateWithExceptionDetails(v8::Local<v8::Value> expre ssion, v8::Local<v8::Value> scopeExtension); 69 v8::MaybeLocal<v8::Value> evaluate(v8::Local<v8::Value> expression);
70 v8::MaybeLocal<v8::Value> restart(); 70 v8::MaybeLocal<v8::Value> restart();
71 v8::MaybeLocal<v8::Value> setVariableValue(int scopeNumber, v8::Local<v8::Va lue> variableName, v8::Local<v8::Value> newValue); 71 v8::MaybeLocal<v8::Value> setVariableValue(int scopeNumber, v8::Local<v8::Va lue> variableName, v8::Local<v8::Value> newValue);
72 72
73 static v8::Local<v8::Object> createExceptionDetails(v8::Isolate*, v8::Local< v8::Message>); 73 static v8::Local<v8::Object> createExceptionDetails(v8::Isolate*, v8::Local< v8::Message>);
74 74
75 // FIXME: store this template in per isolate data 75 // FIXME: store this template in per isolate data
76 void setWrapperTemplate(v8::Local<v8::FunctionTemplate> wrapperTemplate, v8: :Isolate* isolate) { m_wrapperTemplate.Reset(isolate, wrapperTemplate); } 76 void setWrapperTemplate(v8::Local<v8::FunctionTemplate> wrapperTemplate, v8: :Isolate* isolate) { m_wrapperTemplate.Reset(isolate, wrapperTemplate); }
77 v8::Local<v8::FunctionTemplate> wrapperTemplate(v8::Isolate* isolate) { retu rn v8::Local<v8::FunctionTemplate>::New(isolate, m_wrapperTemplate); } 77 v8::Local<v8::FunctionTemplate> wrapperTemplate(v8::Isolate* isolate) { retu rn v8::Local<v8::FunctionTemplate>::New(isolate, m_wrapperTemplate); }
78 78
79 private: 79 private:
80 JavaScriptCallFrame(v8::Local<v8::Context> debuggerContext, v8::Local<v8::Ob ject> callFrame); 80 JavaScriptCallFrame(v8::Local<v8::Context> debuggerContext, v8::Local<v8::Ob ject> callFrame);
81 81
82 int callV8FunctionReturnInt(const char* name) const; 82 int callV8FunctionReturnInt(const char* name) const;
83 String16 callV8FunctionReturnString(const char* name) const; 83 String16 callV8FunctionReturnString(const char* name) const;
84 v8::Local<v8::Value> callScopeLocationFunction(const char* name, int scopeIn dex) const; 84 v8::Local<v8::Value> callScopeLocationFunction(const char* name, int scopeIn dex) const;
85 85
86 v8::Isolate* m_isolate; 86 v8::Isolate* m_isolate;
87 OwnPtr<JavaScriptCallFrame> m_caller; 87 OwnPtr<JavaScriptCallFrame> m_caller;
88 v8::Global<v8::Context> m_debuggerContext; 88 v8::Global<v8::Context> m_debuggerContext;
89 v8::Global<v8::Object> m_callFrame; 89 v8::Global<v8::Object> m_callFrame;
90 v8::Global<v8::FunctionTemplate> m_wrapperTemplate; 90 v8::Global<v8::FunctionTemplate> m_wrapperTemplate;
91 }; 91 };
92 92
93 } // namespace blink 93 } // namespace blink
94 94
95 #endif // JavaScriptCallFrame_h 95 #endif // JavaScriptCallFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698