OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 ASSERT(!isolate->has_pending_exception()); | 289 ASSERT(!isolate->has_pending_exception()); |
290 return false; | 290 return false; |
291 } | 291 } |
292 unsigned table_offset = cgen.EmitStackCheckTable(); | 292 unsigned table_offset = cgen.EmitStackCheckTable(); |
293 | 293 |
294 Code::Flags flags = Code::ComputeFlags(Code::FUNCTION, NOT_IN_LOOP); | 294 Code::Flags flags = Code::ComputeFlags(Code::FUNCTION, NOT_IN_LOOP); |
295 Handle<Code> code = CodeGenerator::MakeCodeEpilogue(&masm, flags, info); | 295 Handle<Code> code = CodeGenerator::MakeCodeEpilogue(&masm, flags, info); |
296 code->set_optimizable(info->IsOptimizable()); | 296 code->set_optimizable(info->IsOptimizable()); |
297 cgen.PopulateDeoptimizationData(code); | 297 cgen.PopulateDeoptimizationData(code); |
298 code->set_has_deoptimization_support(info->HasDeoptimizationSupport()); | 298 code->set_has_deoptimization_support(info->HasDeoptimizationSupport()); |
| 299 code->set_has_debug_break_slots( |
| 300 info->isolate()->debugger()->IsDebuggerActive()); |
299 code->set_allow_osr_at_loop_nesting_level(0); | 301 code->set_allow_osr_at_loop_nesting_level(0); |
300 code->set_stack_check_table_offset(table_offset); | 302 code->set_stack_check_table_offset(table_offset); |
301 CodeGenerator::PrintCode(code, info); | 303 CodeGenerator::PrintCode(code, info); |
302 info->SetCode(code); // may be an empty handle. | 304 info->SetCode(code); // may be an empty handle. |
303 #ifdef ENABLE_GDB_JIT_INTERFACE | 305 #ifdef ENABLE_GDB_JIT_INTERFACE |
304 if (FLAG_gdbjit && !code.is_null()) { | 306 if (FLAG_gdbjit && !code.is_null()) { |
305 GDBJITLineInfo* lineinfo = | 307 GDBJITLineInfo* lineinfo = |
306 masm.positions_recorder()->DetachGDBJITLineInfo(); | 308 masm.positions_recorder()->DetachGDBJITLineInfo(); |
307 | 309 |
308 GDBJIT(RegisterDetailedLineInfo(*code, lineinfo)); | 310 GDBJIT(RegisterDetailedLineInfo(*code, lineinfo)); |
(...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1383 } | 1385 } |
1384 | 1386 |
1385 return false; | 1387 return false; |
1386 } | 1388 } |
1387 | 1389 |
1388 | 1390 |
1389 #undef __ | 1391 #undef __ |
1390 | 1392 |
1391 | 1393 |
1392 } } // namespace v8::internal | 1394 } } // namespace v8::internal |
OLD | NEW |