| OLD | NEW |
| 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 13 matching lines...) Expand all Loading... |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef JavaScriptCallFrame_h | 31 #ifndef JavaScriptCallFrame_h |
| 32 #define JavaScriptCallFrame_h | 32 #define JavaScriptCallFrame_h |
| 33 | 33 |
| 34 | |
| 35 #include "bindings/v8/ScopedPersistent.h" | 34 #include "bindings/v8/ScopedPersistent.h" |
| 36 #include "bindings/v8/ScriptWrappable.h" | 35 #include "bindings/v8/ScriptWrappable.h" |
| 37 #include <v8-debug.h> | 36 #include <v8-debug.h> |
| 38 #include "wtf/RefCounted.h" | 37 #include "wtf/RefCounted.h" |
| 39 #include "wtf/text/WTFString.h" | 38 #include "wtf/text/WTFString.h" |
| 40 | 39 |
| 41 namespace WebCore { | 40 namespace WebCore { |
| 42 | 41 |
| 43 class ScriptValue; | 42 class ScriptValue; |
| 44 | 43 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 57 int column() const; | 56 int column() const; |
| 58 String functionName() const; | 57 String functionName() const; |
| 59 | 58 |
| 60 v8::Handle<v8::Value> scopeChain() const; | 59 v8::Handle<v8::Value> scopeChain() const; |
| 61 int scopeType(int scopeIndex) const; | 60 int scopeType(int scopeIndex) const; |
| 62 v8::Handle<v8::Value> thisObject() const; | 61 v8::Handle<v8::Value> thisObject() const; |
| 63 String stepInPositions() const; | 62 String stepInPositions() const; |
| 64 bool isAtReturn() const; | 63 bool isAtReturn() const; |
| 65 v8::Handle<v8::Value> returnValue() const; | 64 v8::Handle<v8::Value> returnValue() const; |
| 66 | 65 |
| 67 v8::Handle<v8::Value> evaluate(const String& expression); | 66 ScriptValue evaluate(const String& expression, const ScriptValue& contextExt
ension); |
| 67 ScriptValue evaluateGlobal(const String& expression, const ScriptValue& cont
extExtension); |
| 68 v8::Handle<v8::Value> restart(); | 68 v8::Handle<v8::Value> restart(); |
| 69 ScriptValue setVariableValue(int scopeNumber, const String& variableName, co
nst ScriptValue& newValue); | 69 ScriptValue setVariableValue(int scopeNumber, const String& variableName, co
nst ScriptValue& newValue); |
| 70 v8::Handle<v8::Object> innerCallFrame(); | 70 v8::Handle<v8::Object> innerCallFrame(); |
| 71 | 71 |
| 72 private: | 72 private: |
| 73 JavaScriptCallFrame(v8::Handle<v8::Context> debuggerContext, v8::Handle<v8::
Object> callFrame); | 73 JavaScriptCallFrame(v8::Handle<v8::Context> debuggerContext, v8::Handle<v8::
Object> callFrame); |
| 74 | 74 |
| 75 ScriptValue runEvaluate(const char* methodName, const String& expression, co
nst ScriptValue& contextExtension); |
| 76 |
| 75 v8::Isolate* m_isolate; | 77 v8::Isolate* m_isolate; |
| 76 RefPtr<JavaScriptCallFrame> m_caller; | 78 RefPtr<JavaScriptCallFrame> m_caller; |
| 77 ScopedPersistent<v8::Context> m_debuggerContext; | 79 ScopedPersistent<v8::Context> m_debuggerContext; |
| 78 ScopedPersistent<v8::Object> m_callFrame; | 80 ScopedPersistent<v8::Object> m_callFrame; |
| 79 }; | 81 }; |
| 80 | 82 |
| 81 } // namespace WebCore | 83 } // namespace WebCore |
| 82 | 84 |
| 83 | 85 |
| 84 #endif // JavaScriptCallFrame_h | 86 #endif // JavaScriptCallFrame_h |
| OLD | NEW |