Fix properties of literal array initialisers
authorSimon Hausmann <simon.hausmann@digia.com>
Thu, 24 Jan 2013 11:53:47 +0000 (12:53 +0100)
committerLars Knoll <lars.knoll@digia.com>
Thu, 24 Jan 2013 13:08:45 +0000 (14:08 +0100)
commit4e4fb0ced23391c4ffb1b59845d94e6c658d3deb
tree99ef59a9bc377b141d27de62255dfe0b7d6532cd
parent865a5bf47fb077b654930a84852f189676a7cff3
Fix properties of literal array initialisers

Array entries defined in such a way need to be own properties.
To avoid calling builtin_define_property with the integer index
converted to a string for each property, this patch also introduces
a builtin_define_array_property that takes an integer index instead.

Change-Id: Ib21f99a555b3237753a7930a7edc70bfcd49ac18
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
14 files changed:
moth/qv4instr_moth_p.h
moth/qv4isel_moth.cpp
moth/qv4isel_moth_p.h
moth/qv4vme_moth.cpp
qmljs_runtime.cpp
qmljs_runtime.h
qv4codegen.cpp
qv4ir.cpp
qv4ir_p.h
qv4isel_masm.cpp
qv4isel_masm_p.h
qv4isel_p.cpp
qv4isel_p.h
tests/TestExpectations