Index: src/ic/ic-compiler.cc |
diff --git a/src/ic/ic-compiler.cc b/src/ic/ic-compiler.cc |
index 3c2619d0e6dd45fc0a3c6d7ef25b1a7d8d8f4873..2001b6ef40ba0c3b650763e4e461607155d7fe48 100644 |
--- a/src/ic/ic-compiler.cc |
+++ b/src/ic/ic-compiler.cc |
@@ -26,17 +26,22 @@ Handle<Code> PropertyICCompiler::ComputeKeyedLoadMonomorphicHandler( |
*receiver_map == isolate->get_initial_js_array_map(elements_kind); |
Handle<Code> stub; |
if (receiver_map->has_indexed_interceptor()) { |
+ TRACE_HANDLER_STATS(isolate, KeyedLoadIC_LoadIndexedInterceptorStub); |
stub = LoadIndexedInterceptorStub(isolate).GetCode(); |
} else if (receiver_map->IsStringMap()) { |
+ TRACE_HANDLER_STATS(isolate, KeyedLoadIC_LoadIndexedStringStub); |
stub = LoadIndexedStringStub(isolate).GetCode(); |
} else if (receiver_map->has_sloppy_arguments_elements()) { |
+ TRACE_HANDLER_STATS(isolate, KeyedLoadIC_KeyedLoadSloppyArgumentsStub); |
stub = KeyedLoadSloppyArgumentsStub(isolate).GetCode(); |
} else if (receiver_map->has_fast_elements() || |
receiver_map->has_fixed_typed_array_elements()) { |
+ TRACE_HANDLER_STATS(isolate, KeyedLoadIC_LoadFastElementStub); |
stub = LoadFastElementStub(isolate, is_js_array, elements_kind, |
convert_hole_to_undefined).GetCode(); |
} else { |
DCHECK(receiver_map->has_dictionary_elements()); |
+ TRACE_HANDLER_STATS(isolate, KeyedLoadIC_LoadDictionaryElementStub); |
stub = LoadDictionaryElementStub(isolate, LoadICState(extra_ic_state)) |
.GetCode(); |
} |
@@ -126,12 +131,15 @@ Handle<Code> PropertyICCompiler::CompileKeyedStoreMonomorphicHandler( |
bool is_jsarray = receiver_map->instance_type() == JS_ARRAY_TYPE; |
Handle<Code> stub; |
if (receiver_map->has_sloppy_arguments_elements()) { |
+ TRACE_HANDLER_STATS(isolate(), KeyedStoreIC_KeyedStoreSloppyArgumentsStub); |
stub = KeyedStoreSloppyArgumentsStub(isolate(), store_mode).GetCode(); |
} else if (receiver_map->has_fast_elements() || |
receiver_map->has_fixed_typed_array_elements()) { |
+ TRACE_HANDLER_STATS(isolate(), KeyedStoreIC_StoreFastElementStub); |
stub = StoreFastElementStub(isolate(), is_jsarray, elements_kind, |
store_mode).GetCode(); |
} else { |
+ TRACE_HANDLER_STATS(isolate(), KeyedStoreIC_StoreElementStub); |
stub = StoreElementStub(isolate(), elements_kind, store_mode).GetCode(); |
} |
return stub; |