| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |