| Index: src/frames.h
|
| ===================================================================
|
| --- src/frames.h (revision 7542)
|
| +++ src/frames.h (working copy)
|
| @@ -449,15 +449,12 @@
|
| inline void set_receiver(Object* value);
|
|
|
| // Access the parameters.
|
| - Object* GetParameter(int index) const;
|
| - int ComputeParametersCount() const;
|
| + inline Address GetParameterSlot(int index) const;
|
| + inline Object* GetParameter(int index) const;
|
| + inline int ComputeParametersCount() const {
|
| + return GetNumberOfIncomingArguments();
|
| + }
|
|
|
| - // Temporary way of getting access to the number of parameters
|
| - // passed on the stack by the caller. Once argument adaptor frames
|
| - // has been introduced on ARM, this number will always match the
|
| - // computed parameters count.
|
| - int GetProvidedParametersCount() const;
|
| -
|
| // Check if this frame is a constructor frame invoked through 'new'.
|
| bool IsConstructor() const;
|
|
|
| @@ -494,6 +491,8 @@
|
|
|
| virtual Address GetCallerStackPointer() const;
|
|
|
| + virtual int GetNumberOfIncomingArguments() const;
|
| +
|
| // Garbage collection support. Iterates over incoming arguments,
|
| // receiver, and any callee-saved registers.
|
| void IterateArguments(ObjectVisitor* v) const;
|
| @@ -554,6 +553,10 @@
|
| explicit ArgumentsAdaptorFrame(StackFrameIterator* iterator)
|
| : JavaScriptFrame(iterator) { }
|
|
|
| + virtual int GetNumberOfIncomingArguments() const {
|
| + return Smi::cast(GetExpression(0))->value();
|
| + }
|
| +
|
| virtual Address GetCallerStackPointer() const;
|
|
|
| private:
|
|
|