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

Side by Side Diff: src/frames.h

Issue 2943002: Reimplement stack manipulations for LiveEdit (Closed)
Patch Set: follow codereview Created 10 years, 5 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
« no previous file with comments | « src/factory.cc ('k') | src/frames.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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 // Accessors. 310 // Accessors.
311 inline Object* context() const; 311 inline Object* context() const;
312 312
313 // Access the expressions in the stack frame including locals. 313 // Access the expressions in the stack frame including locals.
314 inline Object* GetExpression(int index) const; 314 inline Object* GetExpression(int index) const;
315 inline void SetExpression(int index, Object* value); 315 inline void SetExpression(int index, Object* value);
316 int ComputeExpressionsCount() const; 316 int ComputeExpressionsCount() const;
317 317
318 virtual void SetCallerFp(Address caller_fp); 318 virtual void SetCallerFp(Address caller_fp);
319 319
320 void SetContext(Context* context);
321
320 static StandardFrame* cast(StackFrame* frame) { 322 static StandardFrame* cast(StackFrame* frame) {
321 ASSERT(frame->is_standard()); 323 ASSERT(frame->is_standard());
322 return static_cast<StandardFrame*>(frame); 324 return static_cast<StandardFrame*>(frame);
323 } 325 }
324 326
325 protected: 327 protected:
326 explicit StandardFrame(StackFrameIterator* iterator) 328 explicit StandardFrame(StackFrameIterator* iterator)
327 : StackFrame(iterator) { } 329 : StackFrame(iterator) { }
328 330
329 virtual void ComputeCallerState(State* state) const; 331 virtual void ComputeCallerState(State* state) const;
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 672
671 private: 673 private:
672 StackFrameIterator iterator_; 674 StackFrameIterator iterator_;
673 }; 675 };
674 676
675 677
676 // Reads all frames on the current stack and copies them into the current 678 // Reads all frames on the current stack and copies them into the current
677 // zone memory. 679 // zone memory.
678 Vector<StackFrame*> CreateStackMap(); 680 Vector<StackFrame*> CreateStackMap();
679 681
682 // Returns memory size of a particular type of stack frame (for object
683 // memory manipulations).
684 int GetStackFrameObjectSize(StackFrame* frame);
685
680 } } // namespace v8::internal 686 } } // namespace v8::internal
681 687
682 #endif // V8_FRAMES_H_ 688 #endif // V8_FRAMES_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/frames.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698