[ClavaLaraApi] Adds ClavaBenchmarkInstance._loadPrologue()
@@ -167,6 +167,12 @@ ClavaBenchmarkInstance.prototype.load = function() {
return;
}
+ // Execute things that are common to cache and AST parsing
+ this._loadPrologue();
+
+ result = this._loadCached(cachedFile);
+
+
var result = undefined;
// Check if a chached version of the tree has already been cached
@@ -198,3 +204,6 @@ ClavaBenchmarkInstance.prototype.load = function() {
return result;
}
+ClavaBenchmarkInstance.prototype._loadPrologue = function() {
+ // by default, does nothing
+}
