From 4b9c2f36feb7b6ae8fd5a294e03c244d8397e839 Mon Sep 17 00:00:00 2001 From: Joseph Savona Date: Thu, 1 Dec 2022 11:02:27 -0800 Subject: [PATCH] add missing reactive scope passes to playground I forget to add these passes to the playground, oops. --- .../playground/components/Editor/Output.tsx | 22 +++++++++++ .../playground/components/TabbedWindow.tsx | 2 + compiler/forget/src/index.ts | 4 ++ compiler/forget/yarn.lock | 38 +++++++++---------- 4 files changed, 47 insertions(+), 19 deletions(-) diff --git a/compiler/forget/packages/playground/components/Editor/Output.tsx b/compiler/forget/packages/playground/components/Editor/Output.tsx index c8bc2e94b1..42d7b622b6 100644 --- a/compiler/forget/packages/playground/components/Editor/Output.tsx +++ b/compiler/forget/packages/playground/components/Editor/Output.tsx @@ -27,6 +27,8 @@ const { inferReferenceEffects, inferMutableRanges, inferReactiveScopeDependencies, + inferReactiveScopeVariables, + inferReactiveScopes, leaveSSA, lower, printHIR, @@ -49,6 +51,8 @@ type CompilerOutput = { eliminateRedundantPhiOutput: string; inferReferenceEffectsOutput: string; inferMutableRangesOutput: string; + inferReactiveScopeVariablesOutput: string; + inferReactiveScopesOutput: string; inferReactiveScopeDependenciesOutput: string; leaveSSAOutput: string; codegenOutput: string; @@ -83,6 +87,12 @@ function compile(source: string): CompilerOutput | CompilerError { inferMutableRanges(ir); const inferMutableRangesOutput = printHIR(ir.body); + inferReactiveScopeVariables(ir); + const inferReactiveScopeVariablesOutput = printHIR(ir.body); + + inferReactiveScopes(ir); + const inferReactiveScopesOutput = printHIR(ir.body); + inferReactiveScopeDependencies(ir); const inferReactiveScopeDependenciesOutput = printHIR(ir.body); @@ -116,6 +126,8 @@ function compile(source: string): CompilerOutput | CompilerError { inferReferenceEffectsOutput, inferMutableRangesOutput, inferReactiveScopeDependenciesOutput, + inferReactiveScopeVariablesOutput, + inferReactiveScopesOutput, leaveSSAOutput, codegenOutput, sourceMapUrl, @@ -171,6 +183,16 @@ function Output({ store, setTabsOpen, tabsOpen }: Props) { output={compilerOutput.inferMutableRangesOutput} > ), + InferReactiveScopeVariables: ( + + ), + InferReactiveScopes: ( + + ), InferReactiveScopeDependencies: (