| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 public: | 42 public: |
| 43 static PassOwnPtr<JavaScriptCallFrame> create(v8::Local<v8::Context> debugge
rContext, v8::Local<v8::Object> callFrame) | 43 static PassOwnPtr<JavaScriptCallFrame> create(v8::Local<v8::Context> debugge
rContext, v8::Local<v8::Object> callFrame) |
| 44 { | 44 { |
| 45 return adoptPtr(new JavaScriptCallFrame(debuggerContext, callFrame)); | 45 return adoptPtr(new JavaScriptCallFrame(debuggerContext, callFrame)); |
| 46 } | 46 } |
| 47 ~JavaScriptCallFrame(); | 47 ~JavaScriptCallFrame(); |
| 48 | 48 |
| 49 int sourceID() const; | 49 int sourceID() const; |
| 50 int line() const; | 50 int line() const; |
| 51 int column() const; | 51 int column() const; |
| 52 int contextId() const; |
| 52 | 53 |
| 53 bool isAtReturn() const; | 54 bool isAtReturn() const; |
| 54 v8::Local<v8::Object> details() const; | 55 v8::Local<v8::Object> details() const; |
| 55 | 56 |
| 56 v8::MaybeLocal<v8::Value> evaluate(v8::Local<v8::Value> expression); | 57 v8::MaybeLocal<v8::Value> evaluate(v8::Local<v8::Value> expression); |
| 57 v8::MaybeLocal<v8::Value> restart(); | 58 v8::MaybeLocal<v8::Value> restart(); |
| 58 v8::MaybeLocal<v8::Value> setVariableValue(int scopeNumber, v8::Local<v8::Va
lue> variableName, v8::Local<v8::Value> newValue); | 59 v8::MaybeLocal<v8::Value> setVariableValue(int scopeNumber, v8::Local<v8::Va
lue> variableName, v8::Local<v8::Value> newValue); |
| 59 private: | 60 private: |
| 60 JavaScriptCallFrame(v8::Local<v8::Context> debuggerContext, v8::Local<v8::Ob
ject> callFrame); | 61 JavaScriptCallFrame(v8::Local<v8::Context> debuggerContext, v8::Local<v8::Ob
ject> callFrame); |
| 61 | 62 |
| 62 int callV8FunctionReturnInt(const char* name) const; | 63 int callV8FunctionReturnInt(const char* name) const; |
| 63 | 64 |
| 64 v8::Isolate* m_isolate; | 65 v8::Isolate* m_isolate; |
| 65 OwnPtr<JavaScriptCallFrame> m_caller; | 66 OwnPtr<JavaScriptCallFrame> m_caller; |
| 66 v8::Global<v8::Context> m_debuggerContext; | 67 v8::Global<v8::Context> m_debuggerContext; |
| 67 v8::Global<v8::Object> m_callFrame; | 68 v8::Global<v8::Object> m_callFrame; |
| 68 v8::Global<v8::FunctionTemplate> m_wrapperTemplate; | 69 v8::Global<v8::FunctionTemplate> m_wrapperTemplate; |
| 69 }; | 70 }; |
| 70 | 71 |
| 71 using JavaScriptCallFrames = Vector<OwnPtr<JavaScriptCallFrame>>; | 72 using JavaScriptCallFrames = Vector<OwnPtr<JavaScriptCallFrame>>; |
| 72 | 73 |
| 73 } // namespace blink | 74 } // namespace blink |
| 74 | 75 |
| 75 #endif // JavaScriptCallFrame_h | 76 #endif // JavaScriptCallFrame_h |
| OLD | NEW |