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

Issue 7017008: Trying to move derived get trap from builtins to global context. (Closed)

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

Description

Move derived get trap from builtins to global context. Committed: http://code.google.com/p/v8/source/detail?r=7936

Patch Set 1 #

Patch Set 2 : After svn rebase #

Patch Set 3 : Using InstallNativeFunctions. #

Patch Set 4 : Add InstallExperimentalNativeFunctions. #

Total comments: 4

Patch Set 5 : Address review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -23 lines) Patch
M src/bootstrapper.cc View 1 2 3 4 3 chunks +10 lines, -0 lines 0 comments Download
M src/builtins.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/contexts.h View 2 chunks +3 lines, -1 line 0 comments Download
M src/objects.cc View 1 1 chunk +1 line, -3 lines 0 comments Download
M src/proxy.js View 1 2 3 4 1 chunk +18 lines, -0 lines 0 comments Download
M src/runtime.js View 1 1 chunk +0 lines, -17 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
rossberg
9 years, 7 months ago (2011-05-18 11:14:03 UTC) #1
Mads Ager (chromium)
LGTM http://codereview.chromium.org/7017008/diff/5007/src/proxy.js File src/proxy.js (right): http://codereview.chromium.org/7017008/diff/5007/src/proxy.js#newcode74 src/proxy.js:74: function DERIVED_GET_TRAP(receiver, name) { Let's change the naming ...
9 years, 7 months ago (2011-05-18 13:11:33 UTC) #2
rossberg
9 years, 7 months ago (2011-05-18 13:34:57 UTC) #3
http://codereview.chromium.org/7017008/diff/5007/src/proxy.js
File src/proxy.js (right):

http://codereview.chromium.org/7017008/diff/5007/src/proxy.js#newcode74
src/proxy.js:74: function DERIVED_GET_TRAP(receiver, name) {
On 2011/05/18 13:11:33, Mads Ager wrote:
> Let's change the naming here: DerivedGetTrap?

Done.

http://codereview.chromium.org/7017008/diff/5007/src/proxy.js#newcode81
src/proxy.js:81: return desc.get().call(receiver)  // The proposal says so...
On 2011/05/18 13:11:33, Mads Ager wrote:
> Does the proposal even say to use Function.prototype.call? That one can get
> overwritten by user code to do something else? If is just says to perform a
call
> you can use the %_CallFunction support in our natives to make this independent
> of Function.prototype.call.

Good question. The spec gives it literally in JS code, using `call' like here,
so it's not clear what the real intention is. I'm also puzzled about passing
`receiver'. I've put that on my list of questions regarding proxy semantics.

In any case, the extra () where a typo on my side. :)

Powered by Google App Engine
This is Rietveld 408576698