Index: src/ic/handler-compiler.cc |
diff --git a/src/ic/handler-compiler.cc b/src/ic/handler-compiler.cc |
index 9b10045f80b51d8ca2e88bfceaf0c632b6fc1499..e34307ead81866f1095021b1cdf04b40f877777d 100644 |
--- a/src/ic/handler-compiler.cc |
+++ b/src/ic/handler-compiler.cc |
@@ -209,7 +209,7 @@ Handle<Code> NamedLoadHandlerCompiler::CompileLoadNonexistent( |
Handle<Code> NamedLoadHandlerCompiler::CompileLoadCallback( |
Handle<Name> name, Handle<AccessorInfo> callback, Handle<Code> slow_stub) { |
- if (FLAG_runtime_call_stats) { |
+ if (V8_UNLIKELY(FLAG_runtime_stats)) { |
GenerateTailCall(masm(), slow_stub); |
} |
Register reg = Frontend(name); |
@@ -221,7 +221,7 @@ Handle<Code> NamedLoadHandlerCompiler::CompileLoadCallback( |
Handle<Name> name, const CallOptimization& call_optimization, |
int accessor_index, Handle<Code> slow_stub) { |
DCHECK(call_optimization.is_simple_api_call()); |
- if (FLAG_runtime_call_stats) { |
+ if (V8_UNLIKELY(FLAG_runtime_stats)) { |
GenerateTailCall(masm(), slow_stub); |
} |
Register holder = Frontend(name); |
@@ -575,7 +575,7 @@ Handle<Code> NamedStoreHandlerCompiler::CompileStoreCallback( |
Handle<JSObject> object, Handle<Name> name, |
const CallOptimization& call_optimization, int accessor_index, |
Handle<Code> slow_stub) { |
- if (FLAG_runtime_call_stats) { |
+ if (V8_UNLIKELY(FLAG_runtime_stats)) { |
GenerateTailCall(masm(), slow_stub); |
} |
Register holder = Frontend(name); |