| 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 1256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1267 protected: | 1267 protected: |
| 1268 inline explicit BuiltinFrame(StackFrameIteratorBase* iterator); | 1268 inline explicit BuiltinFrame(StackFrameIteratorBase* iterator); |
| 1269 | 1269 |
| 1270 int GetNumberOfIncomingArguments() const final; | 1270 int GetNumberOfIncomingArguments() const final; |
| 1271 void PrintFrameKind(StringStream* accumulator) const override; | 1271 void PrintFrameKind(StringStream* accumulator) const override; |
| 1272 | 1272 |
| 1273 private: | 1273 private: |
| 1274 friend class StackFrameIteratorBase; | 1274 friend class StackFrameIteratorBase; |
| 1275 }; | 1275 }; |
| 1276 | 1276 |
| 1277 class WasmCompiledFrame : public StandardFrame { | 1277 class WasmCompiledFrame final : public StandardFrame { |
| 1278 public: | 1278 public: |
| 1279 Type type() const override { return WASM_COMPILED; } | 1279 Type type() const override { return WASM_COMPILED; } |
| 1280 | 1280 |
| 1281 // GC support. | 1281 // GC support. |
| 1282 void Iterate(ObjectVisitor* v) const override; | 1282 void Iterate(ObjectVisitor* v) const override; |
| 1283 | 1283 |
| 1284 // Printing support. | 1284 // Printing support. |
| 1285 void Print(StringStream* accumulator, PrintMode mode, | 1285 void Print(StringStream* accumulator, PrintMode mode, |
| 1286 int index) const override; | 1286 int index) const override; |
| 1287 | 1287 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 1309 | 1309 |
| 1310 protected: | 1310 protected: |
| 1311 inline explicit WasmCompiledFrame(StackFrameIteratorBase* iterator); | 1311 inline explicit WasmCompiledFrame(StackFrameIteratorBase* iterator); |
| 1312 | 1312 |
| 1313 Address GetCallerStackPointer() const override; | 1313 Address GetCallerStackPointer() const override; |
| 1314 | 1314 |
| 1315 private: | 1315 private: |
| 1316 friend class StackFrameIteratorBase; | 1316 friend class StackFrameIteratorBase; |
| 1317 }; | 1317 }; |
| 1318 | 1318 |
| 1319 class WasmInterpreterEntryFrame : public StandardFrame { | 1319 class WasmInterpreterEntryFrame final : public StandardFrame { |
| 1320 public: | 1320 public: |
| 1321 Type type() const override { return WASM_INTERPRETER_ENTRY; } | 1321 Type type() const override { return WASM_INTERPRETER_ENTRY; } |
| 1322 | 1322 |
| 1323 // GC support. | 1323 // GC support. |
| 1324 void Iterate(ObjectVisitor* v) const override; | 1324 void Iterate(ObjectVisitor* v) const override; |
| 1325 | 1325 |
| 1326 // Printing support. | 1326 // Printing support. |
| 1327 void Print(StringStream* accumulator, PrintMode mode, | 1327 void Print(StringStream* accumulator, PrintMode mode, |
| 1328 int index) const override; | 1328 int index) const override; |
| 1329 | 1329 |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1590 | 1590 |
| 1591 | 1591 |
| 1592 // Reads all frames on the current stack and copies them into the current | 1592 // Reads all frames on the current stack and copies them into the current |
| 1593 // zone memory. | 1593 // zone memory. |
| 1594 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); | 1594 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); |
| 1595 | 1595 |
| 1596 } // namespace internal | 1596 } // namespace internal |
| 1597 } // namespace v8 | 1597 } // namespace v8 |
| 1598 | 1598 |
| 1599 #endif // V8_FRAMES_H_ | 1599 #endif // V8_FRAMES_H_ |
| OLD | NEW |