Chromium Code Reviews| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 PassOwnPtr<JavaScriptCallFrame> caller(); | 49 PassOwnPtr<JavaScriptCallFrame> caller(); |
| 50 | 50 |
| 51 int sourceID() const; | 51 int sourceID() const; |
| 52 int line() const; | 52 int line() const; |
| 53 int column() const; | 53 int column() const; |
| 54 String16 scriptName() const; | |
| 55 String16 functionName() const; | |
| 56 int functionLine() const; | |
| 57 int functionColumn() const; | |
| 58 | 54 |
| 59 v8::Local<v8::Value> scopeChain() const; | |
| 60 v8::Local<v8::String> scopeType(int scopeIndex) const; | |
| 61 v8::Local<v8::String> scopeName(int scopeIndex) const; | |
| 62 v8::Local<v8::Value> scopeStartLocation(int scopeIndex) const; | |
| 63 v8::Local<v8::Value> scopeEndLocation(int scopeIndex) const; | |
| 64 v8::Local<v8::Value> thisObject() const; | |
| 65 String16 stepInPositions() const; | |
| 66 bool isAtReturn() const; | 55 bool isAtReturn() const; |
| 67 v8::Local<v8::Value> returnValue() const; | 56 v8::Local<v8::Object> object() const; |
|
dgozman
2016/03/23 18:46:31
details
kozy
2016/03/23 19:15:10
Done.
| |
| 68 | 57 |
| 69 v8::MaybeLocal<v8::Value> evaluate(v8::Local<v8::Value> expression); | 58 v8::MaybeLocal<v8::Value> evaluate(v8::Local<v8::Value> expression); |
| 70 v8::MaybeLocal<v8::Value> restart(); | 59 v8::MaybeLocal<v8::Value> restart(); |
| 71 v8::MaybeLocal<v8::Value> setVariableValue(int scopeNumber, v8::Local<v8::Va lue> variableName, v8::Local<v8::Value> newValue); | 60 v8::MaybeLocal<v8::Value> setVariableValue(int scopeNumber, v8::Local<v8::Va lue> variableName, v8::Local<v8::Value> newValue); |
| 72 | |
| 73 // FIXME: store this template in per isolate data | |
| 74 void setWrapperTemplate(v8::Local<v8::FunctionTemplate> wrapperTemplate, v8: :Isolate* isolate) { m_wrapperTemplate.Reset(isolate, wrapperTemplate); } | |
| 75 v8::Local<v8::FunctionTemplate> wrapperTemplate(v8::Isolate* isolate) { retu rn v8::Local<v8::FunctionTemplate>::New(isolate, m_wrapperTemplate); } | |
| 76 | |
| 77 private: | 61 private: |
| 78 JavaScriptCallFrame(v8::Local<v8::Context> debuggerContext, v8::Local<v8::Ob ject> callFrame); | 62 JavaScriptCallFrame(v8::Local<v8::Context> debuggerContext, v8::Local<v8::Ob ject> callFrame); |
| 79 | 63 |
| 80 int callV8FunctionReturnInt(const char* name) const; | 64 int callV8FunctionReturnInt(const char* name) const; |
| 81 String16 callV8FunctionReturnString(const char* name) const; | |
| 82 v8::Local<v8::Value> callScopeLocationFunction(const char* name, int scopeIn dex) const; | |
| 83 | 65 |
| 84 v8::Isolate* m_isolate; | 66 v8::Isolate* m_isolate; |
| 85 OwnPtr<JavaScriptCallFrame> m_caller; | 67 OwnPtr<JavaScriptCallFrame> m_caller; |
| 86 v8::Global<v8::Context> m_debuggerContext; | 68 v8::Global<v8::Context> m_debuggerContext; |
| 87 v8::Global<v8::Object> m_callFrame; | 69 v8::Global<v8::Object> m_callFrame; |
| 88 v8::Global<v8::FunctionTemplate> m_wrapperTemplate; | 70 v8::Global<v8::FunctionTemplate> m_wrapperTemplate; |
| 89 }; | 71 }; |
| 90 | 72 |
| 91 } // namespace blink | 73 } // namespace blink |
| 92 | 74 |
| 93 #endif // JavaScriptCallFrame_h | 75 #endif // JavaScriptCallFrame_h |
| OLD | NEW |