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

Unified Diff: src/runtime/runtime-internal.cc

Issue 1543723002: Add web compat workarounds for ES2015 RegExp semantics (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix test expectations for new workaround Created 5 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
Index: src/runtime/runtime-internal.cc
diff --git a/src/runtime/runtime-internal.cc b/src/runtime/runtime-internal.cc
index 4df0c1b45a17b6c6e836365cd3d116e5a60041ec..ee664645d4b9e368676cfe9be2fd69bffcbb69b8 100644
--- a/src/runtime/runtime-internal.cc
+++ b/src/runtime/runtime-internal.cc
@@ -460,5 +460,14 @@ RUNTIME_FUNCTION(Runtime_CreateListFromArrayLike) {
return *result;
}
+
+RUNTIME_FUNCTION(Runtime_IncrementUseCounter) {
+ HandleScope scope(isolate);
+ DCHECK_EQ(1, args.length());
+ CONVERT_SMI_ARG_CHECKED(counter, 0);
+ isolate->CountUsage(static_cast<v8::Isolate::UseCounterFeature>(counter));
+ return isolate->heap()->undefined_value();
+}
+
} // namespace internal
} // namespace v8
« src/js/regexp.js ('K') | « src/runtime/runtime.h ('k') | test/cctest/test-regexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698