| Index: src/compiler.cc
|
| ===================================================================
|
| --- src/compiler.cc (revision 7083)
|
| +++ src/compiler.cc (working copy)
|
| @@ -285,18 +285,18 @@
|
| HTracer::Instance()->TraceCompilation(info->function());
|
| }
|
|
|
| - TypeFeedbackOracle oracle(
|
| - code, Handle<Context>(info->closure()->context()->global_context()));
|
| - HGraphBuilder builder(&oracle);
|
| + Handle<Context> global_context(info->closure()->context()->global_context());
|
| + TypeFeedbackOracle oracle(code, global_context);
|
| + HGraphBuilder builder(info, &oracle);
|
| HPhase phase(HPhase::kTotal);
|
| - HGraph* graph = builder.CreateGraph(info);
|
| + HGraph* graph = builder.CreateGraph();
|
| if (info->isolate()->has_pending_exception()) {
|
| info->SetCode(Handle<Code>::null());
|
| return false;
|
| }
|
|
|
| if (graph != NULL && FLAG_build_lithium) {
|
| - Handle<Code> optimized_code = graph->Compile();
|
| + Handle<Code> optimized_code = graph->Compile(info);
|
| if (!optimized_code.is_null()) {
|
| info->SetCode(optimized_code);
|
| FinishOptimization(info->closure(), start);
|
|
|