Make Windows stack walking test use runtime-compiled code
I happened to notice while stepping through the StackUnwindingWin64 test that it never actually encounters a runtime-compiled function despite using %OptimizeFunctionOnNextCall. V8 compiles the function on the subsequent call as requested, but the compiled function isn't very good because there was no feedback data, and it immediately deopts. To fix, we can call the function once between %PrepareFunctionForOptimization and %OptimizeFunctionOnNextCall. Change-Id: Icb25f16d43a60c36a1f85d15e2ce4535e08d1076 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2472780 Reviewed-by: Jakob Gruber <jgruber@chromium.org> Commit-Queue: Seth Brenith <seth.brenith@microsoft.com> Cr-Commit-Position: refs/heads/master@{#70633}
This commit is contained in:
parent
2f44cf1f86
commit
fe9f804547
@ -101,7 +101,7 @@ UNINITIALIZED_TEST(StackUnwindingWin64) {
|
||||
v8::Local<v8::Function> function = v8::Local<v8::Function>::Cast(
|
||||
env->Global()->Get(env.local(), v8_str("start")).ToLocalChecked());
|
||||
|
||||
CompileRun("%OptimizeFunctionOnNextCall(start);");
|
||||
CompileRun("start(1); %OptimizeFunctionOnNextCall(start);");
|
||||
|
||||
int32_t repeat_count = 100;
|
||||
v8::Local<v8::Value> args[] = {v8::Integer::New(isolate, repeat_count)};
|
||||
|
Loading…
Reference in New Issue
Block a user