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

Side by Side Diff: src/compiler.cc

Issue 2632003: Flushing of code from functions that we expect not to use again.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 6 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/compilation-cache.cc ('k') | src/heap.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 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 function_info->set_function_token_position(lit->function_token_position()); 594 function_info->set_function_token_position(lit->function_token_position());
595 function_info->set_start_position(lit->start_position()); 595 function_info->set_start_position(lit->start_position());
596 function_info->set_end_position(lit->end_position()); 596 function_info->set_end_position(lit->end_position());
597 function_info->set_is_expression(lit->is_expression()); 597 function_info->set_is_expression(lit->is_expression());
598 function_info->set_is_toplevel(is_toplevel); 598 function_info->set_is_toplevel(is_toplevel);
599 function_info->set_inferred_name(*lit->inferred_name()); 599 function_info->set_inferred_name(*lit->inferred_name());
600 function_info->SetThisPropertyAssignmentsInfo( 600 function_info->SetThisPropertyAssignmentsInfo(
601 lit->has_only_simple_this_property_assignments(), 601 lit->has_only_simple_this_property_assignments(),
602 *lit->this_property_assignments()); 602 *lit->this_property_assignments());
603 function_info->set_try_full_codegen(lit->try_full_codegen()); 603 function_info->set_try_full_codegen(lit->try_full_codegen());
604 function_info->set_allows_lazy_compilation(lit->AllowsLazyCompilation());
604 } 605 }
605 606
606 607
607 void Compiler::RecordFunctionCompilation(Logger::LogEventsAndTags tag, 608 void Compiler::RecordFunctionCompilation(Logger::LogEventsAndTags tag,
608 Handle<String> name, 609 Handle<String> name,
609 Handle<String> inferred_name, 610 Handle<String> inferred_name,
610 int start_position, 611 int start_position,
611 Handle<Script> script, 612 Handle<Script> script,
612 Handle<Code> code) { 613 Handle<Code> code) {
613 // Log the code generation. If source information is available 614 // Log the code generation. If source information is available
(...skipping 18 matching lines...) Expand all
632 PROFILE(CodeCreateEvent(Logger::ToNativeByScript(tag, *script), 633 PROFILE(CodeCreateEvent(Logger::ToNativeByScript(tag, *script),
633 *code, *func_name)); 634 *code, *func_name));
634 OPROFILE(CreateNativeCodeRegion(*func_name, 635 OPROFILE(CreateNativeCodeRegion(*func_name,
635 code->instruction_start(), 636 code->instruction_start(),
636 code->instruction_size())); 637 code->instruction_size()));
637 } 638 }
638 } 639 }
639 } 640 }
640 641
641 } } // namespace v8::internal 642 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/compilation-cache.cc ('k') | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698