| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 return wrapUnique(new JavaScriptCallFrame(debuggerContext, callFrame)); | 47 return wrapUnique(new JavaScriptCallFrame(debuggerContext, callFrame)); |
| 48 } | 48 } |
| 49 ~JavaScriptCallFrame(); | 49 ~JavaScriptCallFrame(); |
| 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 int contextId() const; | 54 int contextId() const; |
| 55 | 55 |
| 56 bool isAtReturn() const; | 56 bool isAtReturn() const; |
| 57 v8::Local<v8::Object> details() const; | 57 v8::MaybeLocal<v8::Value> details() const; |
| 58 | 58 |
| 59 v8::MaybeLocal<v8::Value> evaluate(v8::Local<v8::Value> expression); | 59 v8::MaybeLocal<v8::Value> evaluate(v8::Local<v8::Value> expression); |
| 60 v8::MaybeLocal<v8::Value> restart(); | 60 v8::MaybeLocal<v8::Value> restart(); |
| 61 v8::MaybeLocal<v8::Value> setVariableValue(int scopeNumber, | 61 v8::MaybeLocal<v8::Value> setVariableValue(int scopeNumber, |
| 62 v8::Local<v8::Value> variableName, | 62 v8::Local<v8::Value> variableName, |
| 63 v8::Local<v8::Value> newValue); | 63 v8::Local<v8::Value> newValue); |
| 64 | 64 |
| 65 private: | 65 private: |
| 66 JavaScriptCallFrame(v8::Local<v8::Context> debuggerContext, | 66 JavaScriptCallFrame(v8::Local<v8::Context> debuggerContext, |
| 67 v8::Local<v8::Object> callFrame); | 67 v8::Local<v8::Object> callFrame); |
| 68 | 68 |
| 69 int callV8FunctionReturnInt(const char* name) const; | 69 int callV8FunctionReturnInt(const char* name) const; |
| 70 | 70 |
| 71 v8::Isolate* m_isolate; | 71 v8::Isolate* m_isolate; |
| 72 v8::Global<v8::Context> m_debuggerContext; | 72 v8::Global<v8::Context> m_debuggerContext; |
| 73 v8::Global<v8::Object> m_callFrame; | 73 v8::Global<v8::Object> m_callFrame; |
| 74 | 74 |
| 75 DISALLOW_COPY_AND_ASSIGN(JavaScriptCallFrame); | 75 DISALLOW_COPY_AND_ASSIGN(JavaScriptCallFrame); |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 using JavaScriptCallFrames = std::vector<std::unique_ptr<JavaScriptCallFrame>>; | 78 using JavaScriptCallFrames = std::vector<std::unique_ptr<JavaScriptCallFrame>>; |
| 79 | 79 |
| 80 } // namespace v8_inspector | 80 } // namespace v8_inspector |
| 81 | 81 |
| 82 #endif // V8_INSPECTOR_JAVASCRIPTCALLFRAME_H_ | 82 #endif // V8_INSPECTOR_JAVASCRIPTCALLFRAME_H_ |
| OLD | NEW |