This commit is contained in:
rogerl%netscape.com 2003-04-11 22:20:10 +00:00
Родитель 6b894ed47b
Коммит bc99e4c291
4 изменённых файлов: 13 добавлений и 7 удалений

Просмотреть файл

@ -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 {