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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 code->set_handler_table(*cgen.handler_table()); | 323 code->set_handler_table(*cgen.handler_table()); |
324 #ifdef ENABLE_DEBUGGER_SUPPORT | 324 #ifdef ENABLE_DEBUGGER_SUPPORT |
325 code->set_has_debug_break_slots( | 325 code->set_has_debug_break_slots( |
326 info->isolate()->debugger()->IsDebuggerActive()); | 326 info->isolate()->debugger()->IsDebuggerActive()); |
327 code->set_compiled_optimizable(info->IsOptimizable()); | 327 code->set_compiled_optimizable(info->IsOptimizable()); |
328 #endif // ENABLE_DEBUGGER_SUPPORT | 328 #endif // ENABLE_DEBUGGER_SUPPORT |
329 code->set_allow_osr_at_loop_nesting_level(0); | 329 code->set_allow_osr_at_loop_nesting_level(0); |
330 code->set_stack_check_table_offset(table_offset); | 330 code->set_stack_check_table_offset(table_offset); |
331 CodeGenerator::PrintCode(code, info); | 331 CodeGenerator::PrintCode(code, info); |
332 info->SetCode(code); // May be an empty handle. | 332 info->SetCode(code); // May be an empty handle. |
333 if (!code.is_null()) { | |
334 isolate->runtime_profiler()->NotifyCodeGenerated(code->instruction_size()); | |
335 } | |
336 #ifdef ENABLE_GDB_JIT_INTERFACE | 333 #ifdef ENABLE_GDB_JIT_INTERFACE |
337 if (FLAG_gdbjit && !code.is_null()) { | 334 if (FLAG_gdbjit && !code.is_null()) { |
338 GDBJITLineInfo* lineinfo = | 335 GDBJITLineInfo* lineinfo = |
339 masm.positions_recorder()->DetachGDBJITLineInfo(); | 336 masm.positions_recorder()->DetachGDBJITLineInfo(); |
340 | 337 |
341 GDBJIT(RegisterDetailedLineInfo(*code, lineinfo)); | 338 GDBJIT(RegisterDetailedLineInfo(*code, lineinfo)); |
342 } | 339 } |
343 #endif | 340 #endif |
344 return !code.is_null(); | 341 return !code.is_null(); |
345 } | 342 } |
(...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1422 } | 1419 } |
1423 | 1420 |
1424 return false; | 1421 return false; |
1425 } | 1422 } |
1426 | 1423 |
1427 | 1424 |
1428 #undef __ | 1425 #undef __ |
1429 | 1426 |
1430 | 1427 |
1431 } } // namespace v8::internal | 1428 } } // namespace v8::internal |
OLD | NEW |