diff options
Diffstat (limited to 'deps/v8/src/compiler/constant-folding-reducer.cc')
-rw-r--r-- | deps/v8/src/compiler/constant-folding-reducer.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/deps/v8/src/compiler/constant-folding-reducer.cc b/deps/v8/src/compiler/constant-folding-reducer.cc index 4508d90b71..c9f838f814 100644 --- a/deps/v8/src/compiler/constant-folding-reducer.cc +++ b/deps/v8/src/compiler/constant-folding-reducer.cc @@ -12,10 +12,8 @@ namespace internal { namespace compiler { ConstantFoldingReducer::ConstantFoldingReducer(Editor* editor, JSGraph* jsgraph, - JSHeapBroker* js_heap_broker) - : AdvancedReducer(editor), - jsgraph_(jsgraph), - js_heap_broker_(js_heap_broker) {} + JSHeapBroker* broker) + : AdvancedReducer(editor), jsgraph_(jsgraph), broker_(broker) {} ConstantFoldingReducer::~ConstantFoldingReducer() = default; @@ -40,7 +38,7 @@ Reduction ConstantFoldingReducer::Reduce(Node* node) { replacement = jsgraph()->Constant(upper.AsHeapConstant()->Ref()); } else if (upper.Is(Type::MinusZero())) { Factory* factory = jsgraph()->isolate()->factory(); - ObjectRef minus_zero(js_heap_broker(), factory->minus_zero_value()); + ObjectRef minus_zero(broker(), factory->minus_zero_value()); replacement = jsgraph()->Constant(minus_zero); } else if (upper.Is(Type::NaN())) { replacement = jsgraph()->NaNConstant(); |