From 88a7740aa518eba731400dacb79a1f46cda279aa Mon Sep 17 00:00:00 2001 From: "Brian T. Rice" Date: Wed, 16 Feb 2011 20:30:02 -0800 Subject: [PATCH] Disabled the Nil-environment CompiledMethod optimization until a better cost-payoff is acheived, since #bodyIncludesImplicitSends incurs a 20% overhead to loading in this call-site, and not enough methods/blocks are affected. --- src/mobius/compiler.slate | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/mobius/compiler.slate b/src/mobius/compiler.slate index 477bbe6..9044844 100644 --- a/src/mobius/compiler.slate +++ b/src/mobius/compiler.slate @@ -317,10 +317,9 @@ and push it onto the stack." [ topLevel `defaultsTo: False. newBlock ::= CompiledMethod new `>> - [environment := block bodyIncludesImplicitSends ifTrue: - [gen contexts isEmpty - ifTrue: [block topLevel namespace] - ifFalse: [gen currentMethod environment]]. + [environment := gen contexts isEmpty + ifTrue: [block topLevel namespace] + ifFalse: [gen currentMethod environment]. sourceTree := block. ]. gen contexts push: (gen Context newOn: newBlock). "we macroexpand everything before we set the current register because macroexpansion can add localvariables etc" -- 2.11.4.GIT