Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: src/compiler.cc

Issue 7599024: Fix a bug in named getter/setter compilation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Incorporate review comments. Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ast.h ('k') | src/parser.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 FunctionLiteral* lit, 729 FunctionLiteral* lit,
730 bool is_toplevel, 730 bool is_toplevel,
731 Handle<Script> script) { 731 Handle<Script> script) {
732 function_info->set_length(lit->num_parameters()); 732 function_info->set_length(lit->num_parameters());
733 function_info->set_formal_parameter_count(lit->num_parameters()); 733 function_info->set_formal_parameter_count(lit->num_parameters());
734 function_info->set_script(*script); 734 function_info->set_script(*script);
735 function_info->set_function_token_position(lit->function_token_position()); 735 function_info->set_function_token_position(lit->function_token_position());
736 function_info->set_start_position(lit->start_position()); 736 function_info->set_start_position(lit->start_position());
737 function_info->set_end_position(lit->end_position()); 737 function_info->set_end_position(lit->end_position());
738 function_info->set_is_expression(lit->is_expression()); 738 function_info->set_is_expression(lit->is_expression());
739 function_info->set_is_anonymous(lit->name()->length() == 0); 739 function_info->set_is_anonymous(lit->is_anonymous());
740 function_info->set_is_toplevel(is_toplevel); 740 function_info->set_is_toplevel(is_toplevel);
741 function_info->set_inferred_name(*lit->inferred_name()); 741 function_info->set_inferred_name(*lit->inferred_name());
742 function_info->SetThisPropertyAssignmentsInfo( 742 function_info->SetThisPropertyAssignmentsInfo(
743 lit->has_only_simple_this_property_assignments(), 743 lit->has_only_simple_this_property_assignments(),
744 *lit->this_property_assignments()); 744 *lit->this_property_assignments());
745 function_info->set_allows_lazy_compilation(lit->AllowsLazyCompilation()); 745 function_info->set_allows_lazy_compilation(lit->AllowsLazyCompilation());
746 function_info->set_strict_mode(lit->strict_mode()); 746 function_info->set_strict_mode(lit->strict_mode());
747 function_info->set_uses_arguments(lit->scope()->arguments() != NULL); 747 function_info->set_uses_arguments(lit->scope()->arguments() != NULL);
748 function_info->set_has_duplicate_parameters(lit->has_duplicate_parameters()); 748 function_info->set_has_duplicate_parameters(lit->has_duplicate_parameters());
749 } 749 }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
782 } 782 }
783 } 783 }
784 784
785 GDBJIT(AddCode(Handle<String>(shared->DebugName()), 785 GDBJIT(AddCode(Handle<String>(shared->DebugName()),
786 Handle<Script>(info->script()), 786 Handle<Script>(info->script()),
787 Handle<Code>(info->code()), 787 Handle<Code>(info->code()),
788 info)); 788 info));
789 } 789 }
790 790
791 } } // namespace v8::internal 791 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast.h ('k') | src/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698