Index: test/cctest/test-strings.cc |
diff --git a/test/cctest/test-strings.cc b/test/cctest/test-strings.cc |
index 2889172f5a625e9ccfea54cf72a113e4d2dc6633..e0ff32f6d8e524db94a1654c36ea83a2807bf706 100644 |
--- a/test/cctest/test-strings.cc |
+++ b/test/cctest/test-strings.cc |
@@ -345,7 +345,7 @@ void AccumulateStats(ConsString* cons_string, ConsStringStats* stats) { |
void AccumulateStats(Handle<String> cons_string, ConsStringStats* stats) { |
- AssertNoAllocation no_alloc; |
+ DisallowHeapAllocation no_allocation; |
if (cons_string->IsConsString()) { |
return AccumulateStats(ConsString::cast(*cons_string), stats); |
} |
@@ -670,7 +670,7 @@ void TestStringCharacterStream(BuildString build, int test_cases) { |
Handle<String> cons_string = build(i, &data); |
ConsStringStats cons_string_stats; |
AccumulateStats(cons_string, &cons_string_stats); |
- AssertNoAllocation no_alloc; |
+ DisallowHeapAllocation no_allocation; |
PrintStats(data); |
// Full verify of cons string. |
cons_string_stats.VerifyEqual(flat_string_stats); |