зеркало из https://github.com/mozilla/pjs.git
Leakage.
This commit is contained in:
Родитель
6b894ed47b
Коммит
bc99e4c291
|
@ -92,7 +92,7 @@ public:
|
|||
#endif
|
||||
{ }
|
||||
|
||||
BytecodeContainer::~BytecodeContainer() { String t; mSource = t; mSourceLocation = t; }
|
||||
BytecodeContainer::~BytecodeContainer() { }
|
||||
|
||||
|
||||
void mark();
|
||||
|
|
|
@ -141,11 +141,13 @@ static int readEvalPrint(FILE *in)
|
|||
stdOut << '\n';
|
||||
}
|
||||
if (parsedStatements) {
|
||||
MetaData::CompilationData *oldData = metadata->startCompilationUnit(NULL, buffer, ConsoleName);
|
||||
MetaData::CompilationData *oldData = metadata->startCompilationUnit(NULL, buffer, ConsoleName);
|
||||
MetaData::BytecodeContainer *bCon = metadata->bCon;
|
||||
metadata->ValidateStmtList(parsedStatements);
|
||||
js2val rval = metadata->ExecuteStmtList(RunPhase, parsedStatements);
|
||||
if (!JS2VAL_IS_VOID(rval))
|
||||
stdOut << *metadata->toString(rval) << '\n';
|
||||
delete bCon;
|
||||
metadata->restoreCompilationUnit(oldData);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4342,11 +4342,12 @@ XXX see EvalAttributeExpression, where identifiers are being handled for now...
|
|||
DEFINE_ROOTKEEPER(rk2, argsObj);
|
||||
|
||||
// Add the 'arguments' property
|
||||
String *name = &meta->world.identifiers["arguments"];
|
||||
ASSERT(localBindings[*name] == NULL);
|
||||
LocalBindingEntry *lbe = new LocalBindingEntry(*name);
|
||||
String name(widenCString("arguments"));
|
||||
ASSERT(localBindings[name] == NULL);
|
||||
LocalBindingEntry *lbe = new LocalBindingEntry(name);
|
||||
LocalBinding *sb = new LocalBinding(ReadAccess, new Variable(meta->arrayClass, OBJECT_TO_JS2VAL(argsObj), true), false);
|
||||
lbe->bindingList.push_back(LocalBindingEntry::NamespaceBinding(meta->publicNamespace, sb));
|
||||
localBindings.insert(name, lbe);
|
||||
|
||||
uint32 i;
|
||||
for (i = 0; (i < argCount); i++) {
|
||||
|
@ -4377,6 +4378,9 @@ XXX see EvalAttributeExpression, where identifiers are being handled for now...
|
|||
GCMARKVALUE(thisObject);
|
||||
}
|
||||
|
||||
ParameterFrame::~ParameterFrame()
|
||||
{
|
||||
}
|
||||
|
||||
/************************************************************************************
|
||||
*
|
||||
|
|
|
@ -560,7 +560,7 @@ public:
|
|||
|
||||
template<class Binding> class BindingEntry {
|
||||
public:
|
||||
BindingEntry(const String s) : name(s) { }
|
||||
BindingEntry(const String &s) : name(s) { }
|
||||
|
||||
BindingEntry *clone();
|
||||
void clear();
|
||||
|
@ -1102,7 +1102,7 @@ public:
|
|||
virtual void instantiate(Environment *env);
|
||||
void assignArguments(JS2Metadata *meta, JS2Object *fnObj, js2val *argBase, uint32 argCount, uint32 length);
|
||||
virtual void markChildren();
|
||||
virtual ~ParameterFrame() { }
|
||||
virtual ~ParameterFrame();
|
||||
};
|
||||
|
||||
class BlockFrame : public NonWithFrame {
|
||||
|
|
Загрузка…
Ссылка в новой задаче