Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Unified Diff: test/cctest/test-heap-profiler.cc

Issue 1407533004: [turbofan] Fix various issues with --turbo-inlining enabled. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comment. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/cctest/test-deoptimization.cc ('k') | test/cctest/test-log-stack-tracer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « test/cctest/test-deoptimization.cc ('k') | test/cctest/test-log-stack-tracer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698