Index: src/compiler/js-intrinsic-lowering.h |
diff --git a/src/compiler/js-intrinsic-lowering.h b/src/compiler/js-intrinsic-lowering.h |
index 339000b2ba47ae9808adbf7d1ae4bb63cc9c8a76..75a889246baf1024c5dd43ae05a48720f06d8a2b 100644 |
--- a/src/compiler/js-intrinsic-lowering.h |
+++ b/src/compiler/js-intrinsic-lowering.h |
@@ -22,7 +22,10 @@ class MachineOperatorBuilder; |
// Lowers certain JS-level runtime calls. |
class JSIntrinsicLowering final : public AdvancedReducer { |
public: |
- JSIntrinsicLowering(Editor* editor, JSGraph* jsgraph); |
+ enum DeoptimizationMode { kDeoptimizationEnabled, kDeoptimizationDisabled }; |
+ |
+ JSIntrinsicLowering(Editor* editor, JSGraph* jsgraph, |
+ DeoptimizationMode mode); |
~JSIntrinsicLowering() final {} |
Reduction Reduce(Node* node) final; |
@@ -60,9 +63,11 @@ class JSIntrinsicLowering final : public AdvancedReducer { |
JSGraph* jsgraph() const { return jsgraph_; } |
CommonOperatorBuilder* common() const; |
MachineOperatorBuilder* machine() const; |
+ DeoptimizationMode mode() const { return mode_; } |
SimplifiedOperatorBuilder* simplified() { return &simplified_; } |
- JSGraph* jsgraph_; |
+ JSGraph* const jsgraph_; |
+ DeoptimizationMode const mode_; |
SimplifiedOperatorBuilder simplified_; |
}; |