| Index: src/compiler/js-call-reducer.h
|
| diff --git a/src/compiler/js-call-reducer.h b/src/compiler/js-call-reducer.h
|
| index b9a595751ccec5c5efde9482684524a9c445c6a0..238ca77ab9b4a1b46d9db428580a1b2768ffdc52 100644
|
| --- a/src/compiler/js-call-reducer.h
|
| +++ b/src/compiler/js-call-reducer.h
|
| @@ -28,11 +28,16 @@ class SimplifiedOperatorBuilder;
|
| // which might allow inlining or other optimizations to be performed afterwards.
|
| class JSCallReducer final : public AdvancedReducer {
|
| public:
|
| - JSCallReducer(Editor* editor, JSGraph* jsgraph,
|
| + // Flags that control the mode of operation.
|
| + enum Flag { kNoFlags = 0u, kBailoutOnUninitialized = 1u << 0 };
|
| + typedef base::Flags<Flag> Flags;
|
| +
|
| + JSCallReducer(Editor* editor, JSGraph* jsgraph, Flags flags,
|
| Handle<Context> native_context,
|
| CompilationDependencies* dependencies)
|
| : AdvancedReducer(editor),
|
| jsgraph_(jsgraph),
|
| + flags_(flags),
|
| native_context_(native_context),
|
| dependencies_(dependencies) {}
|
|
|
| @@ -74,9 +79,11 @@ class JSCallReducer final : public AdvancedReducer {
|
| CommonOperatorBuilder* common() const;
|
| JSOperatorBuilder* javascript() const;
|
| SimplifiedOperatorBuilder* simplified() const;
|
| + Flags flags() const { return flags_; }
|
| CompilationDependencies* dependencies() const { return dependencies_; }
|
|
|
| JSGraph* const jsgraph_;
|
| + Flags const flags_;
|
| Handle<Context> const native_context_;
|
| CompilationDependencies* const dependencies_;
|
| };
|
|
|