Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r241661 - Unreviewed, skip the test on platforms without sampli…
…ng profiler * stress/sampling-profiler-stack-trace-with-double-quote-in-function-name.js: (platformSupportsSamplingProfiler.foo): (platformSupportsSamplingProfiler.test): (platformSupportsSamplingProfiler): (foo): Deleted. (test): Deleted.
- Loading branch information
1 parent
a72b2e8
commit ab3e9d8
Showing
2 changed files
with
28 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 17 additions & 16 deletions
33
JSTests/stress/sampling-profiler-stack-trace-with-double-quote-in-function-name.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
//@ runDefault("--useConcurrentJIT=false") | ||
if (platformSupportsSamplingProfiler()) { | ||
function foo() { | ||
let obj = {}; | ||
for (let i = 0; i < 10; ++i) | ||
obj[i + 'p'] = i; | ||
} | ||
noInline(foo); | ||
|
||
function foo() { | ||
let obj = {}; | ||
for (let i = 0; i < 10; ++i) | ||
obj[i + 'p'] = i; | ||
} | ||
noInline(foo); | ||
|
||
function test() { | ||
for (let i = 0; i < 1000; ++i) { | ||
foo(); | ||
let stacktraces = samplingProfilerStackTraces(); | ||
for (let stackTrace of stacktraces) { } | ||
function test() { | ||
for (let i = 0; i < 1000; ++i) { | ||
foo(); | ||
let stacktraces = samplingProfilerStackTraces(); | ||
for (let stackTrace of stacktraces) { } | ||
} | ||
} | ||
} | ||
|
||
startSamplingProfiler(); | ||
foo.displayName = '"'; | ||
test(); | ||
startSamplingProfiler(); | ||
foo.displayName = '"'; | ||
test(); | ||
} |