Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index 07d718c1e104bc931e206cb403d8540fc3335c4d..6790a828244ab081c4eb186023355ae2c98fa1b2 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -8893,7 +8893,7 @@ bool HOptimizedGraphBuilder::TryInlineBuiltinMethodCall( |
bool HOptimizedGraphBuilder::TryInlineApiFunctionCall(Call* expr, |
HValue* receiver) { |
- if (FLAG_runtime_call_stats) return false; |
+ if (V8_UNLIKELY(FLAG_runtime_stats)) return false; |
Handle<JSFunction> function = expr->target(); |
int argc = expr->arguments()->length(); |
SmallMapList receiver_maps; |
@@ -8906,7 +8906,7 @@ bool HOptimizedGraphBuilder::TryInlineApiMethodCall( |
Call* expr, |
HValue* receiver, |
SmallMapList* receiver_maps) { |
- if (FLAG_runtime_call_stats) return false; |
+ if (V8_UNLIKELY(FLAG_runtime_stats)) return false; |
Handle<JSFunction> function = expr->target(); |
int argc = expr->arguments()->length(); |
return TryInlineApiCall(function, receiver, receiver_maps, argc, expr->id(), |
@@ -8916,7 +8916,7 @@ bool HOptimizedGraphBuilder::TryInlineApiMethodCall( |
bool HOptimizedGraphBuilder::TryInlineApiGetter(Handle<Object> function, |
Handle<Map> receiver_map, |
BailoutId ast_id) { |
- if (FLAG_runtime_call_stats) return false; |
+ if (V8_UNLIKELY(FLAG_runtime_stats)) return false; |
SmallMapList receiver_maps(1, zone()); |
receiver_maps.Add(receiver_map, zone()); |
return TryInlineApiCall(function, |
@@ -8940,7 +8940,7 @@ bool HOptimizedGraphBuilder::TryInlineApiCall( |
Handle<Object> function, HValue* receiver, SmallMapList* receiver_maps, |
int argc, BailoutId ast_id, ApiCallType call_type, |
TailCallMode syntactic_tail_call_mode) { |
- if (FLAG_runtime_call_stats) return false; |
+ if (V8_UNLIKELY(FLAG_runtime_stats)) return false; |
if (function->IsJSFunction() && |
Handle<JSFunction>::cast(function)->context()->native_context() != |
top_info()->closure()->context()->native_context()) { |