| Index: src/hydrogen.h
|
| diff --git a/src/hydrogen.h b/src/hydrogen.h
|
| index 2f3414eb305e9b4e6479042d69ccf264823916bb..11a6b7f6c1b814a020829ec1c1e11687591282ac 100644
|
| --- a/src/hydrogen.h
|
| +++ b/src/hydrogen.h
|
| @@ -332,6 +332,8 @@ class HGraph: public ZoneObject {
|
| HConstant* GetConstantNull();
|
| HConstant* GetInvalidContext();
|
|
|
| + bool IsStandardConstant(HConstant* constant);
|
| +
|
| HBasicBlock* CreateBasicBlock();
|
| HArgumentsObject* GetArgumentsObject() const {
|
| return arguments_object_.get();
|
| @@ -1137,7 +1139,12 @@ class HGraphBuilder {
|
|
|
| HLoadNamedField* AddLoadFixedArrayLength(HValue *object);
|
|
|
| - void AddSoftDeoptimize();
|
| + enum SoftDeoptimizeMode {
|
| + MUST_EMIT_SOFT_DEOPT,
|
| + CAN_OMIT_SOFT_DEOPT
|
| + };
|
| +
|
| + void AddSoftDeoptimize(SoftDeoptimizeMode mode = CAN_OMIT_SOFT_DEOPT);
|
|
|
| class IfBuilder {
|
| public:
|
|
|