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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 virtual void runScript(ScriptState*, const String& scriptId, ScriptValue* re
sult, bool* wasThrown, String* exceptionDetailsText, int* lineNumber, int* colum
nNumber, RefPtrWillBeRawPtr<ScriptCallStack>* stackTrace); | 104 virtual void runScript(ScriptState*, const String& scriptId, ScriptValue* re
sult, bool* wasThrown, String* exceptionDetailsText, int* lineNumber, int* colum
nNumber, RefPtrWillBeRawPtr<ScriptCallStack>* stackTrace); |
105 virtual void setPreprocessorSource(const String&) { } | 105 virtual void setPreprocessorSource(const String&) { } |
106 virtual void preprocessBeforeCompile(const v8::Debug::EventDetails&) { } | 106 virtual void preprocessBeforeCompile(const v8::Debug::EventDetails&) { } |
107 virtual PassOwnPtr<ScriptSourceCode> preprocess(LocalFrame*, const ScriptSou
rceCode&); | 107 virtual PassOwnPtr<ScriptSourceCode> preprocess(LocalFrame*, const ScriptSou
rceCode&); |
108 virtual String preprocessEventListener(LocalFrame*, const String& source, co
nst String& url, const String& functionName); | 108 virtual String preprocessEventListener(LocalFrame*, const String& source, co
nst String& url, const String& functionName); |
109 virtual void clearPreprocessor() { } | 109 virtual void clearPreprocessor() { } |
110 | 110 |
111 virtual void muteWarningsAndDeprecations() { } | 111 virtual void muteWarningsAndDeprecations() { } |
112 virtual void unmuteWarningsAndDeprecations() { } | 112 virtual void unmuteWarningsAndDeprecations() { } |
113 | 113 |
| 114 v8::Isolate* isolate() const { return m_isolate; } |
| 115 |
114 protected: | 116 protected: |
115 explicit ScriptDebugServer(v8::Isolate*); | 117 explicit ScriptDebugServer(v8::Isolate*); |
116 virtual ~ScriptDebugServer(); | 118 virtual ~ScriptDebugServer(); |
117 | 119 |
118 virtual ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Conte
xt>) = 0; | 120 virtual ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Conte
xt>) = 0; |
119 virtual void runMessageLoopOnPause(v8::Handle<v8::Context>) = 0; | 121 virtual void runMessageLoopOnPause(v8::Handle<v8::Context>) = 0; |
120 virtual void quitMessageLoopOnPause() = 0; | 122 virtual void quitMessageLoopOnPause() = 0; |
121 | 123 |
122 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&)
; | 124 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&)
; |
123 void handleProgramBreak(ScriptState* pausedScriptState, v8::Handle<v8::Objec
t> executionState, v8::Handle<v8::Value> exception, v8::Handle<v8::Array> hitBre
akpoints, bool isPromiseRejection = false); | 125 void handleProgramBreak(ScriptState* pausedScriptState, v8::Handle<v8::Objec
t> executionState, v8::Handle<v8::Value> exception, v8::Handle<v8::Array> hitBre
akpoints, bool isPromiseRejection = false); |
(...skipping 30 matching lines...) Expand all Loading... |
154 | 156 |
155 void handleV8PromiseEvent(ScriptDebugListener*, ScriptState* pausedScriptSta
te, v8::Handle<v8::Object> executionState, v8::Handle<v8::Object> eventData); | 157 void handleV8PromiseEvent(ScriptDebugListener*, ScriptState* pausedScriptSta
te, v8::Handle<v8::Object> executionState, v8::Handle<v8::Object> eventData); |
156 | 158 |
157 bool m_runningNestedMessageLoop; | 159 bool m_runningNestedMessageLoop; |
158 }; | 160 }; |
159 | 161 |
160 } // namespace blink | 162 } // namespace blink |
161 | 163 |
162 | 164 |
163 #endif // ScriptDebugServer_h | 165 #endif // ScriptDebugServer_h |
OLD | NEW |