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

Side by Side Diff: runtime/vm/debugger.h

Issue 9696020: Deoptimize functions before setting breakpoints (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_DEBUGGER_H_ 5 #ifndef VM_DEBUGGER_H_
6 #define VM_DEBUGGER_H_ 6 #define VM_DEBUGGER_H_
7 7
8 #include "vm/object.h" 8 #include "vm/object.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 const String& field_name); 229 const String& field_name);
230 230
231 private: 231 private:
232 enum ResumeAction { 232 enum ResumeAction {
233 kContinue, 233 kContinue,
234 kStepOver, 234 kStepOver,
235 kStepInto, 235 kStepInto,
236 kStepOut 236 kStepOut
237 }; 237 };
238 238
239 void InstrumentForStepping(const Function &target_function); 239 void EnsureFunctionIsDeoptimized(const Function& func);
240 void InstrumentForStepping(const Function& target_function);
240 SourceBreakpoint* SetBreakpoint(const Function& target_function, 241 SourceBreakpoint* SetBreakpoint(const Function& target_function,
241 intptr_t token_index); 242 intptr_t token_index);
242 void RemoveInternalBreakpoints(); 243 void RemoveInternalBreakpoints();
243 void RemoveCodeBreakpoints(SourceBreakpoint* src_bpt); 244 void RemoveCodeBreakpoints(SourceBreakpoint* src_bpt);
244 void RegisterSourceBreakpoint(SourceBreakpoint* bpt); 245 void RegisterSourceBreakpoint(SourceBreakpoint* bpt);
245 void RegisterCodeBreakpoint(CodeBreakpoint* bpt); 246 void RegisterCodeBreakpoint(CodeBreakpoint* bpt);
246 SourceBreakpoint* GetSourceBreakpoint(const Function& func, 247 SourceBreakpoint* GetSourceBreakpoint(const Function& func,
247 intptr_t token_index); 248 intptr_t token_index);
248 CodeBreakpoint* MakeCodeBreakpoint(const Function& func, 249 CodeBreakpoint* MakeCodeBreakpoint(const Function& func,
249 intptr_t token_index); 250 intptr_t token_index);
(...skipping 18 matching lines...) Expand all
268 bool ignore_breakpoints_; 269 bool ignore_breakpoints_;
269 270
270 friend class SourceBreakpoint; 271 friend class SourceBreakpoint;
271 DISALLOW_COPY_AND_ASSIGN(Debugger); 272 DISALLOW_COPY_AND_ASSIGN(Debugger);
272 }; 273 };
273 274
274 275
275 } // namespace dart 276 } // namespace dart
276 277
277 #endif // VM_DEBUGGER_H_ 278 #endif // VM_DEBUGGER_H_
OLDNEW
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698