| Index: src/hydrogen-instructions.h
|
| diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h
|
| index d4beb6e1de2180b9fb903116a2d66b4dc7f21428..045ef932e1ebf94b1c0020a1feeddbf0c6805285 100644
|
| --- a/src/hydrogen-instructions.h
|
| +++ b/src/hydrogen-instructions.h
|
| @@ -1585,6 +1585,8 @@ class HReturn V8_FINAL : public HTemplateControlInstruction<0, 3> {
|
| DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P1(HReturn, HValue*);
|
|
|
| virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE {
|
| + // TODO(titzer): require an Int32 input for faster returns.
|
| + if (index == 2) return Representation::Smi();
|
| return Representation::Tagged();
|
| }
|
|
|
|
|