Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(317)

Side by Side Diff: src/debug.cc

Issue 4405003: Add a test for debug break while running in an infinite loop... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | test/cctest/test-debug.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | test/cctest/test-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698