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

Side by Side Diff: src/debug.h

Issue 260423002: Relocate suspended generator activations when enabling debug mode (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added test case, fixed bugs Created 6 years, 7 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 | « no previous file | src/debug.cc » ('j') | src/debug.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_H_ 5 #ifndef V8_DEBUG_H_
6 #define V8_DEBUG_H_ 6 #define V8_DEBUG_H_
7 7
8 #include "allocation.h" 8 #include "allocation.h"
9 #include "arguments.h" 9 #include "arguments.h"
10 #include "assembler.h" 10 #include "assembler.h"
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 void ActivateStepIn(StackFrame* frame); 517 void ActivateStepIn(StackFrame* frame);
518 void ClearStepIn(); 518 void ClearStepIn();
519 void ActivateStepOut(StackFrame* frame); 519 void ActivateStepOut(StackFrame* frame);
520 void ClearStepNext(); 520 void ClearStepNext();
521 // Returns whether the compile succeeded. 521 // Returns whether the compile succeeded.
522 void RemoveDebugInfo(Handle<DebugInfo> debug_info); 522 void RemoveDebugInfo(Handle<DebugInfo> debug_info);
523 void SetAfterBreakTarget(JavaScriptFrame* frame); 523 void SetAfterBreakTarget(JavaScriptFrame* frame);
524 Handle<Object> CheckBreakPoints(Handle<Object> break_point); 524 Handle<Object> CheckBreakPoints(Handle<Object> break_point);
525 bool CheckBreakPoint(Handle<Object> break_point_object); 525 bool CheckBreakPoint(Handle<Object> break_point_object);
526 526
527 void MaybeRecompileFunctionForDebugging(Handle<JSFunction> function);
528 void CollectSuspendedGenerators(
529 List<Handle<JSGeneratorObject> > *suspended_generators);
530 void RecompileAndRelocateSuspendedGenerators(
531 const List<Handle<JSGeneratorObject> > &suspended_generators);
532
527 // Global handle to debug context where all the debugger JavaScript code is 533 // Global handle to debug context where all the debugger JavaScript code is
528 // loaded. 534 // loaded.
529 Handle<Context> debug_context_; 535 Handle<Context> debug_context_;
530 536
531 // Boolean state indicating whether any break points are set. 537 // Boolean state indicating whether any break points are set.
532 bool has_break_points_; 538 bool has_break_points_;
533 539
534 // Cache of all scripts in the heap. 540 // Cache of all scripts in the heap.
535 ScriptCache* script_cache_; 541 ScriptCache* script_cache_;
536 542
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
1036 Mutex mutex_; 1042 Mutex mutex_;
1037 bool already_signalled_; 1043 bool already_signalled_;
1038 1044
1039 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread); 1045 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread);
1040 }; 1046 };
1041 1047
1042 1048
1043 } } // namespace v8::internal 1049 } } // namespace v8::internal
1044 1050
1045 #endif // V8_DEBUG_H_ 1051 #endif // V8_DEBUG_H_
OLDNEW
« no previous file with comments | « no previous file | src/debug.cc » ('j') | src/debug.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698