Index: src/hydrogen.h |
diff --git a/src/hydrogen.h b/src/hydrogen.h |
index 7442b5f6c0abe1c2787a23fdc51503d11b906fe7..fa4ed26b63a52b92ce742180066f2295f2d5b9ad 100644 |
--- a/src/hydrogen.h |
+++ b/src/hydrogen.h |
@@ -320,6 +320,8 @@ class HGraph: public ZoneObject { |
HConstant* GetConstantNull(); |
HConstant* GetInvalidContext(); |
+ bool IsStandardConstant(HConstant* constant); |
+ |
HBasicBlock* CreateBasicBlock(); |
HArgumentsObject* GetArgumentsObject() const { |
return arguments_object_.get(); |
@@ -1479,7 +1481,12 @@ class HOptimizedGraphBuilder: public HGraphBuilder, public AstVisitor { |
bool inline_bailout() { return inline_bailout_; } |
- void AddSoftDeoptimize(); |
+ enum SoftDeoptimizeMode { |
+ MUST_EMIT_SOFT_DEOPT, |
+ CAN_OMIT_SOFT_DEOPT |
+ }; |
+ |
+ void AddSoftDeoptimize(SoftDeoptimizeMode mode = CAN_OMIT_SOFT_DEOPT); |
void Bailout(const char* reason); |