OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 inline Object* receiver() const; | 529 inline Object* receiver() const; |
530 inline void set_receiver(Object* value); | 530 inline void set_receiver(Object* value); |
531 | 531 |
532 // Access the parameters. | 532 // Access the parameters. |
533 inline Address GetParameterSlot(int index) const; | 533 inline Address GetParameterSlot(int index) const; |
534 inline Object* GetParameter(int index) const; | 534 inline Object* GetParameter(int index) const; |
535 inline int ComputeParametersCount() const { | 535 inline int ComputeParametersCount() const { |
536 return GetNumberOfIncomingArguments(); | 536 return GetNumberOfIncomingArguments(); |
537 } | 537 } |
538 | 538 |
| 539 // Access the operand stack. |
| 540 inline Address GetOperandSlot(int index) const; |
| 541 inline Object* GetOperand(int index) const; |
| 542 inline int ComputeOperandsCount() const; |
| 543 |
539 // Debugger access. | 544 // Debugger access. |
540 void SetParameterValue(int index, Object* value) const; | 545 void SetParameterValue(int index, Object* value) const; |
541 | 546 |
542 // Check if this frame is a constructor frame invoked through 'new'. | 547 // Check if this frame is a constructor frame invoked through 'new'. |
543 bool IsConstructor() const; | 548 bool IsConstructor() const; |
544 | 549 |
545 // Check if this frame has "adapted" arguments in the sense that the | 550 // Check if this frame has "adapted" arguments in the sense that the |
546 // actual passed arguments are available in an arguments adaptor | 551 // actual passed arguments are available in an arguments adaptor |
547 // frame below it on the stack. | 552 // frame below it on the stack. |
548 inline bool has_adapted_arguments() const; | 553 inline bool has_adapted_arguments() const; |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
984 }; | 989 }; |
985 | 990 |
986 | 991 |
987 // Reads all frames on the current stack and copies them into the current | 992 // Reads all frames on the current stack and copies them into the current |
988 // zone memory. | 993 // zone memory. |
989 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); | 994 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); |
990 | 995 |
991 } } // namespace v8::internal | 996 } } // namespace v8::internal |
992 | 997 |
993 #endif // V8_FRAMES_H_ | 998 #endif // V8_FRAMES_H_ |
OLD | NEW |