| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index 962e7923e688b7fc4744358a1883c90bd3999a40..6d22db2dfba8cd00ab71999ae773dcd834799ffe 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -413,10 +413,14 @@ OptimizedCompileJob::Status OptimizedCompileJob::CreateGraph() {
|
| info()->function()->dont_optimize_reason() != kTryCatchStatement &&
|
| info()->function()->dont_optimize_reason() != kTryFinallyStatement &&
|
| // TODO(turbofan): Make OSR work and remove this bailout.
|
| - !info()->is_osr()) {
|
| + !info()->is_osr() &&
|
| + // TODO(mstarzinger): Extend test coverage to unsupported targets.
|
| + compiler::Pipeline::SupportedTarget()) {
|
| compiler::Pipeline pipeline(info());
|
| pipeline.GenerateCode();
|
| - return SetLastStatus(SUCCEEDED);
|
| + if (!info()->code().is_null()) {
|
| + return SetLastStatus(SUCCEEDED);
|
| + }
|
| }
|
|
|
| if (FLAG_trace_hydrogen) {
|
|
|