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

Side by Side Diff: src/debug.h

Issue 6577036: [Isolates] Merge from bleeding_edge to isolates, revisions 6100-6300. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 years, 10 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 | « src/date.js ('k') | src/debug.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 15 matching lines...) Expand all
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #ifndef V8_DEBUG_H_ 28 #ifndef V8_DEBUG_H_
29 #define V8_DEBUG_H_ 29 #define V8_DEBUG_H_
30 30
31 #include "arguments.h" 31 #include "arguments.h"
32 #include "assembler.h" 32 #include "assembler.h"
33 #include "debug-agent.h" 33 #include "debug-agent.h"
34 #include "execution.h" 34 #include "execution.h"
35 #include "factory.h" 35 #include "factory.h"
36 #include "flags.h"
36 #include "hashmap.h" 37 #include "hashmap.h"
37 #include "platform.h" 38 #include "platform.h"
38 #include "string-stream.h" 39 #include "string-stream.h"
39 #include "v8threads.h" 40 #include "v8threads.h"
40 41
41 #ifdef ENABLE_DEBUGGER_SUPPORT 42 #ifdef ENABLE_DEBUGGER_SUPPORT
42 #include "../include/v8-debug.h" 43 #include "../include/v8-debug.h"
43 44
44 namespace v8 { 45 namespace v8 {
45 namespace internal { 46 namespace internal {
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 inline bool EventActive(v8::DebugEvent event) { 776 inline bool EventActive(v8::DebugEvent event) {
776 ScopedLock with(debugger_access_); 777 ScopedLock with(debugger_access_);
777 778
778 // Check whether the message handler was been cleared. 779 // Check whether the message handler was been cleared.
779 if (debugger_unload_pending_) { 780 if (debugger_unload_pending_) {
780 if (isolate_->debug()->debugger_entry() == NULL) { 781 if (isolate_->debug()->debugger_entry() == NULL) {
781 UnloadDebugger(); 782 UnloadDebugger();
782 } 783 }
783 } 784 }
784 785
786 if (((event == v8::BeforeCompile) || (event == v8::AfterCompile)) &&
787 !FLAG_debug_compile_events) {
788 return false;
789
790 } else if ((event == v8::ScriptCollected) &&
791 !FLAG_debug_script_collected_events) {
792 return false;
793 }
794
785 // Currently argument event is not used. 795 // Currently argument event is not used.
786 return !compiling_natives_ && Debugger::IsDebuggerActive(); 796 return !compiling_natives_ && Debugger::IsDebuggerActive();
787 } 797 }
788 798
789 void set_compiling_natives(bool compiling_natives) { 799 void set_compiling_natives(bool compiling_natives) {
790 Debugger::compiling_natives_ = compiling_natives; 800 Debugger::compiling_natives_ = compiling_natives;
791 } 801 }
792 bool compiling_natives() const { return compiling_natives_; } 802 bool compiling_natives() const { return compiling_natives_; }
793 void set_loading_debugger(bool v) { is_loading_debugger_ = v; } 803 void set_loading_debugger(bool v) { is_loading_debugger_ = v; }
794 bool is_loading_debugger() const { return is_loading_debugger_; } 804 bool is_loading_debugger() const { return is_loading_debugger_; }
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 1042
1033 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread); 1043 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread);
1034 }; 1044 };
1035 1045
1036 1046
1037 } } // namespace v8::internal 1047 } } // namespace v8::internal
1038 1048
1039 #endif // ENABLE_DEBUGGER_SUPPORT 1049 #endif // ENABLE_DEBUGGER_SUPPORT
1040 1050
1041 #endif // V8_DEBUG_H_ 1051 #endif // V8_DEBUG_H_
OLDNEW
« no previous file with comments | « src/date.js ('k') | src/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698