| 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 958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 969 // Determine the code for the frame. | 969 // Determine the code for the frame. |
| 970 Code* unchecked_code() const override; | 970 Code* unchecked_code() const override; |
| 971 | 971 |
| 972 static WasmFrame* cast(StackFrame* frame) { | 972 static WasmFrame* cast(StackFrame* frame) { |
| 973 DCHECK(frame->is_wasm()); | 973 DCHECK(frame->is_wasm()); |
| 974 return static_cast<WasmFrame*>(frame); | 974 return static_cast<WasmFrame*>(frame); |
| 975 } | 975 } |
| 976 | 976 |
| 977 JSFunction* function() const override; | 977 JSFunction* function() const override; |
| 978 | 978 |
| 979 void Summarize(List<FrameSummary>* frames) const override; |
| 980 |
| 979 protected: | 981 protected: |
| 980 inline explicit WasmFrame(StackFrameIteratorBase* iterator); | 982 inline explicit WasmFrame(StackFrameIteratorBase* iterator); |
| 981 | 983 |
| 982 Address GetCallerStackPointer() const override; | 984 Address GetCallerStackPointer() const override; |
| 983 | 985 |
| 984 private: | 986 private: |
| 985 friend class StackFrameIteratorBase; | 987 friend class StackFrameIteratorBase; |
| 986 }; | 988 }; |
| 987 | 989 |
| 988 class WasmToJsFrame : public StubFrame { | 990 class WasmToJsFrame : public StubFrame { |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1218 | 1220 |
| 1219 | 1221 |
| 1220 // Reads all frames on the current stack and copies them into the current | 1222 // Reads all frames on the current stack and copies them into the current |
| 1221 // zone memory. | 1223 // zone memory. |
| 1222 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); | 1224 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); |
| 1223 | 1225 |
| 1224 } // namespace internal | 1226 } // namespace internal |
| 1225 } // namespace v8 | 1227 } // namespace v8 |
| 1226 | 1228 |
| 1227 #endif // V8_FRAMES_H_ | 1229 #endif // V8_FRAMES_H_ |
| OLD | NEW |