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 1821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1832 restarter_frame_function_pointer; | 1832 restarter_frame_function_pointer; |
1833 } | 1833 } |
1834 | 1834 |
1835 | 1835 |
1836 bool Debug::IsDebugGlobal(GlobalObject* global) { | 1836 bool Debug::IsDebugGlobal(GlobalObject* global) { |
1837 return IsLoaded() && global == Debug::debug_context()->global(); | 1837 return IsLoaded() && global == Debug::debug_context()->global(); |
1838 } | 1838 } |
1839 | 1839 |
1840 | 1840 |
1841 void Debug::ClearMirrorCache() { | 1841 void Debug::ClearMirrorCache() { |
| 1842 PostponeInterruptsScope postpone; |
1842 HandleScope scope; | 1843 HandleScope scope; |
1843 ASSERT(Top::context() == *Debug::debug_context()); | 1844 ASSERT(Top::context() == *Debug::debug_context()); |
1844 | 1845 |
1845 // Clear the mirror cache. | 1846 // Clear the mirror cache. |
1846 Handle<String> function_name = | 1847 Handle<String> function_name = |
1847 Factory::LookupSymbol(CStrVector("ClearMirrorCache")); | 1848 Factory::LookupSymbol(CStrVector("ClearMirrorCache")); |
1848 Handle<Object> fun(Top::global()->GetPropertyNoExceptionThrown( | 1849 Handle<Object> fun(Top::global()->GetPropertyNoExceptionThrown( |
1849 *function_name)); | 1850 *function_name)); |
1850 ASSERT(fun->IsJSFunction()); | 1851 ASSERT(fun->IsJSFunction()); |
1851 bool caught_exception; | 1852 bool caught_exception; |
(...skipping 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3060 { | 3061 { |
3061 Locker locker; | 3062 Locker locker; |
3062 Debugger::CallMessageDispatchHandler(); | 3063 Debugger::CallMessageDispatchHandler(); |
3063 } | 3064 } |
3064 } | 3065 } |
3065 } | 3066 } |
3066 | 3067 |
3067 #endif // ENABLE_DEBUGGER_SUPPORT | 3068 #endif // ENABLE_DEBUGGER_SUPPORT |
3068 | 3069 |
3069 } } // namespace v8::internal | 3070 } } // namespace v8::internal |
OLD | NEW |