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

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

Issue 9866030: Move profiler_ticks to Code object, don't walk the stack when patching ICs (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments Created 8 years, 9 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/heap.cc » ('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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 cgen.PopulateTypeFeedbackInfo(code); 320 cgen.PopulateTypeFeedbackInfo(code);
321 cgen.PopulateTypeFeedbackCells(code); 321 cgen.PopulateTypeFeedbackCells(code);
322 code->set_has_deoptimization_support(info->HasDeoptimizationSupport()); 322 code->set_has_deoptimization_support(info->HasDeoptimizationSupport());
323 code->set_handler_table(*cgen.handler_table()); 323 code->set_handler_table(*cgen.handler_table());
324 #ifdef ENABLE_DEBUGGER_SUPPORT 324 #ifdef ENABLE_DEBUGGER_SUPPORT
325 code->set_has_debug_break_slots( 325 code->set_has_debug_break_slots(
326 info->isolate()->debugger()->IsDebuggerActive()); 326 info->isolate()->debugger()->IsDebuggerActive());
327 code->set_compiled_optimizable(info->IsOptimizable()); 327 code->set_compiled_optimizable(info->IsOptimizable());
328 #endif // ENABLE_DEBUGGER_SUPPORT 328 #endif // ENABLE_DEBUGGER_SUPPORT
329 code->set_allow_osr_at_loop_nesting_level(0); 329 code->set_allow_osr_at_loop_nesting_level(0);
330 code->set_profiler_ticks(0);
330 code->set_stack_check_table_offset(table_offset); 331 code->set_stack_check_table_offset(table_offset);
331 CodeGenerator::PrintCode(code, info); 332 CodeGenerator::PrintCode(code, info);
332 info->SetCode(code); // May be an empty handle. 333 info->SetCode(code); // May be an empty handle.
333 if (!code.is_null()) { 334 if (!code.is_null()) {
334 isolate->runtime_profiler()->NotifyCodeGenerated(code->instruction_size()); 335 isolate->runtime_profiler()->NotifyCodeGenerated(code->instruction_size());
335 } 336 }
336 #ifdef ENABLE_GDB_JIT_INTERFACE 337 #ifdef ENABLE_GDB_JIT_INTERFACE
337 if (FLAG_gdbjit && !code.is_null()) { 338 if (FLAG_gdbjit && !code.is_null()) {
338 GDBJITLineInfo* lineinfo = 339 GDBJITLineInfo* lineinfo =
339 masm.positions_recorder()->DetachGDBJITLineInfo(); 340 masm.positions_recorder()->DetachGDBJITLineInfo();
(...skipping 1082 matching lines...) Expand 10 before | Expand all | Expand 10 after
1422 } 1423 }
1423 1424
1424 return false; 1425 return false;
1425 } 1426 }
1426 1427
1427 1428
1428 #undef __ 1429 #undef __
1429 1430
1430 1431
1431 } } // namespace v8::internal 1432 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698