Fix HType handling for HConstant with external references.
We cannot use set_type() with HType::None() in the HConstant constructor, since set_type() asserts that the new type is a subtype of the previous one, but HType::None() is not a subtype of HType::Tagged() which is the initial type set by the HValue constructor. This patch adds an optional type parameter to the HValue, HInstruction and HTemplateInstruction constructors. R=titzer@chromium.org Review URL: https://codereview.chromium.org/21317004 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15980 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
Showing
Please
register
or
sign in
to comment