OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 #include "messages.h" | 46 #include "messages.h" |
47 #include "natives.h" | 47 #include "natives.h" |
48 #include "stub-cache.h" | 48 #include "stub-cache.h" |
49 #include "log.h" | 49 #include "log.h" |
50 | 50 |
51 #include "../include/v8-debug.h" | 51 #include "../include/v8-debug.h" |
52 | 52 |
53 namespace v8 { | 53 namespace v8 { |
54 namespace internal { | 54 namespace internal { |
55 | 55 |
56 #ifdef ENABLE_DEBUGGER_SUPPORT | |
57 | |
58 | |
59 Debug::Debug(Isolate* isolate) | 56 Debug::Debug(Isolate* isolate) |
60 : has_break_points_(false), | 57 : has_break_points_(false), |
61 script_cache_(NULL), | 58 script_cache_(NULL), |
62 debug_info_list_(NULL), | 59 debug_info_list_(NULL), |
63 disable_break_(false), | 60 disable_break_(false), |
64 break_on_exception_(false), | 61 break_on_exception_(false), |
65 break_on_uncaught_exception_(false), | 62 break_on_uncaught_exception_(false), |
66 debug_break_return_(NULL), | 63 debug_break_return_(NULL), |
67 debug_break_slot_(NULL), | 64 debug_break_slot_(NULL), |
68 isolate_(isolate) { | 65 isolate_(isolate) { |
(...skipping 3676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3745 LockGuard<Mutex> lock_guard(&mutex_); | 3742 LockGuard<Mutex> lock_guard(&mutex_); |
3746 already_signalled_ = false; | 3743 already_signalled_ = false; |
3747 } | 3744 } |
3748 { | 3745 { |
3749 Locker locker(reinterpret_cast<v8::Isolate*>(isolate_)); | 3746 Locker locker(reinterpret_cast<v8::Isolate*>(isolate_)); |
3750 isolate_->debugger()->CallMessageDispatchHandler(); | 3747 isolate_->debugger()->CallMessageDispatchHandler(); |
3751 } | 3748 } |
3752 } | 3749 } |
3753 } | 3750 } |
3754 | 3751 |
3755 #endif // ENABLE_DEBUGGER_SUPPORT | |
3756 | |
3757 } } // namespace v8::internal | 3752 } } // namespace v8::internal |
OLD | NEW |