Index: src/parsing/parse-info.cc |
diff --git a/src/parsing/parse-info.cc b/src/parsing/parse-info.cc |
index 18e2b967c03bbda59da55251be98478fb6d2657e..927dea86165ab96e2710aadb7a194bed3b7bd458 100644 |
--- a/src/parsing/parse-info.cc |
+++ b/src/parsing/parse-info.cc |
@@ -30,6 +30,9 @@ |
ast_value_factory_(nullptr), |
function_name_(nullptr), |
literal_(nullptr) {} |
+ |
+ParseInfo::ParseInfo(Zone* zone, Handle<JSFunction> function) |
+ : ParseInfo(zone, Handle<SharedFunctionInfo>(function->shared())) {} |
ParseInfo::ParseInfo(Zone* zone, Handle<SharedFunctionInfo> shared) |
: ParseInfo(zone) { |