Commit 8f752a5c authored by Jaroslav Sevcik's avatar Jaroslav Sevcik Committed by Commit Bot

[tests] Create canonicalized handle scope for Turbofan.

Change-Id: I76a792638b58f0bdc0a6a04c912d816ebf04718c
Reviewed-on: https://chromium-review.googlesource.com/725320Reviewed-by: 's avatarBenedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Jaroslav Sevcik <jarin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#48664}
parent 4e8d24e3
......@@ -121,6 +121,12 @@ class BytecodeGraphTester {
Handle<SharedFunctionInfo> shared(function->shared());
CompilationInfo compilation_info(&zone, function->GetIsolate(), shared,
function);
// Compiler relies on canonicalized handles, let's create
// a canonicalized scope and migrate existing handles there.
CanonicalHandleScope canonical(isolate_);
compilation_info.ReopenHandlesInNewHandleScope();
Handle<Code> code = Pipeline::GenerateCodeForTesting(&compilation_info);
function->set_code(*code);
......
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