OLD | NEW |
1 // Copyright 2011 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 |
11 // with the distribution. | 11 // with the distribution. |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 code->set_handler_table(*cgen.handler_table()); | 290 code->set_handler_table(*cgen.handler_table()); |
291 #ifdef ENABLE_DEBUGGER_SUPPORT | 291 #ifdef ENABLE_DEBUGGER_SUPPORT |
292 code->set_has_debug_break_slots( | 292 code->set_has_debug_break_slots( |
293 info->isolate()->debugger()->IsDebuggerActive()); | 293 info->isolate()->debugger()->IsDebuggerActive()); |
294 code->set_compiled_optimizable(info->IsOptimizable()); | 294 code->set_compiled_optimizable(info->IsOptimizable()); |
295 #endif // ENABLE_DEBUGGER_SUPPORT | 295 #endif // ENABLE_DEBUGGER_SUPPORT |
296 code->set_allow_osr_at_loop_nesting_level(0); | 296 code->set_allow_osr_at_loop_nesting_level(0); |
297 code->set_stack_check_table_offset(table_offset); | 297 code->set_stack_check_table_offset(table_offset); |
298 CodeGenerator::PrintCode(code, info); | 298 CodeGenerator::PrintCode(code, info); |
299 info->SetCode(code); // May be an empty handle. | 299 info->SetCode(code); // May be an empty handle. |
| 300 if (!code.is_null()) { |
| 301 isolate->runtime_profiler()->NotifyCodeGenerated(code->instruction_size()); |
| 302 } |
300 #ifdef ENABLE_GDB_JIT_INTERFACE | 303 #ifdef ENABLE_GDB_JIT_INTERFACE |
301 if (FLAG_gdbjit && !code.is_null()) { | 304 if (FLAG_gdbjit && !code.is_null()) { |
302 GDBJITLineInfo* lineinfo = | 305 GDBJITLineInfo* lineinfo = |
303 masm.positions_recorder()->DetachGDBJITLineInfo(); | 306 masm.positions_recorder()->DetachGDBJITLineInfo(); |
304 | 307 |
305 GDBJIT(RegisterDetailedLineInfo(*code, lineinfo)); | 308 GDBJIT(RegisterDetailedLineInfo(*code, lineinfo)); |
306 } | 309 } |
307 #endif | 310 #endif |
308 return !code.is_null(); | 311 return !code.is_null(); |
309 } | 312 } |
(...skipping 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1326 } | 1329 } |
1327 | 1330 |
1328 return false; | 1331 return false; |
1329 } | 1332 } |
1330 | 1333 |
1331 | 1334 |
1332 #undef __ | 1335 #undef __ |
1333 | 1336 |
1334 | 1337 |
1335 } } // namespace v8::internal | 1338 } } // namespace v8::internal |
OLD | NEW |