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

Side by Side Diff: src/full-codegen.cc

Issue 23480031: Enable preaging of code objects when --optimize-for-size. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: bool -> enum Created 7 years, 1 month 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/frames.h ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 Handle<Code> code = CodeGenerator::MakeCodeEpilogue(&masm, flags, info); 338 Handle<Code> code = CodeGenerator::MakeCodeEpilogue(&masm, flags, info);
339 code->set_optimizable(info->IsOptimizable() && 339 code->set_optimizable(info->IsOptimizable() &&
340 !info->function()->dont_optimize() && 340 !info->function()->dont_optimize() &&
341 info->function()->scope()->AllowsLazyCompilation()); 341 info->function()->scope()->AllowsLazyCompilation());
342 cgen.PopulateDeoptimizationData(code); 342 cgen.PopulateDeoptimizationData(code);
343 cgen.PopulateTypeFeedbackInfo(code); 343 cgen.PopulateTypeFeedbackInfo(code);
344 cgen.PopulateTypeFeedbackCells(code); 344 cgen.PopulateTypeFeedbackCells(code);
345 code->set_has_deoptimization_support(info->HasDeoptimizationSupport()); 345 code->set_has_deoptimization_support(info->HasDeoptimizationSupport());
346 code->set_handler_table(*cgen.handler_table()); 346 code->set_handler_table(*cgen.handler_table());
347 #ifdef ENABLE_DEBUGGER_SUPPORT 347 #ifdef ENABLE_DEBUGGER_SUPPORT
348 code->set_has_debug_break_slots(
349 info->isolate()->debugger()->IsDebuggerActive());
350 code->set_compiled_optimizable(info->IsOptimizable()); 348 code->set_compiled_optimizable(info->IsOptimizable());
351 #endif // ENABLE_DEBUGGER_SUPPORT 349 #endif // ENABLE_DEBUGGER_SUPPORT
352 code->set_allow_osr_at_loop_nesting_level(0); 350 code->set_allow_osr_at_loop_nesting_level(0);
353 code->set_profiler_ticks(0); 351 code->set_profiler_ticks(0);
354 code->set_back_edge_table_offset(table_offset); 352 code->set_back_edge_table_offset(table_offset);
355 code->set_back_edges_patched_for_osr(false); 353 code->set_back_edges_patched_for_osr(false);
356 CodeGenerator::PrintCode(code, info); 354 CodeGenerator::PrintCode(code, info);
357 info->SetCode(code); 355 info->SetCode(code);
358 #ifdef ENABLE_GDB_JIT_INTERFACE 356 #ifdef ENABLE_GDB_JIT_INTERFACE
359 if (FLAG_gdbjit) { 357 if (FLAG_gdbjit) {
(...skipping 1376 matching lines...) Expand 10 before | Expand all | Expand 10 after
1736 } 1734 }
1737 return true; 1735 return true;
1738 } 1736 }
1739 #endif // DEBUG 1737 #endif // DEBUG
1740 1738
1741 1739
1742 #undef __ 1740 #undef __
1743 1741
1744 1742
1745 } } // namespace v8::internal 1743 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/frames.h ('k') | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698