diff options
Diffstat (limited to 'deps/v8/src/compiler/bytecode-graph-builder.cc')
-rw-r--r-- | deps/v8/src/compiler/bytecode-graph-builder.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/deps/v8/src/compiler/bytecode-graph-builder.cc b/deps/v8/src/compiler/bytecode-graph-builder.cc index 8789f683f8..086003276f 100644 --- a/deps/v8/src/compiler/bytecode-graph-builder.cc +++ b/deps/v8/src/compiler/bytecode-graph-builder.cc @@ -886,7 +886,7 @@ void BytecodeGraphBuilder::VisitBytecodes() { interpreter::BytecodeArrayIterator iterator(bytecode_array()); set_bytecode_iterator(&iterator); SourcePositionTableIterator source_position_iterator( - handle(bytecode_array()->SourcePositionTable(), isolate())); + handle(bytecode_array()->SourcePositionTableIfCollected(), isolate())); if (analyze_environment_liveness() && FLAG_trace_environment_liveness) { StdoutStream of; @@ -1510,18 +1510,18 @@ void BytecodeGraphBuilder::VisitCreateClosure() { SharedFunctionInfo::cast( bytecode_iterator().GetConstantForIndexOperand(0)), isolate()); - FeedbackSlot slot = bytecode_iterator().GetSlotOperand(1); - FeedbackNexus nexus(feedback_vector(), slot); - PretenureFlag tenured = + AllocationType allocation = interpreter::CreateClosureFlags::PretenuredBit::decode( bytecode_iterator().GetFlagOperand(2)) - ? TENURED - : NOT_TENURED; + ? AllocationType::kOld + : AllocationType::kYoung; const Operator* op = javascript()->CreateClosure( - shared_info, nexus.GetFeedbackCell(), + shared_info, + feedback_vector()->GetClosureFeedbackCell( + bytecode_iterator().GetIndexOperand(1)), handle(jsgraph()->isolate()->builtins()->builtin(Builtins::kCompileLazy), isolate()), - tenured); + allocation); Node* closure = NewNode(op); environment()->BindAccumulator(closure); } |