summaryrefslogtreecommitdiff
path: root/deps/v8/src/compiler/js-inlining.cc
diff options
context:
space:
mode:
authorMatheus Marchini <mmarchini@netflix.com>2020-03-05 10:49:19 -0800
committerMatheus Marchini <mmarchini@netflix.com>2020-03-18 16:23:22 -0700
commit2883c855e0105b51e5c8020d21458af109ffe3d4 (patch)
tree26777aad0a398e9f7755c8b65ac76827fe352a81 /deps/v8/src/compiler/js-inlining.cc
parent5f0af2af2a67216e00fe07ccda11e889d14abfcd (diff)
downloadnode-new-2883c855e0105b51e5c8020d21458af109ffe3d4.tar.gz
deps: update V8 to 8.1.307.20
PR-URL: https://github.com/nodejs/node/pull/32116 Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'deps/v8/src/compiler/js-inlining.cc')
-rw-r--r--deps/v8/src/compiler/js-inlining.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/deps/v8/src/compiler/js-inlining.cc b/deps/v8/src/compiler/js-inlining.cc
index 6c071438cc..60c7626067 100644
--- a/deps/v8/src/compiler/js-inlining.cc
+++ b/deps/v8/src/compiler/js-inlining.cc
@@ -268,7 +268,6 @@ Node* JSInliner::CreateArtificialFrameState(Node* node, Node* outer_frame_state,
namespace {
-// TODO(mstarzinger,verwaest): Move this predicate onto SharedFunctionInfo?
bool NeedsImplicitReceiver(SharedFunctionInfoRef shared_info) {
DisallowHeapAllocation no_gc;
return !shared_info.construct_as_builtin() &&
@@ -414,13 +413,14 @@ Reduction JSInliner::ReduceJSCall(Node* node) {
NodeProperties::IsExceptionalCall(node, &exception_target);
// JSInliningHeuristic has already filtered candidates without a BytecodeArray
- // by calling SharedFunctionInfoRef::IsInlineable. For the ones passing the
- // IsInlineable check, the broker holds a reference to the bytecode array,
- // which prevents it from getting flushed. Therefore, the following check
- // should always hold true.
+ // based on SharedFunctionInfoRef::GetInlineability. For the inlineable ones
+ // (kIsInlineable), the broker holds a reference to the bytecode array, which
+ // prevents it from getting flushed. Therefore, the following check should
+ // always hold true.
CHECK(shared_info->is_compiled());
- if (!FLAG_concurrent_inlining && info_->is_source_positions_enabled()) {
+ if (!broker()->is_concurrent_inlining() &&
+ info_->is_source_positions_enabled()) {
SharedFunctionInfo::EnsureSourcePositionsAvailable(isolate(),
shared_info->object());
}
@@ -431,7 +431,7 @@ Reduction JSInliner::ReduceJSCall(Node* node) {
// Determine the target's feedback vector and its context.
Node* context;
FeedbackVectorRef feedback_vector = DetermineCallContext(node, &context);
- CHECK(shared_info->IsSerializedForCompilation(feedback_vector));
+ CHECK(broker()->IsSerializedForCompilation(*shared_info, feedback_vector));
// ----------------------------------------------------------------
// After this point, we've made a decision to inline this function.