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 (FLAG_counting_profiler) { | |
Erik Corry
2012/02/08 14:13:30
I suggest this condition could be folded into Noti
Jakob Kummerow
2012/02/08 15:24:08
Done.
| |
301 if (!code.is_null()) { | |
302 isolate->runtime_profiler()->NotifyCodeGenerated( | |
303 code->instruction_size()); | |
304 } | |
305 } | |
300 #ifdef ENABLE_GDB_JIT_INTERFACE | 306 #ifdef ENABLE_GDB_JIT_INTERFACE |
301 if (FLAG_gdbjit && !code.is_null()) { | 307 if (FLAG_gdbjit && !code.is_null()) { |
302 GDBJITLineInfo* lineinfo = | 308 GDBJITLineInfo* lineinfo = |
303 masm.positions_recorder()->DetachGDBJITLineInfo(); | 309 masm.positions_recorder()->DetachGDBJITLineInfo(); |
304 | 310 |
305 GDBJIT(RegisterDetailedLineInfo(*code, lineinfo)); | 311 GDBJIT(RegisterDetailedLineInfo(*code, lineinfo)); |
306 } | 312 } |
307 #endif | 313 #endif |
308 return !code.is_null(); | 314 return !code.is_null(); |
309 } | 315 } |
(...skipping 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1326 } | 1332 } |
1327 | 1333 |
1328 return false; | 1334 return false; |
1329 } | 1335 } |
1330 | 1336 |
1331 | 1337 |
1332 #undef __ | 1338 #undef __ |
1333 | 1339 |
1334 | 1340 |
1335 } } // namespace v8::internal | 1341 } } // namespace v8::internal |
OLD | NEW |