[masm] Save guard const reference method calls
authorSimon Hausmann <simon.hausmann@digia.com>
Fri, 15 Feb 2013 07:27:21 +0000 (08:27 +0100)
committerLars Knoll <lars.knoll@digia.com>
Fri, 15 Feb 2013 10:08:55 +0000 (11:08 +0100)
commita8ef93dc6ba5630f5f464efd2f06388a4ce46ec1
tree39d9b4b2732df3169e2dca8116b6c14dbaa24721
parent483b9fc544a7d6e728d958d0ef29fe486012f5bd
[masm] Save guard const reference method calls

Introduce a Reference type next to PointerToValue for which we can ensure that
it's non-null using an assert. Otherwise implemented push(PointerToValue)
to push a null pointer if the temp is null, instead of asserting.

Change-Id: I70f15e39dd80a6b2c65630060cba35f3417c0634
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/v4/qv4isel_masm.cpp
src/v4/qv4isel_masm_p.h