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

Side by Side Diff: src/debug/debug.h

Issue 2465553003: [inspector] added Debugger.getPossibleBreakpoints method (Closed)
Patch Set: addressed comments Created 4 years, 1 month 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_DEBUG_DEBUG_H_ 5 #ifndef V8_DEBUG_DEBUG_H_
6 #define V8_DEBUG_DEBUG_H_ 6 #define V8_DEBUG_DEBUG_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/arguments.h" 9 #include "src/arguments.h"
10 #include "src/assembler.h" 10 #include "src/assembler.h"
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 454
455 // Stepping handling. 455 // Stepping handling.
456 void PrepareStep(StepAction step_action); 456 void PrepareStep(StepAction step_action);
457 void PrepareStepIn(Handle<JSFunction> function); 457 void PrepareStepIn(Handle<JSFunction> function);
458 void PrepareStepInSuspendedGenerator(); 458 void PrepareStepInSuspendedGenerator();
459 void PrepareStepOnThrow(); 459 void PrepareStepOnThrow();
460 void ClearStepping(); 460 void ClearStepping();
461 void ClearStepOut(); 461 void ClearStepOut();
462 462
463 bool PrepareFunctionForBreakPoints(Handle<SharedFunctionInfo> shared); 463 bool PrepareFunctionForBreakPoints(Handle<SharedFunctionInfo> shared);
464 bool GetPossibleBreakpoints(Handle<Script> script, int start_position,
465 int end_position, std::vector<int>* positions);
464 466
465 void RecordAsyncFunction(Handle<JSGeneratorObject> generator_object); 467 void RecordAsyncFunction(Handle<JSGeneratorObject> generator_object);
466 468
467 // Returns whether the operation succeeded. Compilation can only be triggered 469 // Returns whether the operation succeeded. Compilation can only be triggered
468 // if a valid closure is passed as the second argument, otherwise the shared 470 // if a valid closure is passed as the second argument, otherwise the shared
469 // function needs to be compiled already. 471 // function needs to be compiled already.
470 bool EnsureDebugInfo(Handle<SharedFunctionInfo> shared, 472 bool EnsureDebugInfo(Handle<SharedFunctionInfo> shared,
471 Handle<JSFunction> function); 473 Handle<JSFunction> function);
472 void CreateDebugInfo(Handle<SharedFunctionInfo> shared); 474 void CreateDebugInfo(Handle<SharedFunctionInfo> shared);
473 static Handle<DebugInfo> GetDebugInfo(Handle<SharedFunctionInfo> shared); 475 static Handle<DebugInfo> GetDebugInfo(Handle<SharedFunctionInfo> shared);
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 Handle<Code> code); 826 Handle<Code> code);
825 static bool DebugBreakSlotIsPatched(Address pc); 827 static bool DebugBreakSlotIsPatched(Address pc);
826 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); 828 static void ClearDebugBreakSlot(Isolate* isolate, Address pc);
827 }; 829 };
828 830
829 831
830 } // namespace internal 832 } // namespace internal
831 } // namespace v8 833 } // namespace v8
832 834
833 #endif // V8_DEBUG_DEBUG_H_ 835 #endif // V8_DEBUG_DEBUG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698