From d116beaecd96ec762905d22483e2341fcf29e71b Mon Sep 17 00:00:00 2001 From: scott-newcomer Date: Mon, 26 Apr 2021 15:34:32 -0500 Subject: [PATCH] pop and push instead of popJs and pushJs --- .../lib/compiled/opcodes/expressions.ts | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/@glimmer/runtime/lib/compiled/opcodes/expressions.ts b/packages/@glimmer/runtime/lib/compiled/opcodes/expressions.ts index 5d433ea51a..36eb71afe6 100644 --- a/packages/@glimmer/runtime/lib/compiled/opcodes/expressions.ts +++ b/packages/@glimmer/runtime/lib/compiled/opcodes/expressions.ts @@ -344,10 +344,10 @@ APPEND_OPCODES.add(Op.NotEqual, (vm) => { }); APPEND_OPCODES.add(Op.Less, (vm) => { - let lOperand = check(vm.stack.popJs(), CheckReference); - let rOperand = check(vm.stack.popJs(), CheckReference); + let lOperand = check(vm.stack.pop(), CheckReference); + let rOperand = check(vm.stack.pop(), CheckReference); - vm.stack.pushJs( + vm.stack.push( createComputeRef(() => { return (valueForRef(lOperand) as any) < (valueForRef(rOperand) as any); }) @@ -355,10 +355,10 @@ APPEND_OPCODES.add(Op.Less, (vm) => { }); APPEND_OPCODES.add(Op.LessEqual, (vm) => { - let lOperand = check(vm.stack.popJs(), CheckReference); - let rOperand = check(vm.stack.popJs(), CheckReference); + let lOperand = check(vm.stack.pop(), CheckReference); + let rOperand = check(vm.stack.pop(), CheckReference); - vm.stack.pushJs( + vm.stack.push( createComputeRef(() => { return (valueForRef(lOperand) as any) <= (valueForRef(rOperand) as any); }) @@ -366,10 +366,10 @@ APPEND_OPCODES.add(Op.LessEqual, (vm) => { }); APPEND_OPCODES.add(Op.Greater, (vm) => { - let lOperand = check(vm.stack.popJs(), CheckReference); - let rOperand = check(vm.stack.popJs(), CheckReference); + let lOperand = check(vm.stack.pop(), CheckReference); + let rOperand = check(vm.stack.pop(), CheckReference); - vm.stack.pushJs( + vm.stack.push( createComputeRef(() => { return (valueForRef(lOperand) as any) > (valueForRef(rOperand) as any); }) @@ -377,10 +377,10 @@ APPEND_OPCODES.add(Op.Greater, (vm) => { }); APPEND_OPCODES.add(Op.GreaterEqual, (vm) => { - let lOperand = check(vm.stack.popJs(), CheckReference); - let rOperand = check(vm.stack.popJs(), CheckReference); + let lOperand = check(vm.stack.pop(), CheckReference); + let rOperand = check(vm.stack.pop(), CheckReference); - vm.stack.pushJs( + vm.stack.push( createComputeRef(() => { return (valueForRef(lOperand) as any) >= (valueForRef(rOperand) as any); })