--- parser3/src/main/execute.C 2003/01/28 15:42:40 1.295.2.2 +++ parser3/src/main/execute.C 2003/03/17 14:48:05 1.295.4.1 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_EXECUTE_C="$Date: 2003/01/28 15:42:40 $"; +static const char* IDENT_EXECUTE_C="$Date: 2003/03/17 14:48:05 $"; #include "pa_opcode.h" #include "pa_array.h" @@ -100,6 +100,7 @@ void debug_dump(Pool& pool, int level, c case OP_OBJECT_POOL: case OP_STRING_POOL: case OP_CALL: + case OP_CALL__WRITE: const Array *local_ops=reinterpret_cast(i.next()); debug_dump(pool, level+1, *local_ops); } @@ -125,7 +126,7 @@ void Request::execute(const Array& ops) while(i.has_next()) { if(interrupted()) throw Exception("parser.interrupted", - Exception::undefined_source, + 0, "execution stopped"); Operation op; @@ -386,6 +387,8 @@ void Request::execute(const Array& ops) case OP_CALL: case OP_CALL__WRITE: { +// pool().collect_garbage(); + Array *local_ops=static_cast(i.next()); #ifdef DEBUG_EXECUTE debug_printf(pool(), " (%d)\n", local_ops->size()); @@ -432,7 +435,7 @@ void Request::execute(const Array& ops) if(frame.junction.method->call_type!=Method::CT_STATIC) { // this is a constructor call - if(ValuePtr value=called_class->create_new_value()) { + if(Value *value=called_class->create_new_value(pool())) { // some stateless_class creatable derivates new_self=value; } else