OLD | NEW |
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 "include/dart_debugger_api.h" | 8 #include "include/dart_debugger_api.h" |
9 | 9 |
10 #include "vm/object.h" | 10 #include "vm/object.h" |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 static bool IsDebuggable(const Function& func); | 376 static bool IsDebuggable(const Function& func); |
377 | 377 |
378 private: | 378 private: |
379 enum ResumeAction { | 379 enum ResumeAction { |
380 kContinue, | 380 kContinue, |
381 kStepOver, | 381 kStepOver, |
382 kStepOut, | 382 kStepOut, |
383 kSingleStep | 383 kSingleStep |
384 }; | 384 }; |
385 | 385 |
386 void FindEquivalentFunctions(const Script& script, | 386 void FindCompiledFunctions(const Script& script, |
387 intptr_t start_pos, | 387 intptr_t start_pos, |
388 intptr_t end_pos, | 388 intptr_t end_pos, |
389 GrowableObjectArray* function_list); | 389 GrowableObjectArray* function_list); |
390 RawFunction* FindBestFit(const Script& script, intptr_t token_pos); | 390 RawFunction* FindBestFit(const Script& script, intptr_t token_pos); |
391 RawFunction* FindInnermostClosure(const Function& function, | 391 RawFunction* FindInnermostClosure(const Function& function, |
392 intptr_t token_pos); | 392 intptr_t token_pos); |
393 intptr_t ResolveBreakpointPos(const Function& func, | 393 intptr_t ResolveBreakpointPos(const Function& func, |
394 intptr_t requested_token_pos); | 394 intptr_t requested_token_pos); |
395 void DeoptimizeWorld(); | 395 void DeoptimizeWorld(); |
396 void SetInternalBreakpoints(const Function& target_function); | 396 void SetInternalBreakpoints(const Function& target_function); |
397 SourceBreakpoint* SetBreakpoint(const Script& script, intptr_t token_pos); | 397 SourceBreakpoint* SetBreakpoint(const Script& script, intptr_t token_pos); |
398 SourceBreakpoint* SetBreakpoint(const Function& target_function, | 398 SourceBreakpoint* SetBreakpoint(const Function& target_function, |
399 intptr_t first_token_pos, | 399 intptr_t first_token_pos, |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 | 484 |
485 friend class Isolate; | 485 friend class Isolate; |
486 friend class SourceBreakpoint; | 486 friend class SourceBreakpoint; |
487 DISALLOW_COPY_AND_ASSIGN(Debugger); | 487 DISALLOW_COPY_AND_ASSIGN(Debugger); |
488 }; | 488 }; |
489 | 489 |
490 | 490 |
491 } // namespace dart | 491 } // namespace dart |
492 | 492 |
493 #endif // VM_DEBUGGER_H_ | 493 #endif // VM_DEBUGGER_H_ |
OLD | NEW |