Index: src/hydrogen-instructions.h |
diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h |
index 3aa15e375a78aee6cbb4b31395cb1a87957ebe54..b43bfbebc4f57a082fdc14afaec68172fecd2def 100644 |
--- a/src/hydrogen-instructions.h |
+++ b/src/hydrogen-instructions.h |
@@ -4008,11 +4008,20 @@ class HOsrEntry: public HTemplateInstruction<0> { |
class HParameter: public HTemplateInstruction<0> { |
public: |
- explicit HParameter(unsigned index) : index_(index) { |
+ enum ParameterKind { |
+ STACK_PARAMETER, |
+ REGISTER_PARAMETER |
+ }; |
+ |
+ explicit HParameter(unsigned index, |
+ ParameterKind kind = STACK_PARAMETER) |
+ : index_(index), |
+ kind_(kind) { |
set_representation(Representation::Tagged()); |
} |
unsigned index() const { return index_; } |
+ ParameterKind kind() const { return kind_; } |
virtual void PrintDataTo(StringStream* stream); |
@@ -4024,6 +4033,7 @@ class HParameter: public HTemplateInstruction<0> { |
private: |
unsigned index_; |
+ ParameterKind kind_; |
}; |