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

Issue 2932263002: [cleanup] Remove instanceof cache. (Closed)

Created:
3 years, 6 months ago by Benedikt Meurer
Modified:
3 years, 6 months ago
Reviewers:
jgruber
CC:
v8-reviews_googlegroups.com, Hannes Payer (out of office)
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

[cleanup] Remove instanceof cache. The instanceof cache was initially introduced to speed up x instanceof y where y is always the same constructor and x is always an object with the same map. With the introduction of ES2015's @@hasInstance and the Function.prototype[Symbol.hasInstance] handler (which calls into OrdinaryHasInstance), this already became quite useless. It doesn't seem to provide any real value (not sure it ever did for real), but it's getting in the way of some useful refactorings (i.e. sharing logic between OrdinaryHasInstance and Object.prototype.isPrototypeOf for example). So this CL completely removes the leftover bits of the instanceof cache, including the GC and SetPrototype logic. BUG=v8:6479, v8:6474 R=jgruber@chromium.org TBR=ulan@chromium.org Review-Url: https://codereview.chromium.org/2932263002 Cr-Commit-Position: refs/heads/master@{#45835} Committed: https://chromium.googlesource.com/v8/v8/+/f850b32d5c5d0391bcc166f4747ab35be75b6952

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -58 lines) Patch
M src/code-stub-assembler.cc View 3 chunks +0 lines, -26 lines 0 comments Download
M src/heap/heap.h View 3 chunks +0 lines, -10 lines 0 comments Download
M src/heap/heap.cc View 3 chunks +0 lines, -9 lines 0 comments Download
M src/heap/heap-inl.h View 1 chunk +0 lines, -9 lines 0 comments Download
M src/heap/incremental-marking.cc View 1 chunk +0 lines, -1 line 0 comments Download
M src/objects.cc View 3 chunks +0 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 13 (8 generated)
Benedikt Meurer
3 years, 6 months ago (2017-06-11 17:03:04 UTC) #1
Benedikt Meurer
Hey Jakob, A bit late for the cleanup friday, but something that I've wanted to ...
3 years, 6 months ago (2017-06-11 17:04:31 UTC) #5
jgruber
lgtm, thanks
3 years, 6 months ago (2017-06-12 06:38:56 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2932263002/1
3 years, 6 months ago (2017-06-12 06:40:16 UTC) #10
commit-bot: I haz the power
3 years, 6 months ago (2017-06-12 06:42:17 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/v8/v8/+/f850b32d5c5d0391bcc166f4747ab35be75...

Powered by Google App Engine
This is Rietveld 408576698