| 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 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 743 function_info->set_end_position(lit->end_position()); | 743 function_info->set_end_position(lit->end_position()); |
| 744 function_info->set_is_expression(lit->is_expression()); | 744 function_info->set_is_expression(lit->is_expression()); |
| 745 function_info->set_is_toplevel(is_toplevel); | 745 function_info->set_is_toplevel(is_toplevel); |
| 746 function_info->set_inferred_name(*lit->inferred_name()); | 746 function_info->set_inferred_name(*lit->inferred_name()); |
| 747 function_info->SetThisPropertyAssignmentsInfo( | 747 function_info->SetThisPropertyAssignmentsInfo( |
| 748 lit->has_only_simple_this_property_assignments(), | 748 lit->has_only_simple_this_property_assignments(), |
| 749 *lit->this_property_assignments()); | 749 *lit->this_property_assignments()); |
| 750 function_info->set_allows_lazy_compilation(lit->AllowsLazyCompilation()); | 750 function_info->set_allows_lazy_compilation(lit->AllowsLazyCompilation()); |
| 751 function_info->set_strict_mode(lit->strict_mode()); | 751 function_info->set_strict_mode(lit->strict_mode()); |
| 752 function_info->set_uses_arguments(lit->scope()->arguments() != NULL); | 752 function_info->set_uses_arguments(lit->scope()->arguments() != NULL); |
| 753 function_info->set_has_duplicate_parameters(lit->has_duplicate_parameters()); |
| 753 } | 754 } |
| 754 | 755 |
| 755 | 756 |
| 756 void Compiler::RecordFunctionCompilation(Logger::LogEventsAndTags tag, | 757 void Compiler::RecordFunctionCompilation(Logger::LogEventsAndTags tag, |
| 757 CompilationInfo* info, | 758 CompilationInfo* info, |
| 758 Handle<SharedFunctionInfo> shared) { | 759 Handle<SharedFunctionInfo> shared) { |
| 759 // SharedFunctionInfo is passed separately, because if CompilationInfo | 760 // SharedFunctionInfo is passed separately, because if CompilationInfo |
| 760 // was created using Script object, it will not have it. | 761 // was created using Script object, it will not have it. |
| 761 | 762 |
| 762 // Log the code generation. If source information is available include | 763 // Log the code generation. If source information is available include |
| (...skipping 21 matching lines...) Expand all Loading... |
| 784 shared->DebugName())); | 785 shared->DebugName())); |
| 785 } | 786 } |
| 786 } | 787 } |
| 787 | 788 |
| 788 GDBJIT(AddCode(name, | 789 GDBJIT(AddCode(name, |
| 789 Handle<Script>(info->script()), | 790 Handle<Script>(info->script()), |
| 790 Handle<Code>(info->code()))); | 791 Handle<Code>(info->code()))); |
| 791 } | 792 } |
| 792 | 793 |
| 793 } } // namespace v8::internal | 794 } } // namespace v8::internal |
| OLD | NEW |