Index: src/code-stubs.cc |
diff --git a/src/code-stubs.cc b/src/code-stubs.cc |
index 42fefce92dbe57563535fd8d25fef7c98eaddc78..e398d70ea255eaff3193cf9cd4a113a59b4ee691 100644 |
--- a/src/code-stubs.cc |
+++ b/src/code-stubs.cc |
@@ -496,15 +496,7 @@ Handle<Code> TurboFanCodeStub::GenerateCode() { |
// Just to make sure nobody calls this... |
inner->set_code(isolate()->builtins()->builtin(Builtins::kIllegal)); |
- Zone zone; |
- // Build a "hybrid" CompilationInfo for a JSFunction/CodeStub pair. |
- ParseInfo parse_info(&zone, inner); |
- CompilationInfo info(&parse_info); |
- info.SetFunctionType(GetCallInterfaceDescriptor().GetFunctionType()); |
- info.MarkAsContextSpecializing(); |
- info.MarkAsDeoptimizationEnabled(); |
- info.SetStub(this); |
- return info.GenerateCodeStub(); |
+ return Compiler::GetStubCode(inner, this).ToHandleChecked(); |
} |