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 1011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1022 // Printing support. | 1022 // Printing support. |
1023 void Print(StringStream* accumulator, PrintMode mode, | 1023 void Print(StringStream* accumulator, PrintMode mode, |
1024 int index) const override; | 1024 int index) const override; |
1025 | 1025 |
1026 // Determine the code for the frame. | 1026 // Determine the code for the frame. |
1027 Code* unchecked_code() const override; | 1027 Code* unchecked_code() const override; |
1028 | 1028 |
1029 // Return a list with {SharedFunctionInfo} objects of this frame. | 1029 // Return a list with {SharedFunctionInfo} objects of this frame. |
1030 virtual void GetFunctions(List<SharedFunctionInfo*>* functions) const; | 1030 virtual void GetFunctions(List<SharedFunctionInfo*>* functions) const; |
1031 | 1031 |
| 1032 void GetFunctions(List<Handle<SharedFunctionInfo>>* functions) const; |
| 1033 |
1032 // Lookup exception handler for current {pc}, returns -1 if none found. Also | 1034 // Lookup exception handler for current {pc}, returns -1 if none found. Also |
1033 // returns data associated with the handler site specific to the frame type: | 1035 // returns data associated with the handler site specific to the frame type: |
1034 // - OptimizedFrame : Data is the stack slot count of the entire frame. | 1036 // - OptimizedFrame : Data is the stack slot count of the entire frame. |
1035 // - InterpretedFrame: Data is the register index holding the context. | 1037 // - InterpretedFrame: Data is the register index holding the context. |
1036 virtual int LookupExceptionHandlerInTable( | 1038 virtual int LookupExceptionHandlerInTable( |
1037 int* data, HandlerTable::CatchPrediction* prediction); | 1039 int* data, HandlerTable::CatchPrediction* prediction); |
1038 | 1040 |
1039 // Architecture-specific register description. | 1041 // Architecture-specific register description. |
1040 static Register fp_register(); | 1042 static Register fp_register(); |
1041 static Register context_register(); | 1043 static Register context_register(); |
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1548 | 1550 |
1549 | 1551 |
1550 // Reads all frames on the current stack and copies them into the current | 1552 // Reads all frames on the current stack and copies them into the current |
1551 // zone memory. | 1553 // zone memory. |
1552 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); | 1554 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); |
1553 | 1555 |
1554 } // namespace internal | 1556 } // namespace internal |
1555 } // namespace v8 | 1557 } // namespace v8 |
1556 | 1558 |
1557 #endif // V8_FRAMES_H_ | 1559 #endif // V8_FRAMES_H_ |
OLD | NEW |