OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 3720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3731 | 3731 |
3732 | 3732 |
3733 void Debug::SetHostDispatchHandler(HostDispatchHandler handler, | 3733 void Debug::SetHostDispatchHandler(HostDispatchHandler handler, |
3734 int period) { | 3734 int period) { |
3735 EnsureInitialized("v8::Debug::SetHostDispatchHandler"); | 3735 EnsureInitialized("v8::Debug::SetHostDispatchHandler"); |
3736 ENTER_V8; | 3736 ENTER_V8; |
3737 i::Debugger::SetHostDispatchHandler(handler, period); | 3737 i::Debugger::SetHostDispatchHandler(handler, period); |
3738 } | 3738 } |
3739 | 3739 |
3740 | 3740 |
| 3741 void Debug::SetDebugMessageDispatchHandler( |
| 3742 DebugMessageDispatchHandler handler) { |
| 3743 EnsureInitialized("v8::Debug::SetDebugMessageDispatchHandler"); |
| 3744 ENTER_V8; |
| 3745 i::Debugger::SetDebugMessageDispatchHandler(handler); |
| 3746 } |
| 3747 |
| 3748 |
3741 Local<Value> Debug::Call(v8::Handle<v8::Function> fun, | 3749 Local<Value> Debug::Call(v8::Handle<v8::Function> fun, |
3742 v8::Handle<v8::Value> data) { | 3750 v8::Handle<v8::Value> data) { |
3743 if (!i::V8::IsRunning()) return Local<Value>(); | 3751 if (!i::V8::IsRunning()) return Local<Value>(); |
3744 ON_BAILOUT("v8::Debug::Call()", return Local<Value>()); | 3752 ON_BAILOUT("v8::Debug::Call()", return Local<Value>()); |
3745 ENTER_V8; | 3753 ENTER_V8; |
3746 i::Handle<i::Object> result; | 3754 i::Handle<i::Object> result; |
3747 EXCEPTION_PREAMBLE(); | 3755 EXCEPTION_PREAMBLE(); |
3748 if (data.IsEmpty()) { | 3756 if (data.IsEmpty()) { |
3749 result = i::Debugger::Call(Utils::OpenHandle(*fun), | 3757 result = i::Debugger::Call(Utils::OpenHandle(*fun), |
3750 i::Factory::undefined_value(), | 3758 i::Factory::undefined_value(), |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3862 | 3870 |
3863 | 3871 |
3864 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 3872 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
3865 HandleScopeImplementer* thread_local = | 3873 HandleScopeImplementer* thread_local = |
3866 reinterpret_cast<HandleScopeImplementer*>(storage); | 3874 reinterpret_cast<HandleScopeImplementer*>(storage); |
3867 thread_local->IterateThis(v); | 3875 thread_local->IterateThis(v); |
3868 return storage + ArchiveSpacePerThread(); | 3876 return storage + ArchiveSpacePerThread(); |
3869 } | 3877 } |
3870 | 3878 |
3871 } } // namespace v8::internal | 3879 } } // namespace v8::internal |
OLD | NEW |