| Index: test/cctest/test-heap-profiler.cc
|
| diff --git a/test/cctest/test-heap-profiler.cc b/test/cctest/test-heap-profiler.cc
|
| index 909aba0d74216deb77fa732b9a8c37f4a915db53..be074f8ba8162ea80ba19c84beed2124f013114f 100644
|
| --- a/test/cctest/test-heap-profiler.cc
|
| +++ b/test/cctest/test-heap-profiler.cc
|
| @@ -2498,22 +2498,23 @@ TEST(TrackHeapAllocations) {
|
|
|
|
|
| static const char* inline_heap_allocation_source =
|
| -"function f_0(x) {\n"
|
| -" return f_1(x+1);\n"
|
| -"}\n"
|
| -"%NeverOptimizeFunction(f_0);\n"
|
| -"function f_1(x) {\n"
|
| -" return new f_2(x+1);\n"
|
| -"}\n"
|
| -"function f_2(x) {\n"
|
| -" this.foo = x;\n"
|
| -"}\n"
|
| -"var instances = [];\n"
|
| -"function start() {\n"
|
| -" instances.push(f_0(0));\n"
|
| -"}\n"
|
| -"\n"
|
| -"for (var i = 0; i < 100; i++) start();\n";
|
| + "function f_0(x) {\n"
|
| + " return f_1(x+1);\n"
|
| + "}\n"
|
| + "%NeverOptimizeFunction(f_0);\n"
|
| + "function f_1(x) {\n"
|
| + " return new f_2(x+1);\n"
|
| + "}\n"
|
| + "%NeverOptimizeFunction(f_1);\n"
|
| + "function f_2(x) {\n"
|
| + " this.foo = x;\n"
|
| + "}\n"
|
| + "var instances = [];\n"
|
| + "function start() {\n"
|
| + " instances.push(f_0(0));\n"
|
| + "}\n"
|
| + "\n"
|
| + "for (var i = 0; i < 100; i++) start();\n";
|
|
|
|
|
| TEST(TrackBumpPointerAllocations) {
|
|
|