|
A first skeleton for introducing Harmony proxies.
1) Add new type JSProxy for representing proxy objects.
Currently devoid of functionality, i.e., all properties are undefined.
2) Some rudimentary global $Proxy functions to create proxies.
Next step: Hook up getProperty and getOwnProperty handlers. Will probably
require introducing a new LookupResult type, which is a mixture of
INTERCEPTOR (handles any property) and CALLBACK (calls back to JS).
Can we unify this somehow?
TODO: Should probably rename existing Proxy type to something like
"Foreign", to avoid confusion.
Committed: http://code.google.com/p/v8/source/detail?r=7887
Total comments: 8
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+192 lines, -20 lines) |
Patch |
|
M |
include/v8.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/bootstrapper.cc
|
View
|
1
|
1 chunk |
+6 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/factory.h
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/factory.cc
|
View
|
1
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/heap.h
|
View
|
1
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/heap.cc
|
View
|
1
|
1 chunk |
+21 lines, -0 lines |
2 comments
|
Download
|
|
M |
src/ia32/frames-ia32.h
|
View
|
1
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/objects.h
|
View
|
1
|
6 chunks |
+38 lines, -1 line |
0 comments
|
Download
|
|
M |
src/objects.cc
|
View
|
1
|
5 chunks |
+15 lines, -10 lines |
0 comments
|
Download
|
|
M |
src/objects-debug.cc
|
View
|
1
|
2 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/objects-inl.h
|
View
|
1
|
3 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/objects-printer.cc
|
View
|
1
|
3 chunks |
+13 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/objects-visiting.cc
|
View
|
1
|
1 chunk |
+5 lines, -0 lines |
2 comments
|
Download
|
|
M |
src/proxy.js
|
View
|
1
|
1 chunk |
+37 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/runtime.h
|
View
|
1
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/runtime.cc
|
View
|
1
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/runtime.js
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 6 (0 generated)
|