| 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 1358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1369 argc, | 1369 argc, |
| 1370 argv, | 1370 argv, |
| 1371 caught_exception); | 1371 caught_exception); |
| 1372 } | 1372 } |
| 1373 | 1373 |
| 1374 | 1374 |
| 1375 void Debugger::OnException(Handle<Object> exception, bool uncaught) { | 1375 void Debugger::OnException(Handle<Object> exception, bool uncaught) { |
| 1376 HandleScope scope; | 1376 HandleScope scope; |
| 1377 | 1377 |
| 1378 // Bail out based on state or if there is no listener for this event | 1378 // Bail out based on state or if there is no listener for this event |
| 1379 if (Debug::InDebugger()) return; | 1379 if (Debug::InDebugger()) return; |
| 1380 if (!Debugger::EventActive(v8::Exception)) return; | 1380 if (!Debugger::EventActive(v8::Exception)) return; |
| 1381 | 1381 |
| 1382 // Bail out if exception breaks are not active | 1382 // Bail out if exception breaks are not active |
| 1383 if (uncaught) { | 1383 if (uncaught) { |
| 1384 // Uncaught exceptions are reported by either flags. | 1384 // Uncaught exceptions are reported by either flags. |
| 1385 if (!(Debug::break_on_uncaught_exception() || | 1385 if (!(Debug::break_on_uncaught_exception() || |
| 1386 Debug::break_on_exception())) return; | 1386 Debug::break_on_exception())) return; |
| 1387 } else { | 1387 } else { |
| 1388 // Caught exceptions are reported is activated. | 1388 // Caught exceptions are reported is activated. |
| 1389 if (!Debug::break_on_exception()) return; | 1389 if (!Debug::break_on_exception()) return; |
| (...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1966 } | 1966 } |
| 1967 | 1967 |
| 1968 | 1968 |
| 1969 void LockingMessageQueue::Clear() { | 1969 void LockingMessageQueue::Clear() { |
| 1970 ScopedLock sl(lock_); | 1970 ScopedLock sl(lock_); |
| 1971 queue_.Clear(); | 1971 queue_.Clear(); |
| 1972 } | 1972 } |
| 1973 | 1973 |
| 1974 | 1974 |
| 1975 } } // namespace v8::internal | 1975 } } // namespace v8::internal |
| OLD | NEW |