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 7077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7088 i::Vector<const uint16_t>(command, length), client_data); | 7088 i::Vector<const uint16_t>(command, length), client_data); |
7089 } | 7089 } |
7090 } | 7090 } |
7091 | 7091 |
7092 | 7092 |
7093 void Debug::SetHostDispatchHandler(HostDispatchHandler handler, | 7093 void Debug::SetHostDispatchHandler(HostDispatchHandler handler, |
7094 int period) { | 7094 int period) { |
7095 i::Isolate* isolate = i::Isolate::Current(); | 7095 i::Isolate* isolate = i::Isolate::Current(); |
7096 EnsureInitializedForIsolate(isolate, "v8::Debug::SetHostDispatchHandler"); | 7096 EnsureInitializedForIsolate(isolate, "v8::Debug::SetHostDispatchHandler"); |
7097 ENTER_V8(isolate); | 7097 ENTER_V8(isolate); |
7098 isolate->debugger()->SetHostDispatchHandler(handler, period); | 7098 isolate->debugger()->SetHostDispatchHandler( |
| 7099 handler, i::TimeDelta::FromMilliseconds(period)); |
7099 } | 7100 } |
7100 | 7101 |
7101 | 7102 |
7102 void Debug::SetDebugMessageDispatchHandler( | 7103 void Debug::SetDebugMessageDispatchHandler( |
7103 DebugMessageDispatchHandler handler, bool provide_locker) { | 7104 DebugMessageDispatchHandler handler, bool provide_locker) { |
7104 i::Isolate* isolate = i::Isolate::Current(); | 7105 i::Isolate* isolate = i::Isolate::Current(); |
7105 EnsureInitializedForIsolate(isolate, | 7106 EnsureInitializedForIsolate(isolate, |
7106 "v8::Debug::SetDebugMessageDispatchHandler"); | 7107 "v8::Debug::SetDebugMessageDispatchHandler"); |
7107 ENTER_V8(isolate); | 7108 ENTER_V8(isolate); |
7108 isolate->debugger()->SetDebugMessageDispatchHandler( | 7109 isolate->debugger()->SetDebugMessageDispatchHandler( |
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7863 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); | 7864 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); |
7864 Address callback_address = | 7865 Address callback_address = |
7865 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 7866 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
7866 VMState<EXTERNAL> state(isolate); | 7867 VMState<EXTERNAL> state(isolate); |
7867 ExternalCallbackScope call_scope(isolate, callback_address); | 7868 ExternalCallbackScope call_scope(isolate, callback_address); |
7868 return callback(info); | 7869 return callback(info); |
7869 } | 7870 } |
7870 | 7871 |
7871 | 7872 |
7872 } } // namespace v8::internal | 7873 } } // namespace v8::internal |
OLD | NEW |