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

Issue 183683022: Enable Object.observe by default (Closed)

Created:
6 years, 9 months ago by rafaelw
Modified:
6 years, 9 months ago
Reviewers:
rossberg, Toon Verwaest
CC:
v8-dev, danno, adamk, arv (Not doing code reviews)
Visibility:
Public.

Description

Enable Object.observe by default R=rossberg@chromium.org, rossberg BUG=v8:2409 LOG=Y Committed: https://code.google.com/p/v8/source/detail?r=19734

Patch Set 1 #

Total comments: 12

Patch Set 2 : moved to test mjsunit/es7 #

Patch Set 3 : add back use strict #

Unified diffs Side-by-side diffs Delta from patch set Stats (+209 lines, -2003 lines) Patch
M src/accessors.cc View 1 2 1 chunk +1 line, -4 lines 0 comments Download
M src/bootstrapper.cc View 1 2 3 chunks +6 lines, -9 lines 0 comments Download
M src/flag-definitions.h View 1 3 chunks +0 lines, -4 lines 0 comments Download
M src/ic.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/object-observe.js View 1 2 7 chunks +97 lines, -51 lines 0 comments Download
M src/objects.cc View 1 2 10 chunks +10 lines, -15 lines 0 comments Download
M src/runtime.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-heap.cc View 1 2 2 chunks +13 lines, -10 lines 0 comments Download
M test/cctest/test-microtask-delivery.cc View 1 chunk +0 lines, -1 line 0 comments Download
M test/cctest/test-object-observe.cc View 25 chunks +78 lines, -116 lines 0 comments Download
M test/mjsunit/debug-script.js View 1 chunk +1 line, -1 line 0 comments Download
A + test/mjsunit/es7/object-observe.js View 1 0 chunks +-1 lines, --1 lines 0 comments Download
D test/mjsunit/harmony/object-observe.js View 1 1 chunk +0 lines, -1789 lines 0 comments Download
M tools/gyp/v8.gyp View 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
rafaelw
Note that simply setting the flag to true doesn't work because of snapshotting and enabling ...
6 years, 9 months ago (2014-03-05 00:48:46 UTC) #1
rossberg
Hi Rafael, this CL makes sense eventually, but right now it would be skipping the ...
6 years, 9 months ago (2014-03-05 09:55:47 UTC) #2
rossberg
Toon, do you know more about whether prototype transitions would be an issue for the ...
6 years, 9 months ago (2014-03-06 08:41:35 UTC) #3
Toon Verwaest
https://codereview.chromium.org/183683022/diff/1/test/cctest/test-heap.cc File test/cctest/test-heap.cc (right): https://codereview.chromium.org/183683022/diff/1/test/cctest/test-heap.cc#newcode2007 test/cctest/test-heap.cc:2007: CompileRun("var base = {};"); Sounds good to me. On ...
6 years, 9 months ago (2014-03-06 13:01:25 UTC) #4
rafaelw
ptal https://codereview.chromium.org/183683022/diff/1/src/accessors.cc File src/accessors.cc (right): https://codereview.chromium.org/183683022/diff/1/src/accessors.cc#newcode623 src/accessors.cc:623: bool is_observed = Yes. done On 2014/03/06 08:41:35, ...
6 years, 9 months ago (2014-03-07 04:33:06 UTC) #5
rossberg
LGTM https://codereview.chromium.org/183683022/diff/1/src/object-observe.js File src/object-observe.js (left): https://codereview.chromium.org/183683022/diff/1/src/object-observe.js#oldcode28 src/object-observe.js:28: "use strict"; On 2014/03/07 04:33:06, rafaelw wrote: > ...
6 years, 9 months ago (2014-03-07 07:14:44 UTC) #6
rafaelw
Committed patchset #3 manually as r19734 (presubmit successful).
6 years, 9 months ago (2014-03-08 02:48:03 UTC) #7
rafaelw
6 years, 9 months ago (2014-03-08 02:48:19 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/183683022/diff/1/src/object-observe.js
File src/object-observe.js (left):

https://codereview.chromium.org/183683022/diff/1/src/object-observe.js#oldcode28
src/object-observe.js:28: "use strict";
Ok. Seems wrong, but I'll leave it in.

On 2014/03/07 07:14:44, rossberg wrote:
> On 2014/03/07 04:33:06, rafaelw wrote:
> > You are right. I tried adding it back and got not failures (not sure what I
> was
> > seeing before that I thought this was happening). However, if you're right
> that
> > this directive is having no effect (or only an effective if it's the first
> > file), then it seems best to not have it, so I left it out.
> 
> Please keep it nevertheless -- we have a midterm goal of moving all JS files
to
> strict mode, and this serves as a marker for the ones that already work (not
too
> many at the moment :( ).

Powered by Google App Engine
This is Rietveld 408576698