Index: src/source-position.h |
diff --git a/src/source-position.h b/src/source-position.h |
index 8410bcd3ba6f725e4e64fbc95884623c914d23b2..aa7d31bae2ff93ab0bc249fdf1503ef534cc4ac9 100644 |
--- a/src/source-position.h |
+++ b/src/source-position.h |
@@ -67,17 +67,13 @@ class SourcePosition final { |
int64_t raw() const { return static_cast<int64_t>(value_); } |
static SourcePosition FromRaw(int64_t raw) { |
- SourcePosition position; |
+ SourcePosition position = Unknown(); |
DCHECK_GE(raw, 0); |
position.value_ = static_cast<uint64_t>(raw); |
return position; |
} |
private: |
- // SourcePosition is used in a union in CodeEventsContainer, which requires a |
- // trivial constructor. |
- SourcePosition() = default; |
- |
void Print(std::ostream& out, SharedFunctionInfo* function) const; |
SourcePositionInfo Info(Handle<SharedFunctionInfo> script) const; |
@@ -106,10 +102,11 @@ struct InliningPosition { |
}; |
struct SourcePositionInfo { |
- explicit SourcePositionInfo(SourcePosition pos) : position(pos) {} |
+ explicit SourcePositionInfo(SourcePosition pos, Handle<SharedFunctionInfo> f) |
+ : position(pos), function(f) {} |
SourcePosition position; |
- MaybeHandle<SharedFunctionInfo> function; |
+ Handle<SharedFunctionInfo> function; |
int line = -1; |
int column = -1; |
}; |