| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 Handle<Code> code = CodeGenerator::MakeCodeEpilogue(&masm, flags, info); | 334 Handle<Code> code = CodeGenerator::MakeCodeEpilogue(&masm, flags, info); |
| 335 code->set_optimizable(info->IsOptimizable() && | 335 code->set_optimizable(info->IsOptimizable() && |
| 336 !info->function()->dont_optimize() && | 336 !info->function()->dont_optimize() && |
| 337 info->function()->scope()->AllowsLazyCompilation()); | 337 info->function()->scope()->AllowsLazyCompilation()); |
| 338 cgen.PopulateDeoptimizationData(code); | 338 cgen.PopulateDeoptimizationData(code); |
| 339 cgen.PopulateTypeFeedbackInfo(code); | 339 cgen.PopulateTypeFeedbackInfo(code); |
| 340 cgen.PopulateTypeFeedbackCells(code); | 340 cgen.PopulateTypeFeedbackCells(code); |
| 341 code->set_has_deoptimization_support(info->HasDeoptimizationSupport()); | 341 code->set_has_deoptimization_support(info->HasDeoptimizationSupport()); |
| 342 code->set_handler_table(*cgen.handler_table()); | 342 code->set_handler_table(*cgen.handler_table()); |
| 343 #ifdef ENABLE_DEBUGGER_SUPPORT | 343 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 344 code->set_has_debug_break_slots( | |
| 345 info->isolate()->debugger()->IsDebuggerActive()); | |
| 346 code->set_compiled_optimizable(info->IsOptimizable()); | 344 code->set_compiled_optimizable(info->IsOptimizable()); |
| 347 #endif // ENABLE_DEBUGGER_SUPPORT | 345 #endif // ENABLE_DEBUGGER_SUPPORT |
| 348 code->set_allow_osr_at_loop_nesting_level(0); | 346 code->set_allow_osr_at_loop_nesting_level(0); |
| 349 code->set_profiler_ticks(0); | 347 code->set_profiler_ticks(0); |
| 350 code->set_back_edge_table_offset(table_offset); | 348 code->set_back_edge_table_offset(table_offset); |
| 351 code->set_back_edges_patched_for_osr(false); | 349 code->set_back_edges_patched_for_osr(false); |
| 352 CodeGenerator::PrintCode(code, info); | 350 CodeGenerator::PrintCode(code, info); |
| 353 info->SetCode(code); | 351 info->SetCode(code); |
| 354 #ifdef ENABLE_GDB_JIT_INTERFACE | 352 #ifdef ENABLE_GDB_JIT_INTERFACE |
| 355 if (FLAG_gdbjit) { | 353 if (FLAG_gdbjit) { |
| (...skipping 1350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1706 } | 1704 } |
| 1707 return true; | 1705 return true; |
| 1708 } | 1706 } |
| 1709 #endif // DEBUG | 1707 #endif // DEBUG |
| 1710 | 1708 |
| 1711 | 1709 |
| 1712 #undef __ | 1710 #undef __ |
| 1713 | 1711 |
| 1714 | 1712 |
| 1715 } } // namespace v8::internal | 1713 } } // namespace v8::internal |
| OLD | NEW |