| Index: src/hydrogen.h
|
| diff --git a/src/hydrogen.h b/src/hydrogen.h
|
| index b3a57c06491553ae50ed8aa516d72259ece0f95c..e951b19b03252770623453745bc90d965b52e8cb 100644
|
| --- a/src/hydrogen.h
|
| +++ b/src/hydrogen.h
|
| @@ -333,6 +333,8 @@ class HGraph: public ZoneObject {
|
| HConstant* GetConstantNull();
|
| HConstant* GetInvalidContext();
|
|
|
| + bool IsStandardConstant(HConstant* constant);
|
| +
|
| HBasicBlock* CreateBasicBlock();
|
| HArgumentsObject* GetArgumentsObject() const {
|
| return arguments_object_.get();
|
| @@ -1131,7 +1133,12 @@ class HGraphBuilder {
|
|
|
| HValue* AddLoadJSBuiltin(Builtins::JavaScript builtin, HContext* context);
|
|
|
| - void AddSoftDeoptimize();
|
| + enum SoftDeoptimizeMode {
|
| + MUST_EMIT_SOFT_DEOPT,
|
| + CAN_OMIT_SOFT_DEOPT
|
| + };
|
| +
|
| + void AddSoftDeoptimize(SoftDeoptimizeMode mode = CAN_OMIT_SOFT_DEOPT);
|
|
|
| class IfBuilder {
|
| public:
|
|
|