Revision: 6855 Author: [email protected] Date: Fri Feb 18 06:22:29 2011 Log: Minor cleanup.
Do not relookup code object and use optimized_code instead shadowing existing code local. Review URL: http://codereview.chromium.org/6541020 http://code.google.com/p/v8/source/detail?r=6855 Modified: /branches/bleeding_edge/src/compiler.cc ======================================= --- /branches/bleeding_edge/src/compiler.cc Fri Feb 11 06:26:56 2011 +++ /branches/bleeding_edge/src/compiler.cc Fri Feb 18 06:22:29 2011 @@ -273,7 +273,7 @@ // optimizable marker in the code object and optimize anyway. This // is safe as long as the unoptimized code has deoptimization // support. - ASSERT(FLAG_always_opt || info->shared_info()->code()->optimizable()); + ASSERT(FLAG_always_opt || code->optimizable()); ASSERT(info->shared_info()->has_deoptimization_support()); if (FLAG_trace_hydrogen) { @@ -283,8 +283,7 @@ } TypeFeedbackOracle oracle( - Handle<Code>(info->shared_info()->code()), - Handle<Context>(info->closure()->context()->global_context())); + code, Handle<Context>(info->closure()->context()->global_context())); HGraphBuilder builder(&oracle); HPhase phase(HPhase::kTotal); HGraph* graph = builder.CreateGraph(info); @@ -294,9 +293,9 @@ } if (graph != NULL && FLAG_build_lithium) { - Handle<Code> code = graph->Compile(); - if (!code.is_null()) { - info->SetCode(code); + Handle<Code> optimized_code = graph->Compile(); + if (!optimized_code.is_null()) { + info->SetCode(optimized_code); FinishOptimization(info->closure(), start); return true; } -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
