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

Unified Diff: runtime/vm/intermediate_language_x64.cc

Issue 11366076: Remove special meaning when usage counter reaches the threshold. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/intermediate_language_ia32.cc ('k') | runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language_x64.cc
===================================================================
--- runtime/vm/intermediate_language_x64.cc (revision 14538)
+++ runtime/vm/intermediate_language_x64.cc (working copy)
@@ -61,16 +61,14 @@
// Do not optimize if usage count must be reported.
__ cmpq(FieldAddress(temp, Function::usage_counter_offset()),
Immediate(FLAG_optimization_counter_threshold));
- Label not_yet_hot, already_optimized;
+ Label not_yet_hot;
__ j(LESS, &not_yet_hot, Assembler::kNearJump);
- __ j(GREATER, &already_optimized, Assembler::kNearJump);
__ pushq(result); // Preserve result.
__ pushq(temp); // Argument for runtime: function to optimize.
__ CallRuntime(kOptimizeInvokedFunctionRuntimeEntry);
__ popq(temp); // Remove argument.
__ popq(result); // Restore result.
__ Bind(&not_yet_hot);
- __ Bind(&already_optimized);
}
}
if (FLAG_trace_functions) {
« no previous file with comments | « runtime/vm/intermediate_language_ia32.cc ('k') | runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698