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

Issue 1813003002: S390: InstanceOfStub incorrectly interprets the hole as a prototype. (Closed)

Created:
4 years, 9 months ago by john.yan
Modified:
4 years, 9 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

S390: InstanceOfStub incorrectly interprets the hole as a prototype. Port 2aa070be4fd2960df98905b254f12ed801ef26cd Original commit message: Repair this to match what the runtime correctly does, by first checking if the function is a constructor before we access the prototype. R=mvstanton@chromium.org, joransiu@ca.ibm.com, michael_dawson@ca.ibm.com, mbrandy@us.ibm.com BUG= Committed: https://crrev.com/71d525a3b836d88bcff6d6414520228d6b3ece3d Cr-Commit-Position: refs/heads/master@{#34872}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -1 line) Patch
M src/s390/code-stubs-s390.cc View 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 14 (4 generated)
john.yan
PTAL
4 years, 9 months ago (2016-03-17 18:28:14 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1813003002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1813003002/1
4 years, 9 months ago (2016-03-17 18:28:27 UTC) #3
MTBrandyberry
lgtm
4 years, 9 months ago (2016-03-17 18:42:13 UTC) #4
JoranSiu
On 2016/03/17 18:28:27, commit-bot: I haz the power wrote: > Dry run: CQ is trying ...
4 years, 9 months ago (2016-03-17 18:44:57 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-17 18:50:30 UTC) #7
john.yan
On 2016/03/17 18:44:57, JoranSiu wrote: > On 2016/03/17 18:28:27, commit-bot: I haz the power wrote: ...
4 years, 9 months ago (2016-03-17 18:56:27 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1813003002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1813003002/1
4 years, 9 months ago (2016-03-17 18:56:36 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 9 months ago (2016-03-17 18:58:35 UTC) #11
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/71d525a3b836d88bcff6d6414520228d6b3ece3d Cr-Commit-Position: refs/heads/master@{#34872}
4 years, 9 months ago (2016-03-17 19:00:05 UTC) #13
JoranSiu
4 years, 9 months ago (2016-03-17 19:16:56 UTC) #14
Message was sent while issue was closed.
On 2016/03/17 18:56:27, john.yan wrote:
> On 2016/03/17 18:44:57, JoranSiu wrote:
> > On 2016/03/17 18:28:27, commit-bot: I haz the power wrote:
> > > Dry run: CQ is trying da patch. Follow status at
> > >  https://chromium-cq-status.appspot.com/patch-status/1813003002/1
> > > View timeline at
> > >  https://chromium-cq-status.appspot.com/patch-timeline/1813003002/1
> > 
> > Is it possible to use the TestUnderMask instruction here, instead of having
to
> > load the byte into scratch register.  Also, we can probably add kNear on the
> > branch to the slow_case label.
> 
> Nice suggestion! but the scratch reg is used afterwards for Object type
> comparison, so tm won't be better here.

Hmm, do you mean this line:
"CompareObjectType(function_prototype, scratch, scratch, MAP_TYPE);"

If you look at the implementation, both the 2nd and 3rd parm with 'scratch', are
clobbered.  scratch reg will contain the Map after the call.  I think we should
still add kNear to the branch.

Powered by Google App Engine
This is Rietveld 408576698