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