| 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 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 755 function_info->set_start_position(lit->start_position()); | 755 function_info->set_start_position(lit->start_position()); |
| 756 function_info->set_end_position(lit->end_position()); | 756 function_info->set_end_position(lit->end_position()); |
| 757 function_info->set_is_expression(lit->is_expression()); | 757 function_info->set_is_expression(lit->is_expression()); |
| 758 function_info->set_is_toplevel(is_toplevel); | 758 function_info->set_is_toplevel(is_toplevel); |
| 759 function_info->set_inferred_name(*lit->inferred_name()); | 759 function_info->set_inferred_name(*lit->inferred_name()); |
| 760 function_info->SetThisPropertyAssignmentsInfo( | 760 function_info->SetThisPropertyAssignmentsInfo( |
| 761 lit->has_only_simple_this_property_assignments(), | 761 lit->has_only_simple_this_property_assignments(), |
| 762 *lit->this_property_assignments()); | 762 *lit->this_property_assignments()); |
| 763 function_info->set_try_full_codegen(lit->try_full_codegen()); | 763 function_info->set_try_full_codegen(lit->try_full_codegen()); |
| 764 function_info->set_allows_lazy_compilation(lit->AllowsLazyCompilation()); | 764 function_info->set_allows_lazy_compilation(lit->AllowsLazyCompilation()); |
| 765 function_info->set_strict_mode(lit->strict_mode()); |
| 765 } | 766 } |
| 766 | 767 |
| 767 | 768 |
| 768 void Compiler::RecordFunctionCompilation(Logger::LogEventsAndTags tag, | 769 void Compiler::RecordFunctionCompilation(Logger::LogEventsAndTags tag, |
| 769 Handle<String> name, | 770 Handle<String> name, |
| 770 int start_position, | 771 int start_position, |
| 771 CompilationInfo* info) { | 772 CompilationInfo* info) { |
| 772 // Log the code generation. If source information is available include | 773 // Log the code generation. If source information is available include |
| 773 // script name and line number. Check explicitly whether logging is | 774 // script name and line number. Check explicitly whether logging is |
| 774 // enabled as finding the line number is not free. | 775 // enabled as finding the line number is not free. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 799 code->instruction_size())); | 800 code->instruction_size())); |
| 800 } | 801 } |
| 801 } | 802 } |
| 802 | 803 |
| 803 GDBJIT(AddCode(name, | 804 GDBJIT(AddCode(name, |
| 804 Handle<Script>(info->script()), | 805 Handle<Script>(info->script()), |
| 805 Handle<Code>(info->code()))); | 806 Handle<Code>(info->code()))); |
| 806 } | 807 } |
| 807 | 808 |
| 808 } } // namespace v8::internal | 809 } } // namespace v8::internal |
| OLD | NEW |