| OLD | NEW |
| 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 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 645 if (caught_exception) { | 645 if (caught_exception) { |
| 646 Handle<Object> message = MessageHandler::MakeMessageObject( | 646 Handle<Object> message = MessageHandler::MakeMessageObject( |
| 647 "error_loading_debugger", NULL, HandleVector<Object>(&result, 1), | 647 "error_loading_debugger", NULL, HandleVector<Object>(&result, 1), |
| 648 Handle<String>()); | 648 Handle<String>()); |
| 649 MessageHandler::ReportMessage(NULL, message); | 649 MessageHandler::ReportMessage(NULL, message); |
| 650 return false; | 650 return false; |
| 651 } | 651 } |
| 652 | 652 |
| 653 // Mark this script as native and return successfully. | 653 // Mark this script as native and return successfully. |
| 654 Handle<Script> script(Script::cast(function->shared()->script())); | 654 Handle<Script> script(Script::cast(function->shared()->script())); |
| 655 script->set_type(Smi::FromInt(SCRIPT_TYPE_NATIVE)); | 655 script->set_type(Smi::FromInt(Script::TYPE_NATIVE)); |
| 656 return true; | 656 return true; |
| 657 } | 657 } |
| 658 | 658 |
| 659 | 659 |
| 660 bool Debug::Load() { | 660 bool Debug::Load() { |
| 661 // Return if debugger is already loaded. | 661 // Return if debugger is already loaded. |
| 662 if (IsLoaded()) return true; | 662 if (IsLoaded()) return true; |
| 663 | 663 |
| 664 // Bail out if we're already in the process of compiling the native | 664 // Bail out if we're already in the process of compiling the native |
| 665 // JavaScript source code for the debugger. | 665 // JavaScript source code for the debugger. |
| (...skipping 1868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2534 | 2534 |
| 2535 | 2535 |
| 2536 void LockingCommandMessageQueue::Clear() { | 2536 void LockingCommandMessageQueue::Clear() { |
| 2537 ScopedLock sl(lock_); | 2537 ScopedLock sl(lock_); |
| 2538 queue_.Clear(); | 2538 queue_.Clear(); |
| 2539 } | 2539 } |
| 2540 | 2540 |
| 2541 #endif // ENABLE_DEBUGGER_SUPPORT | 2541 #endif // ENABLE_DEBUGGER_SUPPORT |
| 2542 | 2542 |
| 2543 } } // namespace v8::internal | 2543 } } // namespace v8::internal |
| OLD | NEW |