OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_FRAMES_H_ | 5 #ifndef V8_FRAMES_H_ |
6 #define V8_FRAMES_H_ | 6 #define V8_FRAMES_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/handles.h" | 9 #include "src/handles.h" |
10 #include "src/safepoint-table.h" | 10 #include "src/safepoint-table.h" |
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
569 // Generator support to preserve operand stack. | 569 // Generator support to preserve operand stack. |
570 void SaveOperandStack(FixedArray* store) const; | 570 void SaveOperandStack(FixedArray* store) const; |
571 void RestoreOperandStack(FixedArray* store); | 571 void RestoreOperandStack(FixedArray* store); |
572 | 572 |
573 // Debugger access. | 573 // Debugger access. |
574 void SetParameterValue(int index, Object* value) const; | 574 void SetParameterValue(int index, Object* value) const; |
575 | 575 |
576 // Check if this frame is a constructor frame invoked through 'new'. | 576 // Check if this frame is a constructor frame invoked through 'new'. |
577 bool IsConstructor() const; | 577 bool IsConstructor() const; |
578 | 578 |
| 579 // Determines whether this frame includes inlined activations. To get details |
| 580 // about the inlined frames use {GetFunctions} and {Summarize}. |
| 581 bool HasInlinedFrames(); |
| 582 |
579 // Returns the original constructor function that was used in the constructor | 583 // Returns the original constructor function that was used in the constructor |
580 // call to this frame. Note that this is only valid on constructor frames. | 584 // call to this frame. Note that this is only valid on constructor frames. |
581 Object* GetOriginalConstructor() const; | 585 Object* GetOriginalConstructor() const; |
582 | 586 |
583 // Check if this frame has "adapted" arguments in the sense that the | 587 // Check if this frame has "adapted" arguments in the sense that the |
584 // actual passed arguments are available in an arguments adaptor | 588 // actual passed arguments are available in an arguments adaptor |
585 // frame below it on the stack. | 589 // frame below it on the stack. |
586 inline bool has_adapted_arguments() const; | 590 inline bool has_adapted_arguments() const; |
587 int GetArgumentsLength() const; | 591 int GetArgumentsLength() const; |
588 | 592 |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
941 }; | 945 }; |
942 | 946 |
943 | 947 |
944 // Reads all frames on the current stack and copies them into the current | 948 // Reads all frames on the current stack and copies them into the current |
945 // zone memory. | 949 // zone memory. |
946 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); | 950 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); |
947 | 951 |
948 } } // namespace v8::internal | 952 } } // namespace v8::internal |
949 | 953 |
950 #endif // V8_FRAMES_H_ | 954 #endif // V8_FRAMES_H_ |
OLD | NEW |