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