Index: src/hydrogen-instructions.h |
diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h |
index 00b18bdf73c6c66f48cbc92ec604a1d7feb25f19..fde3abcbe8d3567814a218ff515ab6c43940a9a6 100644 |
--- a/src/hydrogen-instructions.h |
+++ b/src/hydrogen-instructions.h |
@@ -1245,7 +1245,7 @@ class HInstruction : public HValue { |
virtual void Verify() V8_OVERRIDE; |
#endif |
- virtual bool HasStackCheck() { return false; } |
+ virtual bool IsCall() { return false; } |
DECLARE_ABSTRACT_INSTRUCTION(Instruction) |
@@ -2243,6 +2243,8 @@ class HCall : public HTemplateInstruction<V> { |
return -argument_count(); |
} |
+ virtual bool IsCall() V8_FINAL V8_OVERRIDE { return true; } |
+ |
private: |
int argument_count_; |
}; |
@@ -2314,12 +2316,6 @@ class HInvokeFunction V8_FINAL : public HBinaryCall { |
Handle<JSFunction> known_function() { return known_function_; } |
int formal_parameter_count() const { return formal_parameter_count_; } |
- virtual bool HasStackCheck() V8_FINAL V8_OVERRIDE { |
- return !known_function().is_null() && |
- (known_function()->code()->kind() == Code::FUNCTION || |
- known_function()->code()->kind() == Code::OPTIMIZED_FUNCTION); |
- } |
- |
DECLARE_CONCRETE_INSTRUCTION(InvokeFunction) |
private: |
@@ -2352,11 +2348,6 @@ class HCallConstantFunction V8_FINAL : public HCall<0> { |
return Representation::None(); |
} |
- virtual bool HasStackCheck() V8_FINAL V8_OVERRIDE { |
- return (function()->code()->kind() == Code::FUNCTION || |
- function()->code()->kind() == Code::OPTIMIZED_FUNCTION); |
- } |
- |
DECLARE_CONCRETE_INSTRUCTION(CallConstantFunction) |
private: |
@@ -2474,11 +2465,6 @@ class HCallKnownGlobal V8_FINAL : public HCall<0> { |
return Representation::None(); |
} |
- virtual bool HasStackCheck() V8_FINAL V8_OVERRIDE { |
- return (target()->code()->kind() == Code::FUNCTION || |
- target()->code()->kind() == Code::OPTIMIZED_FUNCTION); |
- } |
- |
DECLARE_CONCRETE_INSTRUCTION(CallKnownGlobal) |
private: |