| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 return false; | 298 return false; |
| 299 } | 299 } |
| 300 unsigned table_offset = cgen.EmitStackCheckTable(); | 300 unsigned table_offset = cgen.EmitStackCheckTable(); |
| 301 | 301 |
| 302 Code::Flags flags = Code::ComputeFlags(Code::FUNCTION, NOT_IN_LOOP); | 302 Code::Flags flags = Code::ComputeFlags(Code::FUNCTION, NOT_IN_LOOP); |
| 303 Handle<Code> code = CodeGenerator::MakeCodeEpilogue(&masm, flags, info); | 303 Handle<Code> code = CodeGenerator::MakeCodeEpilogue(&masm, flags, info); |
| 304 code->set_optimizable(info->IsOptimizable()); | 304 code->set_optimizable(info->IsOptimizable()); |
| 305 cgen.PopulateDeoptimizationData(code); | 305 cgen.PopulateDeoptimizationData(code); |
| 306 code->set_has_deoptimization_support(info->HasDeoptimizationSupport()); | 306 code->set_has_deoptimization_support(info->HasDeoptimizationSupport()); |
| 307 code->set_allow_osr_at_loop_nesting_level(0); | 307 code->set_allow_osr_at_loop_nesting_level(0); |
| 308 code->set_stack_check_table_start(table_offset); | 308 code->set_stack_check_table_offset(table_offset); |
| 309 CodeGenerator::PrintCode(code, info); | 309 CodeGenerator::PrintCode(code, info); |
| 310 info->SetCode(code); // may be an empty handle. | 310 info->SetCode(code); // may be an empty handle. |
| 311 #ifdef ENABLE_GDB_JIT_INTERFACE | 311 #ifdef ENABLE_GDB_JIT_INTERFACE |
| 312 if (FLAG_gdbjit && !code.is_null()) { | 312 if (FLAG_gdbjit && !code.is_null()) { |
| 313 GDBJITLineInfo* lineinfo = | 313 GDBJITLineInfo* lineinfo = |
| 314 masm.positions_recorder()->DetachGDBJITLineInfo(); | 314 masm.positions_recorder()->DetachGDBJITLineInfo(); |
| 315 | 315 |
| 316 GDBJIT(RegisterDetailedLineInfo(*code, lineinfo)); | 316 GDBJIT(RegisterDetailedLineInfo(*code, lineinfo)); |
| 317 } | 317 } |
| 318 #endif | 318 #endif |
| (...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 909 AstVisitor::Visit(expr); | 909 AstVisitor::Visit(expr); |
| 910 forward_bailout_stack_ = saved; | 910 forward_bailout_stack_ = saved; |
| 911 } | 911 } |
| 912 | 912 |
| 913 | 913 |
| 914 void FullCodeGenerator::VisitBlock(Block* stmt) { | 914 void FullCodeGenerator::VisitBlock(Block* stmt) { |
| 915 Comment cmnt(masm_, "[ Block"); | 915 Comment cmnt(masm_, "[ Block"); |
| 916 Breakable nested_statement(this, stmt); | 916 Breakable nested_statement(this, stmt); |
| 917 SetStatementPosition(stmt); | 917 SetStatementPosition(stmt); |
| 918 | 918 |
| 919 PrepareForBailoutForId(stmt->EntryId(), TOS_REG); | 919 PrepareForBailoutForId(stmt->EntryId(), NO_REGISTERS); |
| 920 VisitStatements(stmt->statements()); | 920 VisitStatements(stmt->statements()); |
| 921 __ bind(nested_statement.break_target()); | 921 __ bind(nested_statement.break_target()); |
| 922 PrepareForBailoutForId(stmt->ExitId(), NO_REGISTERS); | 922 PrepareForBailoutForId(stmt->ExitId(), NO_REGISTERS); |
| 923 } | 923 } |
| 924 | 924 |
| 925 | 925 |
| 926 void FullCodeGenerator::VisitExpressionStatement(ExpressionStatement* stmt) { | 926 void FullCodeGenerator::VisitExpressionStatement(ExpressionStatement* stmt) { |
| 927 Comment cmnt(masm_, "[ ExpressionStatement"); | 927 Comment cmnt(masm_, "[ ExpressionStatement"); |
| 928 SetStatementPosition(stmt); | 928 SetStatementPosition(stmt); |
| 929 VisitForEffect(stmt->expression()); | 929 VisitForEffect(stmt->expression()); |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1388 __ Drop(stack_depth); | 1388 __ Drop(stack_depth); |
| 1389 __ PopTryHandler(); | 1389 __ PopTryHandler(); |
| 1390 return 0; | 1390 return 0; |
| 1391 } | 1391 } |
| 1392 | 1392 |
| 1393 | 1393 |
| 1394 #undef __ | 1394 #undef __ |
| 1395 | 1395 |
| 1396 | 1396 |
| 1397 } } // namespace v8::internal | 1397 } } // namespace v8::internal |
| OLD | NEW |