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

Side by Side Diff: src/compiler.cc

Issue 6349020: Make arguments read only in strict mode. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 10 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 | « no previous file | src/objects.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 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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698