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

Issue 2480253006: Only treat lookup-slot-calls going through 'with' special (Closed)

Created:
4 years, 1 month ago by Toon Verwaest
Modified:
4 years, 1 month ago
CC:
v8-reviews_googlegroups.com, rmcilroy
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Only treat lookup-slot-calls going through 'with' special This replaces LOOKUP_SLOT_CALL with WITH_CALL, and relies on regular lookup-slot handling in variable load to support other lookup slots (variables resolved in the context of sloppy eval). This allows optimizations for such variable loads to kick in for calls as well. We only need special handling for function calls in the context of with, since it changes the receiver of the call from undefined/global to the with-object. This currently doesn't yet make it work for the direct eval call itself, since the POSSIBLY_EVAL_CALL flag is also used to deal with direct eval later. BUG= Committed: https://crrev.com/733af7eb1af0a57f261c7bef9c38a08afb9b64c8 Cr-Commit-Position: refs/heads/master@{#40962}

Patch Set 1 #

Patch Set 2 : Rebaseline expectations #

Total comments: 1

Patch Set 3 : add comment #

Patch Set 4 : rebase #

Patch Set 5 : rebaseline expectations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -10 lines) Patch
M src/ast/ast.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/ast/ast.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M src/compiler/ast-graph-builder.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/full-codegen/full-codegen.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CallLookupSlot.golden View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download

Messages

Total messages: 20 (11 generated)
Toon Verwaest
ptal
4 years, 1 month ago (2016-11-08 15:27:57 UTC) #2
rmcilroy
Looks reasonable to me, but I don't know this code so I'll leave Michi to ...
4 years, 1 month ago (2016-11-08 16:21:33 UTC) #7
Toon Verwaest
ping
4 years, 1 month ago (2016-11-10 12:48:19 UTC) #8
Michael Starzinger
LGTM from my end. https://codereview.chromium.org/2480253006/diff/20001/src/ast/ast.cc File src/ast/ast.cc (right): https://codereview.chromium.org/2480253006/diff/20001/src/ast/ast.cc#newcode904 src/ast/ast.cc:904: return proxy->var()->mode() == DYNAMIC ? ...
4 years, 1 month ago (2016-11-10 15:20:27 UTC) #9
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/2480253006/60001
4 years, 1 month ago (2016-11-14 10:02:49 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_gyp_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_gyp_rel_ng/builds/7844) v8_linux64_gyp_rel_ng_triggered on master.tryserver.v8 (JOB_FAILED, ...
4 years, 1 month ago (2016-11-14 10:16:58 UTC) #14
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/2480253006/80001
4 years, 1 month ago (2016-11-14 11:58:04 UTC) #17
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-11-14 12:23:39 UTC) #18
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:32:28 UTC) #20
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/733af7eb1af0a57f261c7bef9c38a08afb9b64c8
Cr-Commit-Position: refs/heads/master@{#40962}

Powered by Google App Engine
This is Rietveld 408576698