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

Side by Side Diff: src/debug.cc

Issue 10263002: Fix issue 825 (LiveEdit vs. function with no locals) in core and for ia32. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase Created 8 years, 7 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 | « src/debug.h ('k') | src/frames.h » ('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 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 2209 matching lines...) Expand 10 before | Expand all | Expand 10 after
2220 void Debug::FramesHaveBeenDropped(StackFrame::Id new_break_frame_id, 2220 void Debug::FramesHaveBeenDropped(StackFrame::Id new_break_frame_id,
2221 FrameDropMode mode, 2221 FrameDropMode mode,
2222 Object** restarter_frame_function_pointer) { 2222 Object** restarter_frame_function_pointer) {
2223 thread_local_.frame_drop_mode_ = mode; 2223 thread_local_.frame_drop_mode_ = mode;
2224 thread_local_.break_frame_id_ = new_break_frame_id; 2224 thread_local_.break_frame_id_ = new_break_frame_id;
2225 thread_local_.restarter_frame_function_pointer_ = 2225 thread_local_.restarter_frame_function_pointer_ =
2226 restarter_frame_function_pointer; 2226 restarter_frame_function_pointer;
2227 } 2227 }
2228 2228
2229 2229
2230 const int Debug::FramePaddingLayout::kInitialSize = 1;
2231
2232
2233 // Any even value bigger than kInitialSize as needed for stack scanning.
2234 const int Debug::FramePaddingLayout::kPaddingValue = kInitialSize + 1;
2235
2236
2230 bool Debug::IsDebugGlobal(GlobalObject* global) { 2237 bool Debug::IsDebugGlobal(GlobalObject* global) {
2231 return IsLoaded() && global == debug_context()->global(); 2238 return IsLoaded() && global == debug_context()->global();
2232 } 2239 }
2233 2240
2234 2241
2235 void Debug::ClearMirrorCache() { 2242 void Debug::ClearMirrorCache() {
2236 PostponeInterruptsScope postpone(isolate_); 2243 PostponeInterruptsScope postpone(isolate_);
2237 HandleScope scope(isolate_); 2244 HandleScope scope(isolate_);
2238 ASSERT(isolate_->context() == *Debug::debug_context()); 2245 ASSERT(isolate_->context() == *Debug::debug_context());
2239 2246
(...skipping 1342 matching lines...) Expand 10 before | Expand all | Expand 10 after
3582 { 3589 {
3583 Locker locker; 3590 Locker locker;
3584 Isolate::Current()->debugger()->CallMessageDispatchHandler(); 3591 Isolate::Current()->debugger()->CallMessageDispatchHandler();
3585 } 3592 }
3586 } 3593 }
3587 } 3594 }
3588 3595
3589 #endif // ENABLE_DEBUGGER_SUPPORT 3596 #endif // ENABLE_DEBUGGER_SUPPORT
3590 3597
3591 } } // namespace v8::internal 3598 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/debug.h ('k') | src/frames.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698