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

Side by Side Diff: src/frames.h

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.cc ('k') | src/ia32/debug-ia32.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 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 // Accessors. 204 // Accessors.
205 Address sp() const { return state_.sp; } 205 Address sp() const { return state_.sp; }
206 Address fp() const { return state_.fp; } 206 Address fp() const { return state_.fp; }
207 Address caller_sp() const { return GetCallerStackPointer(); } 207 Address caller_sp() const { return GetCallerStackPointer(); }
208 208
209 Address pc() const { return *pc_address(); } 209 Address pc() const { return *pc_address(); }
210 void set_pc(Address pc) { *pc_address() = pc; } 210 void set_pc(Address pc) { *pc_address() = pc; }
211 211
212 virtual void SetCallerFp(Address caller_fp) = 0; 212 virtual void SetCallerFp(Address caller_fp) = 0;
213 213
214 // Manually changes value of fp in this object.
215 void UpdateFp(Address fp) { state_.fp = fp; }
216
214 Address* pc_address() const { return state_.pc_address; } 217 Address* pc_address() const { return state_.pc_address; }
215 218
216 // Get the id of this stack frame. 219 // Get the id of this stack frame.
217 Id id() const { return static_cast<Id>(OffsetFrom(caller_sp())); } 220 Id id() const { return static_cast<Id>(OffsetFrom(caller_sp())); }
218 221
219 // Checks if this frame includes any stack handlers. 222 // Checks if this frame includes any stack handlers.
220 bool HasHandler() const; 223 bool HasHandler() const;
221 224
222 // Get the type of this frame. 225 // Get the type of this frame.
223 virtual Type type() const = 0; 226 virtual Type type() const = 0;
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 }; 886 };
884 887
885 888
886 // Reads all frames on the current stack and copies them into the current 889 // Reads all frames on the current stack and copies them into the current
887 // zone memory. 890 // zone memory.
888 Vector<StackFrame*> CreateStackMap(); 891 Vector<StackFrame*> CreateStackMap();
889 892
890 } } // namespace v8::internal 893 } } // namespace v8::internal
891 894
892 #endif // V8_FRAMES_H_ 895 #endif // V8_FRAMES_H_
OLDNEW
« no previous file with comments | « src/debug.cc ('k') | src/ia32/debug-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698