OLD | NEW |
---|---|
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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_INSPECTOR_V8STACKTRACEIMPL_H_ | 5 #ifndef V8_INSPECTOR_V8STACKTRACEIMPL_H_ |
6 #define V8_INSPECTOR_V8STACKTRACEIMPL_H_ | 6 #define V8_INSPECTOR_V8STACKTRACEIMPL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "src/base/macros.h" | 10 #include "src/base/macros.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
74 bool isEmpty() const override { return !m_frames.size(); }; | 74 bool isEmpty() const override { return !m_frames.size(); }; |
75 StringView topSourceURL() const override; | 75 StringView topSourceURL() const override; |
76 int topLineNumber() const override; | 76 int topLineNumber() const override; |
77 int topColumnNumber() const override; | 77 int topColumnNumber() const override; |
78 StringView topScriptId() const override; | 78 StringView topScriptId() const override; |
79 StringView topFunctionName() const override; | 79 StringView topFunctionName() const override; |
80 std::unique_ptr<protocol::Runtime::API::StackTrace> buildInspectorObject() | 80 std::unique_ptr<protocol::Runtime::API::StackTrace> buildInspectorObject() |
81 const override; | 81 const override; |
82 std::unique_ptr<StringBuffer> toString() const override; | 82 std::unique_ptr<StringBuffer> toString() const override; |
83 | 83 |
84 void setCreation(std::unique_ptr<V8StackTraceImpl> creation) { | |
dgozman
2017/01/24 23:57:44
setPromiseCreationStack
| |
85 m_creation = std::move(creation); | |
86 } | |
87 | |
84 private: | 88 private: |
85 V8StackTraceImpl(int contextGroupId, const String16& description, | 89 V8StackTraceImpl(int contextGroupId, const String16& description, |
86 std::vector<Frame>& frames, | 90 std::vector<Frame>& frames, |
87 std::unique_ptr<V8StackTraceImpl> parent); | 91 std::unique_ptr<V8StackTraceImpl> parent, |
92 std::unique_ptr<V8StackTraceImpl> creation); | |
88 | 93 |
89 int m_contextGroupId; | 94 int m_contextGroupId; |
90 String16 m_description; | 95 String16 m_description; |
91 std::vector<Frame> m_frames; | 96 std::vector<Frame> m_frames; |
92 std::unique_ptr<V8StackTraceImpl> m_parent; | 97 std::unique_ptr<V8StackTraceImpl> m_parent; |
98 std::unique_ptr<V8StackTraceImpl> m_creation; | |
93 | 99 |
94 DISALLOW_COPY_AND_ASSIGN(V8StackTraceImpl); | 100 DISALLOW_COPY_AND_ASSIGN(V8StackTraceImpl); |
95 }; | 101 }; |
96 | 102 |
97 } // namespace v8_inspector | 103 } // namespace v8_inspector |
98 | 104 |
99 #endif // V8_INSPECTOR_V8STACKTRACEIMPL_H_ | 105 #endif // V8_INSPECTOR_V8STACKTRACEIMPL_H_ |
OLD | NEW |