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

Issue 7849021: Handle function proxies as getters/setters. (Closed)

Created:
9 years, 3 months ago by rossberg
Modified:
9 years, 3 months ago
CC:
v8-dev
Visibility:
Public.

Description

Handle function proxies as getters/setters. R=kmillikin@chromium.org BUG=v8:1543 TEST= Committed: http://code.google.com/p/v8/source/detail?r=9407

Patch Set 1 #

Patch Set 2 : Renamed IsJSCallable to IsSpecFunction. #

Patch Set 3 : Micro-opt. #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -16 lines) Patch
M src/objects.h View 1 4 chunks +6 lines, -2 lines 0 comments Download
M src/objects.cc View 1 5 chunks +19 lines, -13 lines 0 comments Download
M src/objects-inl.h View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M src/runtime.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/harmony/proxies.js View 1 1 chunk +130 lines, -0 lines 10 comments Download

Messages

Total messages: 3 (0 generated)
rossberg
9 years, 3 months ago (2011-09-08 16:18:59 UTC) #1
Jakob Kummerow
LGTM with nits. A higher-level nit is that I prefer test cases to be a ...
9 years, 3 months ago (2011-09-22 12:23:18 UTC) #2
rossberg
9 years, 3 months ago (2011-09-22 16:39:52 UTC) #3
http://codereview.chromium.org/7849021/diff/5001/test/mjsunit/harmony/proxies.js
File test/mjsunit/harmony/proxies.js (right):

http://codereview.chromium.org/7849021/diff/5001/test/mjsunit/harmony/proxies...
test/mjsunit/harmony/proxies.js:1721: assertSame("", receiver)
On 2011/09/22 12:23:19, Jakob wrote:
> This works, but you're implicitly testing an unrelated implementation detail
> here. I'd use »assertEquals("", receiver)« instead. (Also below.)

Done.

http://codereview.chromium.org/7849021/diff/5001/test/mjsunit/harmony/proxies...
test/mjsunit/harmony/proxies.js:1726: // TODO(rossberg): test once we merge with
elements branch
On 2011/09/22 12:23:19, Jakob wrote:
> nit: please indent to the same level as the surrounding code. (Also at several
> places below.)

Actually, uncommented the code, since the tests work on head now. :)

http://codereview.chromium.org/7849021/diff/5001/test/mjsunit/harmony/proxies...
test/mjsunit/harmony/proxies.js:1755: assertThrows(function(){ "use strict"; o.b
= 51 }, TypeError)
On 2011/09/22 12:23:19, Jakob wrote:
> nit: space before '{'

Done.

http://codereview.chromium.org/7849021/diff/5001/test/mjsunit/harmony/proxies...
test/mjsunit/harmony/proxies.js:1774: assertEquals(0, value)  // oo has own `a'
On 2011/09/22 12:23:19, Jakob wrote:
> nit: s/`/'/

Done.

http://codereview.chromium.org/7849021/diff/5001/test/mjsunit/harmony/proxies...
test/mjsunit/harmony/proxies.js:1778: assertThrows(function(){ "use strict";
oo.b = 61 }, TypeError)
On 2011/09/22 12:23:19, Jakob wrote:
> nit: space before '{'

Done.

Powered by Google App Engine
This is Rietveld 408576698