[tests] Create canonicalized handle scope for Turbofan.
Change-Id: I76a792638b58f0bdc0a6a04c912d816ebf04718c Reviewed-on: https://chromium-review.googlesource.com/725320 Reviewed-by: Benedikt Meurer <bmeurer@chromium.org> Commit-Queue: Jaroslav Sevcik <jarin@chromium.org> Cr-Commit-Position: refs/heads/master@{#48664}
This commit is contained in:
parent
4e8d24e3bd
commit
8f752a5c5c
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user