WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 148337
Add a bunch of operators
https://bugs.webkit.org/show_bug.cgi?id=148337
Summary
Add a bunch of operators
Basile Clement
Reported
2015-08-21 15:48:35 PDT
jsc-tailcall: Add a bunch of operators
Attachments
Patch
(3.84 KB, patch)
2015-08-21 15:49 PDT
,
Basile Clement
saam
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Basile Clement
Comment 1
2015-08-21 15:49:02 PDT
Created
attachment 259675
[details]
Patch
Saam Barati
Comment 2
2015-08-21 20:28:51 PDT
Comment on
attachment 259675
[details]
Patch r=me
Basile Clement
Comment 3
2015-08-24 11:08:14 PDT
Committed
r188870
<
http://trac.webkit.org/changeset/188870
>.
Basile Clement
Comment 4
2015-08-31 18:17:59 PDT
(In reply to
comment #3
)
> Committed
r188870
<
http://trac.webkit.org/changeset/188870
>.
This was on the jsc-tailcall branch.
Basile Clement
Comment 5
2015-09-04 09:39:37 PDT
Committed
r189351
: <
http://trac.webkit.org/changeset/189351
>
Darin Adler
Comment 6
2015-09-04 09:58:30 PDT
Comment on
attachment 259675
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=259675&action=review
> Source/JavaScriptCore/jit/GPRInfo.h:71 > + bool operator==(JSValueRegs other) { return m_gpr == other.m_gpr; } > + bool operator!=(JSValueRegs other) { return !(*this == other); }
Is more efficient code generated if we make the argument type be const JSValueRegs&?
> Source/JavaScriptCore/jit/GPRInfo.h:181 > + bool operator==(JSValueRegs other) const
Same question.
> Source/JavaScriptCore/jit/GPRInfo.h:186 > + bool operator!=(JSValueRegs other) const { return !(*this == other); }
Same question.
Basile Clement
Comment 7
2015-09-04 10:16:55 PDT
(In reply to
comment #6
)
> Comment on
attachment 259675
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=259675&action=review
> > > Source/JavaScriptCore/jit/GPRInfo.h:71 > > + bool operator==(JSValueRegs other) { return m_gpr == other.m_gpr; } > > + bool operator!=(JSValueRegs other) { return !(*this == other); } > > Is more efficient code generated if we make the argument type be const > JSValueRegs&? > > > Source/JavaScriptCore/jit/GPRInfo.h:181 > > + bool operator==(JSValueRegs other) const > > Same question. > > > Source/JavaScriptCore/jit/GPRInfo.h:186 > > + bool operator!=(JSValueRegs other) const { return !(*this == other); } > > Same question.
JSValueRegs is an integer on 64 bit platforms, and two int8_t (thus packed as a single integer) on 32 bit platforms. So, passing by value is better here. In practice, it probably doesn't matter at all since those functions will usually be inlined.
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