WebKit Bugzilla
Attachment 338991 Details for
Bug 185043
: Expose "$262.agent.monotonicNow()" for use in testing Atomic operation timeouts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
$262.agent.monotonicNow()
0001-Expose-262.agent.monotonicNow-for-use-in-testing-Ato.patch (text/plain), 2.39 KB, created by
Rick Waldron
on 2018-04-27 08:36:39 PDT
(
hide
)
Description:
$262.agent.monotonicNow()
Filename:
MIME Type:
Creator:
Rick Waldron
Created:
2018-04-27 08:36:39 PDT
Size:
2.39 KB
patch
obsolete
>From da033098c1bba98a2eebd147084de02429e89e32 Mon Sep 17 00:00:00 2001 >From: Rick Waldron <waldron.rick@gmail.com> >Date: Fri, 27 Apr 2018 11:34:33 -0400 >Subject: [PATCH] Expose "$262.agent.monotonicNow()" for use in testing Atomic > operation timeouts > >Backed by Monotonic::now() >--- > Source/JavaScriptCore/ChangeLog | 11 +++++++++++ > Source/JavaScriptCore/jsc.cpp | 9 ++++++++- > 2 files changed, 19 insertions(+), 1 deletion(-) > >diff --git a/Source/JavaScriptCore/ChangeLog b/Source/JavaScriptCore/ChangeLog >index 7582352686..fa200d3519 100644 >--- a/Source/JavaScriptCore/ChangeLog >+++ b/Source/JavaScriptCore/ChangeLog >@@ -1,3 +1,14 @@ >+2018-04-27 Rick Waldron <waldron.rick@gmail.com> >+ >+ Expose "$262.agent.monotonicNow()" for use in testing Atomic operation timeouts >+ https://bugs.webkit.org/show_bug.cgi?id=185043 >+ >+ Reviewed by Filip Pizlo. >+ >+ * jsc.cpp: >+ (GlobalObject::finishCreation): >+ (functionDollarAgentMonotonicNow): >+ > 2018-04-26 Dominik Infuehr <dinfuehr@igalia.com> > > [MIPS] Fix branch offsets in branchNeg32 >diff --git a/Source/JavaScriptCore/jsc.cpp b/Source/JavaScriptCore/jsc.cpp >index 4a73e87e96..7913ca32af 100644 >--- a/Source/JavaScriptCore/jsc.cpp >+++ b/Source/JavaScriptCore/jsc.cpp >@@ -82,6 +82,7 @@ > #include <type_traits> > #include <wtf/CommaPrinter.h> > #include <wtf/MainThread.h> >+#include <wtf/MonotonicTime.h> > #include <wtf/NeverDestroyed.h> > #include <wtf/StringPrintStream.h> > #include <wtf/WallTime.h> >@@ -595,7 +596,8 @@ protected: > addFunction(vm, agent, "broadcast", functionDollarAgentBroadcast, 1); > addFunction(vm, agent, "getReport", functionDollarAgentGetReport, 0); > addFunction(vm, agent, "leaving", functionDollarAgentLeaving, 0); >- >+ addFunction(vm, agent, "monotonicNow", functionDollarAgentMonotonicNow, 0); >+ > addFunction(vm, "waitForReport", functionWaitForReport, 0); > > addFunction(vm, "heapCapacity", functionHeapCapacity, 0); >@@ -1744,6 +1746,11 @@ EncodedJSValue JSC_HOST_CALL functionDollarAgentLeaving(ExecState*) > return JSValue::encode(jsUndefined()); > } > >+EncodedJSValue JSC_HOST_CALL functionDollarAgentMonotonicNow(ExecState*) >+{ >+ return JSValue::encode(jsNumber(MonotonicTime::now().secondsSinceEpoch().milliseconds())); >+} >+ > EncodedJSValue JSC_HOST_CALL functionWaitForReport(ExecState* exec) > { > VM& vm = exec->vm(); >-- >2.15.1 (Apple Git-101) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 185043
:
338943
|
338988
|
338989
|
338991
|
339108
|
339112