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

Side by Side Diff: src/debug.cc

Issue 104383003: Fix GCMole issue. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 12 months 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 2107 matching lines...) Expand 10 before | Expand all | Expand 10 after
2118 } 2118 }
2119 2119
2120 // Make sure that the shared full code is compiled with debug 2120 // Make sure that the shared full code is compiled with debug
2121 // break slots. 2121 // break slots.
2122 if (!shared->code()->has_debug_break_slots()) { 2122 if (!shared->code()->has_debug_break_slots()) {
2123 // Try to compile the full code with debug break slots. If it 2123 // Try to compile the full code with debug break slots. If it
2124 // fails just keep the current code. 2124 // fails just keep the current code.
2125 bool prev_force_debugger_active = 2125 bool prev_force_debugger_active =
2126 isolate_->debugger()->force_debugger_active(); 2126 isolate_->debugger()->force_debugger_active();
2127 isolate_->debugger()->set_force_debugger_active(true); 2127 isolate_->debugger()->set_force_debugger_active(true);
2128 function->ReplaceCode(*Compiler::GetCodeForDebugging(function)); 2128 Handle<Code> code = Compiler::GetCodeForDebugging(function);
2129 function->ReplaceCode(*code);
2129 isolate_->debugger()->set_force_debugger_active( 2130 isolate_->debugger()->set_force_debugger_active(
2130 prev_force_debugger_active); 2131 prev_force_debugger_active);
2131 } 2132 }
2132 2133
2133 // Keep function code in sync with shared function info. 2134 // Keep function code in sync with shared function info.
2134 function->set_code(shared->code()); 2135 function->set_code(shared->code());
2135 } 2136 }
2136 2137
2137 RedirectActivationsToRecompiledCodeOnThread(isolate_, 2138 RedirectActivationsToRecompiledCodeOnThread(isolate_,
2138 isolate_->thread_local_top()); 2139 isolate_->thread_local_top());
(...skipping 1682 matching lines...) Expand 10 before | Expand all | Expand 10 after
3821 { 3822 {
3822 Locker locker(reinterpret_cast<v8::Isolate*>(isolate_)); 3823 Locker locker(reinterpret_cast<v8::Isolate*>(isolate_));
3823 isolate_->debugger()->CallMessageDispatchHandler(); 3824 isolate_->debugger()->CallMessageDispatchHandler();
3824 } 3825 }
3825 } 3826 }
3826 } 3827 }
3827 3828
3828 #endif // ENABLE_DEBUGGER_SUPPORT 3829 #endif // ENABLE_DEBUGGER_SUPPORT
3829 3830
3830 } } // namespace v8::internal 3831 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698