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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 if (cgen.HasStackOverflow()) { | 308 if (cgen.HasStackOverflow()) { |
309 ASSERT(!isolate->has_pending_exception()); | 309 ASSERT(!isolate->has_pending_exception()); |
310 return false; | 310 return false; |
311 } | 311 } |
312 unsigned table_offset = cgen.EmitStackCheckTable(); | 312 unsigned table_offset = cgen.EmitStackCheckTable(); |
313 | 313 |
314 Code::Flags flags = Code::ComputeFlags(Code::FUNCTION); | 314 Code::Flags flags = Code::ComputeFlags(Code::FUNCTION); |
315 Handle<Code> code = CodeGenerator::MakeCodeEpilogue(&masm, flags, info); | 315 Handle<Code> code = CodeGenerator::MakeCodeEpilogue(&masm, flags, info); |
316 code->set_optimizable(info->IsOptimizable() && | 316 code->set_optimizable(info->IsOptimizable() && |
317 !info->function()->flags()->Contains(kDontOptimize)); | 317 !info->function()->flags()->Contains(kDontOptimize)); |
318 code->set_self_optimization_header(cgen.has_self_optimization_header_); | |
319 cgen.PopulateDeoptimizationData(code); | 318 cgen.PopulateDeoptimizationData(code); |
320 cgen.PopulateTypeFeedbackInfo(code); | 319 cgen.PopulateTypeFeedbackInfo(code); |
321 cgen.PopulateTypeFeedbackCells(code); | 320 cgen.PopulateTypeFeedbackCells(code); |
322 code->set_has_deoptimization_support(info->HasDeoptimizationSupport()); | 321 code->set_has_deoptimization_support(info->HasDeoptimizationSupport()); |
323 code->set_handler_table(*cgen.handler_table()); | 322 code->set_handler_table(*cgen.handler_table()); |
324 #ifdef ENABLE_DEBUGGER_SUPPORT | 323 #ifdef ENABLE_DEBUGGER_SUPPORT |
325 code->set_has_debug_break_slots( | 324 code->set_has_debug_break_slots( |
326 info->isolate()->debugger()->IsDebuggerActive()); | 325 info->isolate()->debugger()->IsDebuggerActive()); |
327 code->set_compiled_optimizable(info->IsOptimizable()); | 326 code->set_compiled_optimizable(info->IsOptimizable()); |
328 #endif // ENABLE_DEBUGGER_SUPPORT | 327 #endif // ENABLE_DEBUGGER_SUPPORT |
(...skipping 1093 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1422 } | 1421 } |
1423 | 1422 |
1424 return false; | 1423 return false; |
1425 } | 1424 } |
1426 | 1425 |
1427 | 1426 |
1428 #undef __ | 1427 #undef __ |
1429 | 1428 |
1430 | 1429 |
1431 } } // namespace v8::internal | 1430 } } // namespace v8::internal |
OLD | NEW |