fix off by one sp for PUSH_LITERAL/MAKE_DIRTY_BLOCK combined bytecode

libgst:
2013-10-07  Paolo Bonzini  <bonzini@gnu.org>

	* libgst/genvm-parse.def: Emit definitions for UNDO_PREPARE_STACK.
	* libgst/vm.def: Wrap calls to _gst_make_block_closure with
	PREPARE_STACK and UNDO_PREPARE_STACK.  Otherwise, the sp
	that empty_context_stack saves in the context is off by one.
fix off-by-one using ContextPart's sp instance variable

2013-10-07  Paolo Bonzini  <bonzini@redhat.com>

	* kernel/BlkClosure.st: Fix off-by-one using the sp variable
	of contexts.
	* kernel/ContextPart.st: Likewise.
tweak index_oop_spec and index_oop_put_spec index computations

libgst:
2013-10-07  Paolo Bonzini  <bonzini@gnu.org>

	* libgst/dict.inl: In index_oop_spec and index_oop_put_spec,
	move index decrement after the scaling by sizeof(type) and the
	overflow test.	This prepares for fixing the overflow test.
fix overflow check for #basicAt: and #basicAt:put:

libgst:
2013-10-07  Paolo Bonzini  <bonzini@gnu.org>

	* libgst/dict.inl: Fix overflow check in index_oop_spec and
	index_oop_put_spec.  This use the trick of converting
	(a < x || a > y) to (a - x > y - x).  Adjusting "index" after
	the check helps because we can compare with "> maxByte" instead
	of ">= maxByte + sizeof(type) - 1".  On the other hand, we
	have to do a somewhat ugly adjust to base.
add test for previous commits

packages/kernel-tests:
2013-10-12  Gwenael Casaccio <gwenael.casaccio@gmail.com>
            Paolo Bonzini <bonzini@gnu.org>

	* kernel/ObjectTests.st: Add tests for Object
libgst: Address ASAN issue during the exceptions.st test

The newContextOOP is already nil and the OOP_TO_OBJ does not
point to a gst_method_context. According to Paolo the right
thing is to return false with a nil chain.

2013-10-13  Holger Hans Peter Freyther  <holger@moiji-mobile.com>

	* interp.c: Address address sanitizer warning when the
	parentContext is already nil.