Chromium Code Reviews| Index: src/full-codegen.cc |
| diff --git a/src/full-codegen.cc b/src/full-codegen.cc |
| index 8846107acf8e90db9e631ca24347f3d5c5d60d57..27bce08a4d80d618115976b15d21d48cc724a6ad 100644 |
| --- a/src/full-codegen.cc |
| +++ b/src/full-codegen.cc |
| @@ -338,6 +338,7 @@ bool FullCodeGenerator::MakeCode(CompilationInfo* info) { |
| cgen.PopulateDeoptimizationData(code); |
| cgen.PopulateTypeFeedbackInfo(code); |
| cgen.PopulateTypeFeedbackCells(code); |
| + cgen.SetProfilingBudgetCell(code); |
| code->set_has_deoptimization_support(info->HasDeoptimizationSupport()); |
| code->set_handler_table(*cgen.handler_table()); |
| #ifdef ENABLE_DEBUGGER_SUPPORT |
| @@ -434,6 +435,11 @@ void FullCodeGenerator::PopulateTypeFeedbackCells(Handle<Code> code) { |
| } |
| +void FullCodeGenerator::SetProfilingBudgetCell(Handle<Code> code) { |
| + ASSERT(!profiling_budget_.is_null()); |
|
Jakob Kummerow
2013/08/30 11:13:39
No need for this ASSERT, you get it for free as pa
|
| + code->set_profiling_budget(*profiling_budget_); |
| +} |
| + |
| void FullCodeGenerator::PrepareForBailout(Expression* node, State state) { |
| PrepareForBailoutForId(node->id(), state); |