HPhis with HParameter inputs must have Tagged representation

BUG=v8:3670
LOG=n
R=verwaest@chromium.org

Review URL: https://codereview.chromium.org/702053002

Cr-Commit-Position: refs/heads/master@{#25153}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25153 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 90bfcce8
...@@ -5356,6 +5356,12 @@ class HParameter FINAL : public HTemplateInstruction<0> { ...@@ -5356,6 +5356,12 @@ class HParameter FINAL : public HTemplateInstruction<0> {
return Representation::None(); return Representation::None();
} }
virtual Representation KnownOptimalRepresentation() OVERRIDE {
// If a parameter is an input to a phi, that phi should not
// choose any more optimistic representation than Tagged.
return Representation::Tagged();
}
DECLARE_CONCRETE_INSTRUCTION(Parameter) DECLARE_CONCRETE_INSTRUCTION(Parameter)
private: private:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment