Index: src/hydrogen-instructions.h |
diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h |
index eea429e6f2b11ea2d506d448e7bf39871886d472..53f1b65755beaa3cbaa3ada0086830d60529bc27 100644 |
--- a/src/hydrogen-instructions.h |
+++ b/src/hydrogen-instructions.h |
@@ -4010,11 +4010,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); |
@@ -4026,6 +4035,7 @@ class HParameter: public HTemplateInstruction<0> { |
private: |
unsigned index_; |
+ ParameterKind kind_; |
}; |