Planning static specialization
This commit is contained in:
@@ -220,10 +220,9 @@ begin
|
||||
// Create the new execution scope for this function call.
|
||||
lambdaScope := TScope.CreateScope(closureScope, scopeDescriptor, capturedCells);
|
||||
|
||||
// Capture the closure itself in slot 0 for 'recur' to find it.
|
||||
adr.Kind := akLocalOrParent;
|
||||
adr.ScopeDepth := 0;
|
||||
|
||||
// Capture the closure itself in slot 0 for 'recur' to find it.
|
||||
adr.SlotIndex := 0;
|
||||
lambdaScope[adr] := TDataValue(closure); // Explicit cast
|
||||
|
||||
|
||||
Reference in New Issue
Block a user