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 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
607 // Architecture-specific register description. | 607 // Architecture-specific register description. |
608 static Register fp_register(); | 608 static Register fp_register(); |
609 static Register context_register(); | 609 static Register context_register(); |
610 static Register constant_pool_pointer_register(); | 610 static Register constant_pool_pointer_register(); |
611 | 611 |
612 static JavaScriptFrame* cast(StackFrame* frame) { | 612 static JavaScriptFrame* cast(StackFrame* frame) { |
613 ASSERT(frame->is_java_script()); | 613 ASSERT(frame->is_java_script()); |
614 return static_cast<JavaScriptFrame*>(frame); | 614 return static_cast<JavaScriptFrame*>(frame); |
615 } | 615 } |
616 | 616 |
617 static void PrintTop(Isolate* isolate, | 617 static void PrintFunctionAndOffset(JSFunction* function, Code* code, |
618 FILE* file, | 618 Address pc, FILE* file, |
619 bool print_args, | 619 bool print_line_number); |
| 620 |
| 621 static void PrintTop(Isolate* isolate, FILE* file, bool print_args, |
620 bool print_line_number); | 622 bool print_line_number); |
621 | 623 |
622 protected: | 624 protected: |
623 inline explicit JavaScriptFrame(StackFrameIteratorBase* iterator); | 625 inline explicit JavaScriptFrame(StackFrameIteratorBase* iterator); |
624 | 626 |
625 virtual Address GetCallerStackPointer() const; | 627 virtual Address GetCallerStackPointer() const; |
626 | 628 |
627 virtual int GetNumberOfIncomingArguments() const; | 629 virtual int GetNumberOfIncomingArguments() const; |
628 | 630 |
629 // Garbage collection support. Iterates over incoming arguments, | 631 // Garbage collection support. Iterates over incoming arguments, |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
930 }; | 932 }; |
931 | 933 |
932 | 934 |
933 // Reads all frames on the current stack and copies them into the current | 935 // Reads all frames on the current stack and copies them into the current |
934 // zone memory. | 936 // zone memory. |
935 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); | 937 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); |
936 | 938 |
937 } } // namespace v8::internal | 939 } } // namespace v8::internal |
938 | 940 |
939 #endif // V8_FRAMES_H_ | 941 #endif // V8_FRAMES_H_ |
OLD | NEW |