| 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 3366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3377 i::Debugger::SetMessageHandler(MessageHandlerWrapper); | 3377 i::Debugger::SetMessageHandler(MessageHandlerWrapper); |
| 3378 } else { | 3378 } else { |
| 3379 i::Debugger::SetMessageHandler(NULL); | 3379 i::Debugger::SetMessageHandler(NULL); |
| 3380 } | 3380 } |
| 3381 } | 3381 } |
| 3382 | 3382 |
| 3383 | 3383 |
| 3384 void Debug::SetMessageHandler2(v8::Debug::MessageHandler2 handler) { | 3384 void Debug::SetMessageHandler2(v8::Debug::MessageHandler2 handler) { |
| 3385 EnsureInitialized("v8::Debug::SetMessageHandler"); | 3385 EnsureInitialized("v8::Debug::SetMessageHandler"); |
| 3386 ENTER_V8; | 3386 ENTER_V8; |
| 3387 HandleScope scope; |
| 3387 i::Debugger::SetMessageHandler(handler); | 3388 i::Debugger::SetMessageHandler(handler); |
| 3388 } | 3389 } |
| 3389 | 3390 |
| 3390 | 3391 |
| 3391 void Debug::SendCommand(const uint16_t* command, int length, | 3392 void Debug::SendCommand(const uint16_t* command, int length, |
| 3392 ClientData* client_data) { | 3393 ClientData* client_data) { |
| 3393 if (!i::V8::IsRunning()) return; | 3394 if (!i::V8::IsRunning()) return; |
| 3394 i::Debugger::ProcessCommand(i::Vector<const uint16_t>(command, length), | 3395 i::Debugger::ProcessCommand(i::Vector<const uint16_t>(command, length), |
| 3395 client_data); | 3396 client_data); |
| 3396 } | 3397 } |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3504 reinterpret_cast<HandleScopeImplementer*>(storage); | 3505 reinterpret_cast<HandleScopeImplementer*>(storage); |
| 3505 List<void**>* blocks_of_archived_thread = thread_local->Blocks(); | 3506 List<void**>* blocks_of_archived_thread = thread_local->Blocks(); |
| 3506 v8::ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread = | 3507 v8::ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread = |
| 3507 &thread_local->handle_scope_data_; | 3508 &thread_local->handle_scope_data_; |
| 3508 Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread); | 3509 Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread); |
| 3509 | 3510 |
| 3510 return storage + ArchiveSpacePerThread(); | 3511 return storage + ArchiveSpacePerThread(); |
| 3511 } | 3512 } |
| 3512 | 3513 |
| 3513 } } // namespace v8::internal | 3514 } } // namespace v8::internal |
| OLD | NEW |