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

Side by Side Diff: src/debug.h

Issue 2783002: Better handling of stepping out of a function... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 6 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/arm/full-codegen-arm.cc ('k') | src/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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 263
264 static Handle<Object> GetSourceBreakLocations( 264 static Handle<Object> GetSourceBreakLocations(
265 Handle<SharedFunctionInfo> shared); 265 Handle<SharedFunctionInfo> shared);
266 266
267 // Getter for the debug_context. 267 // Getter for the debug_context.
268 inline static Handle<Context> debug_context() { return debug_context_; } 268 inline static Handle<Context> debug_context() { return debug_context_; }
269 269
270 // Check whether a global object is the debug global object. 270 // Check whether a global object is the debug global object.
271 static bool IsDebugGlobal(GlobalObject* global); 271 static bool IsDebugGlobal(GlobalObject* global);
272 272
273 // Check whether this frame is just about to return.
274 static bool IsBreakAtReturn(JavaScriptFrame* frame);
275
273 // Fast check to see if any break points are active. 276 // Fast check to see if any break points are active.
274 inline static bool has_break_points() { return has_break_points_; } 277 inline static bool has_break_points() { return has_break_points_; }
275 278
276 static void NewBreak(StackFrame::Id break_frame_id); 279 static void NewBreak(StackFrame::Id break_frame_id);
277 static void SetBreak(StackFrame::Id break_frame_id, int break_id); 280 static void SetBreak(StackFrame::Id break_frame_id, int break_id);
278 static StackFrame::Id break_frame_id() { 281 static StackFrame::Id break_frame_id() {
279 return thread_local_.break_frame_id_; 282 return thread_local_.break_frame_id_;
280 } 283 }
281 static int break_id() { return thread_local_.break_id_; } 284 static int break_id() { return thread_local_.break_id_; }
282 285
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after
946 949
947 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread); 950 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread);
948 }; 951 };
949 952
950 953
951 } } // namespace v8::internal 954 } } // namespace v8::internal
952 955
953 #endif // ENABLE_DEBUGGER_SUPPORT 956 #endif // ENABLE_DEBUGGER_SUPPORT
954 957
955 #endif // V8_DEBUG_H_ 958 #endif // V8_DEBUG_H_
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698