WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
116847
testRunner should be able to tell you if a function is DFG compiled
https://bugs.webkit.org/show_bug.cgi?id=116847
Summary
testRunner should be able to tell you if a function is DFG compiled
Filip Pizlo
Reported
2013-05-27 17:02:23 PDT
testRunner should be able to tell you if a function is DFG compiled
Attachments
Patch
(26.23 KB, patch)
2013-05-27 17:06 PDT
,
Filip Pizlo
no flags
Details
Formatted Diff
Diff
Patch
(26.33 KB, patch)
2013-05-28 09:31 PDT
,
Filip Pizlo
mhahnenberg
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Filip Pizlo
Comment 1
2013-05-27 17:06:48 PDT
Created
attachment 203017
[details]
Patch
Mark Hahnenberg
Comment 2
2013-05-27 18:42:07 PDT
Comment on
attachment 203017
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=203017&action=review
> Source/JavaScriptCore/API/JSCTestRunnerUtils.cpp:52 > + return 0;
Is this meant to return the JSValueRef of 0 or a null JSValueRef? I ask because everywhere else we return undefined.
Filip Pizlo
Comment 3
2013-05-27 18:48:22 PDT
(In reply to
comment #2
)
> (From update of
attachment 203017
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=203017&action=review
> > > Source/JavaScriptCore/API/JSCTestRunnerUtils.cpp:52 > > + return 0; > > Is this meant to return the JSValueRef of 0 or a null JSValueRef? I ask because everywhere else we return undefined.
It's meant to return 0. We return undefined if the user didn't pass a function. Here, the user passed a function. If it doesn't have a code block that just means that it hasn't been called yet so by definition it has had zero DFG compiles.
Mark Hahnenberg
Comment 4
2013-05-28 08:22:00 PDT
(In reply to
comment #3
)
> (In reply to
comment #2
) > > (From update of
attachment 203017
[details]
[details]) > > View in context:
https://bugs.webkit.org/attachment.cgi?id=203017&action=review
> > > > > Source/JavaScriptCore/API/JSCTestRunnerUtils.cpp:52 > > > + return 0; > > > > Is this meant to return the JSValueRef of 0 or a null JSValueRef? I ask because everywhere else we return undefined. > > It's meant to return 0. > > We return undefined if the user didn't pass a function. > > Here, the user passed a function. If it doesn't have a code block that just means that it hasn't been called yet so by definition it has had zero DFG compiles.
In that case, don't you need to make a JSValueRef that contains zero instead of returning a null JSValueRef?
Filip Pizlo
Comment 5
2013-05-28 09:27:34 PDT
(In reply to
comment #4
)
> (In reply to
comment #3
) > > (In reply to
comment #2
) > > > (From update of
attachment 203017
[details]
[details] [details]) > > > View in context:
https://bugs.webkit.org/attachment.cgi?id=203017&action=review
> > > > > > > Source/JavaScriptCore/API/JSCTestRunnerUtils.cpp:52 > > > > + return 0; > > > > > > Is this meant to return the JSValueRef of 0 or a null JSValueRef? I ask because everywhere else we return undefined. > > > > It's meant to return 0. > > > > We return undefined if the user didn't pass a function. > > > > Here, the user passed a function. If it doesn't have a code block that just means that it hasn't been called yet so by definition it has had zero DFG compiles. > > In that case, don't you need to make a JSValueRef that contains zero instead of returning a null JSValueRef?
Oh. Good point!
Filip Pizlo
Comment 6
2013-05-28 09:31:02 PDT
Created
attachment 203062
[details]
Patch
Mark Hahnenberg
Comment 7
2013-05-28 09:41:31 PDT
Comment on
attachment 203062
[details]
Patch r=me
Filip Pizlo
Comment 8
2013-05-28 10:09:18 PDT
Landed in
http://trac.webkit.org/changeset/150807
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug