Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(367)

Side by Side Diff: Source/bindings/v8/ScriptDebugServer.h

Issue 466243002: Support merged Dart-JS callstacks (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/dartium
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 virtual void stepIntoStatement() = 0; 79 virtual void stepIntoStatement() = 0;
80 virtual void stepOverStatement() = 0; 80 virtual void stepOverStatement() = 0;
81 virtual void stepOutOfFunction() = 0; 81 virtual void stepOutOfFunction() = 0;
82 82
83 virtual bool setScriptSource(const String& sourceID, const String& newConten t, bool preview, String* error, RefPtr<TypeBuilder::Debugger::SetScriptSourceErr or>&, StackTrace* newCallFrames, RefPtr<JSONObject>* result) = 0; 83 virtual bool setScriptSource(const String& sourceID, const String& newConten t, bool preview, String* error, RefPtr<TypeBuilder::Debugger::SetScriptSourceErr or>&, StackTrace* newCallFrames, RefPtr<JSONObject>* result) = 0;
84 84
85 virtual ScriptCallFrame topCallFrameNoScopes() = 0; 85 virtual ScriptCallFrame topCallFrameNoScopes() = 0;
86 virtual int frameCount() = 0; 86 virtual int frameCount() = 0;
87 87
88 virtual StackTrace currentCallFrames() = 0; 88 virtual StackTrace currentCallFrames() = 0;
89 virtual StackTrace currentCallFramesForVm() = 0;
vsm 2014/08/13 14:26:45 What is the distinction between this and the above
Jacob 2014/08/13 21:36:15 removed this method and cleaned up the logic so cu
89 virtual StackTrace currentCallFramesForAsyncStack() = 0; 90 virtual StackTrace currentCallFramesForAsyncStack() = 0;
90 91
91 virtual bool isPaused() = 0; 92 virtual bool isPaused() = 0;
92 bool isAnyScriptPaused() { return isPaused() || (m_peer && m_peer->isPaused( )); } 93 bool isAnyScriptPaused() { return isPaused() || (m_peer && m_peer->isPaused( )); }
93 94
94 virtual bool runningNestedMessageLoop() = 0; 95 virtual bool runningNestedMessageLoop() = 0;
95 virtual void runPendingTasks() = 0; 96 virtual void runPendingTasks() = 0;
96 97
97 virtual void compileScript(ScriptState*, const String& expression, const Str ing& sourceURL, String* scriptId, String* exceptionDetailsText, int* lineNumber, int* columnNumber, RefPtrWillBeRawPtr<ScriptCallStack>* stackTrace) { }; 98 virtual void compileScript(ScriptState*, const String& expression, const Str ing& sourceURL, String* scriptId, String* exceptionDetailsText, int* lineNumber, int* columnNumber, RefPtrWillBeRawPtr<ScriptCallStack>* stackTrace) { };
98 virtual void clearCompiledScripts() = 0; 99 virtual void clearCompiledScripts() = 0;
(...skipping 26 matching lines...) Expand all
125 virtual void stepOverStatement(); 126 virtual void stepOverStatement();
126 virtual void stepOutOfFunction(); 127 virtual void stepOutOfFunction();
127 128
128 virtual PauseOnExceptionsState pauseOnExceptionsState(); 129 virtual PauseOnExceptionsState pauseOnExceptionsState();
129 virtual void setPauseOnExceptionsState(PauseOnExceptionsState); 130 virtual void setPauseOnExceptionsState(PauseOnExceptionsState);
130 131
131 virtual bool setScriptSource(const String& sourceID, const String& newConten t, bool preview, String* error, RefPtr<TypeBuilder::Debugger::SetScriptSourceErr or>&, StackTrace* newCallFrames, RefPtr<JSONObject>* result); 132 virtual bool setScriptSource(const String& sourceID, const String& newConten t, bool preview, String* error, RefPtr<TypeBuilder::Debugger::SetScriptSourceErr or>&, StackTrace* newCallFrames, RefPtr<JSONObject>* result);
132 virtual ScriptCallFrame topCallFrameNoScopes(); 133 virtual ScriptCallFrame topCallFrameNoScopes();
133 virtual int frameCount(); 134 virtual int frameCount();
134 virtual StackTrace currentCallFrames(); 135 virtual StackTrace currentCallFrames();
136 virtual StackTrace currentCallFramesForVm();
135 virtual StackTrace currentCallFramesForAsyncStack(); 137 virtual StackTrace currentCallFramesForAsyncStack();
136 138
137 class Task { 139 class Task {
138 public: 140 public:
139 virtual ~Task() { } 141 virtual ~Task() { }
140 virtual void run() = 0; 142 virtual void run() = 0;
141 }; 143 };
142 static void interruptAndRun(PassOwnPtr<Task>, v8::Isolate*); 144 static void interruptAndRun(PassOwnPtr<Task>, v8::Isolate*);
143 virtual void runPendingTasks(); 145 virtual void runPendingTasks();
144 146
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 196
195 PassRefPtrWillBeRawPtr<JavaScriptCallFrame> wrapCallFrames(int maximumLimit, ScopeInfoDetails); 197 PassRefPtrWillBeRawPtr<JavaScriptCallFrame> wrapCallFrames(int maximumLimit, ScopeInfoDetails);
196 198
197 bool m_runningNestedMessageLoop; 199 bool m_runningNestedMessageLoop;
198 }; 200 };
199 201
200 } // namespace WebCore 202 } // namespace WebCore
201 203
202 204
203 #endif // ScriptDebugServer_h 205 #endif // ScriptDebugServer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698