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

Unified Diff: test/js-perf-test/RegExp/base_ctor.js

Issue 2537253003: [js-perf-test] Move SubRegExp class definition outside loop (Closed)
Patch Set: Created 4 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/js-perf-test/RegExp/base_ctor.js
diff --git a/test/js-perf-test/RegExp/base_ctor.js b/test/js-perf-test/RegExp/base_ctor.js
index cacd43af59e45e7c2d3f159db5bca17d83c19dce..add4b6b6a3f8a4495b65b407a107654f2b878f60 100644
--- a/test/js-perf-test/RegExp/base_ctor.js
+++ b/test/js-perf-test/RegExp/base_ctor.js
@@ -26,11 +26,12 @@ function CtorWithRegExpPatternAndFlags() {
new RegExp(/[Cz]/, "guiym");
}
+class SubRegExp extends RegExp {
+ get source() { return "[Cz]"; }
+ get flags() { return "guiym"; }
+}
+
function CtorWithRegExpSubclassPattern() {
- class SubRegExp extends RegExp {
- get source() { return "[Cz]"; }
- get flags() { return "guiym"; }
- }
new RegExp(new SubRegExp(/[Cz]/));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698