Index: src/hydrogen-instructions.h |
diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h |
index 71bdb33ccd12d66fd1988b9badf38192c5ce6de1..5f860cb20c2bb639fc60b85cf82b5273b781abec 100644 |
--- a/src/hydrogen-instructions.h |
+++ b/src/hydrogen-instructions.h |
@@ -2188,21 +2188,30 @@ class HCallNamed V8_FINAL : public HUnaryCall { |
class HCallFunction V8_FINAL : public HBinaryCall { |
public: |
- HCallFunction(HValue* context, HValue* function, int argument_count) |
- : HBinaryCall(context, function, argument_count) { |
+ HCallFunction(HValue* context, |
+ HValue* function, |
+ int argument_count, |
+ bool tailcall) |
danno
2013/10/02 08:49:11
Can you please turn this boolean into an enum so t
Toon Verwaest
2013/10/02 16:28:16
Done.
|
+ : HBinaryCall(context, function, argument_count), tailcall_(tailcall) { |
} |
static HCallFunction* New(Zone* zone, |
HValue* context, |
HValue* function, |
- int argument_count) { |
- return new(zone) HCallFunction(context, function, argument_count); |
+ int argument_count, |
+ bool tailcall = false) { |
+ return new(zone) HCallFunction(context, function, argument_count, tailcall); |
} |
+ bool tailcall() { return tailcall_; } |
+ |
HValue* context() { return first(); } |
HValue* function() { return second(); } |
DECLARE_CONCRETE_INSTRUCTION(CallFunction) |
+ |
+ private: |
+ bool tailcall_; |
}; |
@@ -6885,6 +6894,8 @@ class HCheckMapValue V8_FINAL : public HTemplateInstruction<2> { |
DECLARE_CONCRETE_INSTRUCTION(CheckMapValue) |
protected: |
+ virtual int RedefinedOperandIndex() { return 0; } |
+ |
virtual bool DataEquals(HValue* other) V8_OVERRIDE { |
return true; |
} |