Index: src/compiler/js-intrinsic-lowering.cc |
diff --git a/src/compiler/js-intrinsic-lowering.cc b/src/compiler/js-intrinsic-lowering.cc |
index 2c86ab78c0a6f9c9b770abdf52d78b035fd7c8bf..b83c39bd9a2b8767f832fbdb9634e19d5716cf52 100644 |
--- a/src/compiler/js-intrinsic-lowering.cc |
+++ b/src/compiler/js-intrinsic-lowering.cc |
@@ -179,11 +179,12 @@ Reduction JSIntrinsicLowering::ReduceHeapObjectGetMap(Node* node) { |
Reduction JSIntrinsicLowering::ReduceIncrementStatsCounter(Node* node) { |
if (!FLAG_native_code_counters) return ChangeToUndefined(node); |
- HeapObjectMatcher<String> m(NodeProperties::GetValueInput(node, 0)); |
+ HeapObjectMatcher m(NodeProperties::GetValueInput(node, 0)); |
if (!m.HasValue() || !m.Value().handle()->IsString()) { |
return ChangeToUndefined(node); |
} |
- SmartArrayPointer<char> name = m.Value().handle()->ToCString(); |
+ SmartArrayPointer<char> name = |
+ Handle<String>::cast(m.Value().handle())->ToCString(); |
StatsCounter counter(jsgraph()->isolate(), name.get()); |
if (!counter.Enabled()) return ChangeToUndefined(node); |