Remove unused environment argument from STMethodContext initializer.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@38118 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Wolfgang Lux 2014-10-14 20:03:39 +00:00
parent 51b17b1ba5
commit e352e229d5
4 changed files with 19 additions and 25 deletions

View file

@ -1,14 +1,21 @@
2014-10-14 Wolfgang Lux <wolfgang.lux@gmail.com>
* STSmalltalkScriptObject.m (-forwardInvocation:): Set the return
value of the invocation object also when the exit pseudo method of
the script object is called.
* STMethodContext.h (+methodContextWithMethod:, initWithMethod:):
* STMethodContext.m (+methodContextWithMethod:, initWithMethod:):
* STBytecodeInterpreter.m (-interpretMethod:forReceiver:arguments:):
Remove unused environment argument from STMethodContext initializer.
2014-10-14 Wolfgang Lux <wolfgang.lux@gmail.com>
* STBlock.m (-value:value:):
* STBlock.m (-value:value:value:):
Add missing nil terminator to argument list of arrayWithObjects.
* STSmalltalkScriptObject.m (-forwardInvocation:): Set the return
value of the invocation object also when the exit pseudo method of the
script object is called.
2014-10-14 Wolfgang Lux <wolfgang.lux@gmail.com>
* STBlock.m (-value:value:):
* STBlock.m (-value:value:value:):
Add missing nil terminator to argument list of arrayWithObjects.
2014-09-09 Wolfgang Lux <wolfgang.lux@gmail.com>

View file

@ -141,8 +141,7 @@ static Class NSInvocation_class = nil;
[method selector]];
}
newContext = [[STMethodContext alloc] initWithMethod:method
environment:environment];
newContext = [[STMethodContext alloc] initWithMethod:method];
[newContext setArgumentsFromArray:args];
[newContext setReceiver:anObject];

View file

@ -24,7 +24,6 @@
#import "STExecutionContext.h"
@class STCompiledMethod;
@class STEnvironment;
@class NSMutableArray;
@interface STMethodContext:STExecutionContext
@ -34,11 +33,9 @@
id receiver;
}
+ methodContextWithMethod:(STCompiledMethod *)newMethod
environment:(STEnvironment *)env;
+ methodContextWithMethod:(STCompiledMethod *)newMethod;
- initWithMethod:(STCompiledMethod *)newMethod
environment:(STEnvironment *)env;
- initWithMethod:(STCompiledMethod *)newMethod;
- (STCompiledMethod*)method;

View file

@ -28,28 +28,19 @@
#import "STLiterals.h"
#import "STStack.h"
#import <StepTalk/STEnvironment.h>
#import <StepTalk/STExterns.h>
#import <StepTalk/STObjectReference.h>
#import <Foundation/NSArray.h>
#import <Foundation/NSDebug.h>
#import <Foundation/NSException.h>
@interface STMethodContext(STPrivateMethods)
- (void)_resolveExternReferences:(NSArray *)array
environment:(STEnvironment *)env;
@end
@implementation STMethodContext
+ methodContextWithMethod:(STCompiledMethod *)newMethod
environment:(STEnvironment *)env
+ methodContextWithMethod:(STCompiledMethod *)newMethod
{
return AUTORELEASE([[self alloc] initWithMethod:newMethod environment:env]);
return AUTORELEASE([[self alloc] initWithMethod:newMethod]);
}
- initWithMethod:(STCompiledMethod *)newMethod
environment:(STEnvironment *)env
- initWithMethod:(STCompiledMethod *)newMethod
{
if ((self = [super initWithStackSize:[newMethod stackSize]]) != nil)
{