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

Issue 2237873002: Declare 'this' as DYNAMIC_GLOBAL on the script_scope (Closed)

Created:
4 years, 4 months ago by Toon Verwaest
Modified:
4 years, 4 months ago
Reviewers:
adamk, 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

Declare 'this' as DYNAMIC_GLOBAL on the script_scope Follow-up cleanup to https://codereview.chromium.org/2231813003 BUG= Committed: https://crrev.com/860a3ce26f29bb01da97a32f31e94160a48c0960 Cr-Commit-Position: refs/heads/master@{#38643}

Patch Set 1 #

Patch Set 2 : Simplify #

Patch Set 3 : Add comment #

Patch Set 4 : Undo #

Patch Set 5 : typo #

Total comments: 1

Patch Set 6 : fix places where we declare this, remove shortcut #

Total comments: 9

Patch Set 7 : Rebase and partly restore for debugger #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -20 lines) Patch
M src/ast/scopes.h View 1 2 3 4 5 6 3 chunks +4 lines, -2 lines 0 comments Download
M src/ast/scopes.cc View 1 2 3 4 5 6 8 chunks +26 lines, -18 lines 1 comment Download
M src/parsing/parser.cc View 1 2 3 4 5 6 2 chunks +12 lines, -0 lines 0 comments Download
A test/mjsunit/global-arrow-delete-this.js View 1 2 3 4 5 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (8 generated)
Toon Verwaest
ptal cleanup follow-up to the other CL that you'll probably like
4 years, 4 months ago (2016-08-11 15:25:16 UTC) #2
Toon Verwaest
https://codereview.chromium.org/2237873002/diff/80001/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2237873002/diff/80001/src/ast/scopes.cc#newcode1279 src/ast/scopes.cc:1279: return NULL; Doh. This "optimization" breaks the obvious case ...
4 years, 4 months ago (2016-08-11 16:06:15 UTC) #3
Toon Verwaest
Seems like the latest cl breaks the debugger. I suspect a bug in debug-evaluate. I'll ...
4 years, 4 months ago (2016-08-11 17:24:21 UTC) #4
adamk
https://codereview.chromium.org/2237873002/diff/100001/src/ast/scopes.cc File src/ast/scopes.cc (left): https://codereview.chromium.org/2237873002/diff/100001/src/ast/scopes.cc#oldcode1276 src/ast/scopes.cc:1276: if (already_resolved() && is_with_scope()) { I'm fine with dropping ...
4 years, 4 months ago (2016-08-11 18:27:17 UTC) #5
Toon Verwaest
I'll some answers to questions, still need to fix. I'll rebase in the process. https://codereview.chromium.org/2237873002/diff/100001/src/ast/scopes.cc ...
4 years, 4 months ago (2016-08-12 04:49:41 UTC) #6
Toon Verwaest
https://codereview.chromium.org/2237873002/diff/100001/test/mjsunit/global-arrow-delete-this.js File test/mjsunit/global-arrow-delete-this.js (right): https://codereview.chromium.org/2237873002/diff/100001/test/mjsunit/global-arrow-delete-this.js#newcode12 test/mjsunit/global-arrow-delete-this.js:12: a()() On 2016/08/12 04:49:40, Toon Verwaest wrote: > On ...
4 years, 4 months ago (2016-08-12 04:58:46 UTC) #7
Toon Verwaest
ptal I restored the "short-cut" just for debug-evaluate. It relied on this quirk to do ...
4 years, 4 months ago (2016-08-12 08:36:57 UTC) #9
Toon Verwaest
https://codereview.chromium.org/2237873002/diff/120001/src/ast/scopes.cc File src/ast/scopes.cc (left): https://codereview.chromium.org/2237873002/diff/120001/src/ast/scopes.cc#oldcode557 src/ast/scopes.cc:557: DCHECK(scope_info_->StackSlotIndex(*name_handle) < 0 || is_block_scope()); I don't see how ...
4 years, 4 months ago (2016-08-12 08:50:20 UTC) #12
Yang
lgtm
4 years, 4 months ago (2016-08-12 10:29:11 UTC) #15
adamk
lgtm https://codereview.chromium.org/2237873002/diff/100001/src/parsing/parser.cc File src/parsing/parser.cc (right): https://codereview.chromium.org/2237873002/diff/100001/src/parsing/parser.cc#newcode1001 src/parsing/parser.cc:1001: // If there's a chance that there's a ...
4 years, 4 months ago (2016-08-15 17:39:43 UTC) #16
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/2237873002/120001
4 years, 4 months ago (2016-08-16 07:19:04 UTC) #18
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 4 months ago (2016-08-16 07:44:00 UTC) #19
commit-bot: I haz the power
4 years, 4 months ago (2016-08-16 07:44:22 UTC) #21
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/860a3ce26f29bb01da97a32f31e94160a48c0960
Cr-Commit-Position: refs/heads/master@{#38643}

Powered by Google App Engine
This is Rietveld 408576698