Commit 18d79f90 authored by Victor Gomes's avatar Victor Gomes Committed by Commit Bot

[deoptimizer] Fix define typo and inlined frame base

Change-Id: I81ace5b6abf883c80bea1fada94a66888b16745a
Bug: chromium:1144672, v8:10201
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2512923Reviewed-by: 's avatarTobias Tebbi <tebbi@chromium.org>
Commit-Queue: Victor Gomes <victorgomes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#70971}
parent 543e5633
...@@ -3464,12 +3464,12 @@ TranslatedState::TranslatedState(const JavaScriptFrame* frame) { ...@@ -3464,12 +3464,12 @@ TranslatedState::TranslatedState(const JavaScriptFrame* frame) {
DCHECK(!data.is_null() && deopt_index != Safepoint::kNoDeoptimizationIndex); DCHECK(!data.is_null() && deopt_index != Safepoint::kNoDeoptimizationIndex);
TranslationIterator it(data.TranslationByteArray(), TranslationIterator it(data.TranslationByteArray(),
data.TranslationIndex(deopt_index).value()); data.TranslationIndex(deopt_index).value());
#ifdef V8_NO_ARGUMENT_ADAPTOR #ifdef V8_NO_ARGUMENTS_ADAPTOR
int actual_argc = frame->GetActualArgumentCount(); int actual_argc = frame->GetActualArgumentCount();
#else #else
int actual_argc = 0; int actual_argc = 0;
#endif #endif
Init(frame->isolate(), frame->fp(), kNullAddress, &it, data.LiteralArray(), Init(frame->isolate(), frame->fp(), frame->fp(), &it, data.LiteralArray(),
nullptr /* registers */, nullptr /* trace file */, nullptr /* registers */, nullptr /* trace file */,
frame->function().shared().internal_formal_parameter_count(), frame->function().shared().internal_formal_parameter_count(),
actual_argc); actual_argc);
......
// Copyright 2020 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax
function g(b) {
const _ = Object.getOwnPropertyDescriptors(g);
// for (const _ of b) {}
}
function f(...a) {
g(a);
}
%PrepareFunctionForOptimization(f);
%PrepareFunctionForOptimization(g);
f([]);
%OptimizeFunctionOnNextCall(f);
f([]);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment