Chromium Code Reviews| Index: src/deoptimizer.h |
| diff --git a/src/deoptimizer.h b/src/deoptimizer.h |
| index 64823183a52446448afb5696fb7821ee66901a0d..7d2bea32b6734e1fd01f1eeb600c1a5f7d7bc5d5 100644 |
| --- a/src/deoptimizer.h |
| +++ b/src/deoptimizer.h |
| @@ -665,6 +665,11 @@ class DeoptimizedFrameInfo : public Malloced { |
| // Return the height of the expression stack. |
| int expression_count() { return expression_count_; } |
| + // Get the frame function. |
| + Object* GetFunction() { |
|
Sven Panne
2011/07/06 12:24:19
Why should we make the typing weaker here than it
Søren Thygesen Gjesse
2011/07/06 13:01:43
Good point, changed to JSFunction*.
|
| + return function_; |
| + } |
| + |
| // Get an expression from the expression stack. |
| Object* GetExpression(int index) { |
| ASSERT(0 <= index && index < expression_count()); |
| @@ -672,12 +677,18 @@ class DeoptimizedFrameInfo : public Malloced { |
| } |
| private: |
| + // Set the frame function. |
| + void SetFunction(JSFunction* function) { |
| + function_ = function; |
| + } |
| + |
| // Set an expression on the expression stack. |
| void SetExpression(int index, Object* obj) { |
| ASSERT(0 <= index && index < expression_count()); |
| expression_stack_[index] = obj; |
| } |
| + Object* function_; |
| int expression_count_; |
| Object** expression_stack_; |