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

Issue 2039093005: Revert of [builtins] Properly optimize TypedArray/DataView accessors. (Closed)

Created:
4 years, 6 months ago by Michael Achenbach
Modified:
4 years, 6 months ago
Reviewers:
Benedikt Meurer, Yang
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

Revert of [builtins] Properly optimize TypedArray/DataView accessors. (patchset #3 id:40001 of https://codereview.chromium.org/2042013003/ ) Reason for revert: Blink: https://build.chromium.org/p/client.v8.fyi/builders/V8-Blink%20Linux%2064/builds/7296 Original issue's description: > [builtins] Properly optimize TypedArray/DataView accessors. > > The following getters were moved to the TypedArray/DataView prototype > chain with ES2015, and hence need different treatment now: > > - DataView.prototype.buffer > - DataView.prototype.byteLength > - DataView.prototype.byteOffset > - TypedArray.prototype.buffer > - TypedArray.prototype.byteLength > - TypedArray.prototype.byteOffset > - TypedArray.prototype.length > > Instead of having special magic on the LoadIC in the IC system and the > optimizing compilers, as we used to do before (and which we got rid of > already), we just treat those as normal accessors and make them > recognizable via the BuiltinFunctionId mechanism. This allows us to > remove some of the additional magic from the IC subsystem, and just > extend the BuiltinFunctionId mechanism in Crankshaft slightly to cover > these cases too (TurboFan doesn't yet support accessors, but that will > be fixed soonish anyways). > > This addresses most of the 15-20% regression we saw on the Octane > GameBoy emulator benchmark. > > BUG=chromium:579905, chromium:593634, v8:4085, v8:5073 > R=yangguo@chromium.org > > Committed: https://crrev.com/1ef737026565ea2becc84f30cfd432e581d50c6b > Cr-Commit-Position: refs/heads/master@{#36782} TBR=yangguo@chromium.org,bmeurer@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=chromium:579905, chromium:593634, v8:4085, v8:5073 Committed: https://crrev.com/d3a43e47dd740c9010b39e6e765f624696ce3b56 Cr-Commit-Position: refs/heads/master@{#36783}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+222 lines, -356 lines) Patch
M src/bootstrapper.cc View 4 chunks +5 lines, -88 lines 0 comments Download
M src/builtins.h View 4 chunks +18 lines, -36 lines 0 comments Download
M src/builtins.cc View 1 chunk +0 lines, -113 lines 0 comments Download
M src/code-stubs.h View 2 chunks +26 lines, -0 lines 0 comments Download
M src/code-stubs-hydrogen.cc View 1 chunk +12 lines, -0 lines 0 comments Download
M src/compiler/access-info.h View 5 chunks +14 lines, -1 line 0 comments Download
M src/compiler/access-info.cc View 4 chunks +7 lines, -5 lines 0 comments Download
M src/compiler/js-native-context-specialization.cc View 1 chunk +25 lines, -0 lines 0 comments Download
M src/counters.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/crankshaft/hydrogen.h View 1 chunk +2 lines, -4 lines 0 comments Download
M src/crankshaft/hydrogen.cc View 14 chunks +17 lines, -74 lines 0 comments Download
M src/heap-symbols.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/ic/handler-compiler.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/js/typedarray.js View 6 chunks +91 lines, -11 lines 0 comments Download
M src/objects.h View 2 chunks +1 line, -10 lines 0 comments Download
M src/objects.cc View 1 chunk +0 lines, -13 lines 0 comments Download
M src/runtime/runtime.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime/runtime-typedarray.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 7 (3 generated)
Michael Achenbach
Created Revert of [builtins] Properly optimize TypedArray/DataView accessors.
4 years, 6 months ago (2016-06-07 11:27:13 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2039093005/1
4 years, 6 months ago (2016-06-07 11:27:19 UTC) #3
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 6 months ago (2016-06-07 11:27:39 UTC) #5
commit-bot: I haz the power
4 years, 6 months ago (2016-06-07 11:27:51 UTC) #7
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/d3a43e47dd740c9010b39e6e765f624696ce3b56
Cr-Commit-Position: refs/heads/master@{#36783}

Powered by Google App Engine
This is Rietveld 408576698