| 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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 | 445 |
| 446 // Accessors. | 446 // Accessors. |
| 447 inline Object* function() const; | 447 inline Object* function() const; |
| 448 inline Object* receiver() const; | 448 inline Object* receiver() const; |
| 449 inline void set_receiver(Object* value); | 449 inline void set_receiver(Object* value); |
| 450 | 450 |
| 451 // Access the parameters. | 451 // Access the parameters. |
| 452 Object* GetParameter(int index) const; | 452 Object* GetParameter(int index) const; |
| 453 int ComputeParametersCount() const; | 453 int ComputeParametersCount() const; |
| 454 | 454 |
| 455 // Temporary way of getting access to the number of parameters | |
| 456 // passed on the stack by the caller. Once argument adaptor frames | |
| 457 // has been introduced on ARM, this number will always match the | |
| 458 // computed parameters count. | |
| 459 int GetProvidedParametersCount() const; | |
| 460 | |
| 461 // Check if this frame is a constructor frame invoked through 'new'. | 455 // Check if this frame is a constructor frame invoked through 'new'. |
| 462 bool IsConstructor() const; | 456 bool IsConstructor() const; |
| 463 | 457 |
| 464 // Check if this frame has "adapted" arguments in the sense that the | 458 // Check if this frame has "adapted" arguments in the sense that the |
| 465 // actual passed arguments are available in an arguments adaptor | 459 // actual passed arguments are available in an arguments adaptor |
| 466 // frame below it on the stack. | 460 // frame below it on the stack. |
| 467 inline bool has_adapted_arguments() const; | 461 inline bool has_adapted_arguments() const; |
| 468 | 462 |
| 469 // Garbage collection support. | 463 // Garbage collection support. |
| 470 virtual void Iterate(ObjectVisitor* v) const; | 464 virtual void Iterate(ObjectVisitor* v) const; |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 817 }; | 811 }; |
| 818 | 812 |
| 819 | 813 |
| 820 // Reads all frames on the current stack and copies them into the current | 814 // Reads all frames on the current stack and copies them into the current |
| 821 // zone memory. | 815 // zone memory. |
| 822 Vector<StackFrame*> CreateStackMap(); | 816 Vector<StackFrame*> CreateStackMap(); |
| 823 | 817 |
| 824 } } // namespace v8::internal | 818 } } // namespace v8::internal |
| 825 | 819 |
| 826 #endif // V8_FRAMES_H_ | 820 #endif // V8_FRAMES_H_ |
| OLD | NEW |