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

Unified Diff: runtime/vm/flow_graph_compiler_x64.cc

Issue 328893002: Begins removing intptr_t from raw object fields. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/flow_graph_compiler_x64.cc
===================================================================
--- runtime/vm/flow_graph_compiler_x64.cc (revision 37230)
+++ runtime/vm/flow_graph_compiler_x64.cc (working copy)
@@ -1005,16 +1005,14 @@
if (is_optimizing()) {
// Reoptimization of an optimized function is triggered by counting in
// IC stubs, but not at the entry of the function.
- __ CompareImmediate(
+ __ cmpl(
FieldAddress(function_reg, Function::usage_counter_offset()),
- Immediate(FLAG_reoptimization_counter_threshold),
- new_pp);
+ Immediate(FLAG_reoptimization_counter_threshold));
} else {
- __ incq(FieldAddress(function_reg, Function::usage_counter_offset()));
- __ CompareImmediate(
+ __ incl(FieldAddress(function_reg, Function::usage_counter_offset()));
+ __ cmpl(
FieldAddress(function_reg, Function::usage_counter_offset()),
- Immediate(FLAG_optimization_counter_threshold),
- new_pp);
+ Immediate(FLAG_optimization_counter_threshold));
}
ASSERT(function_reg == RDI);
__ J(GREATER_EQUAL, &StubCode::OptimizeFunctionLabel(), R13);

Powered by Google App Engine
This is Rietveld 408576698