|
Object.observe: generate change records for named properties.
In more detail:
- Set observation bit for observed objects (and make NormalizedMapCache respect it).
- Mutation of observed objects is always delegated from ICs to runtime.
- Introduce JS runtime function for notifying generated changes.
- Invoke this function in the appropriate places (including some local refactoring).
- Inclusion of oldValue field is not yet implemented, nor element properties.
Also, shortened flag to --harmony-observation.
R=verwaest@chromium.org
BUG=
Committed: https://code.google.com/p/v8/source/detail?r=12867
Total comments: 36
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+345 lines, -124 lines) |
Patch |
|
M |
src/bootstrapper.cc
|
View
|
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
src/contexts.h
|
View
|
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/flag-definitions.h
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/handles.h
|
View
|
1
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/ic.cc
|
View
|
|
2 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
|
M |
src/object-observe.js
|
View
|
1
|
4 chunks |
+12 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/objects.h
|
View
|
1
|
7 chunks |
+18 lines, -1 line |
0 comments
|
Download
|
|
M |
src/objects.cc
|
View
|
1
|
15 chunks |
+215 lines, -110 lines |
0 comments
|
Download
|
|
M |
src/objects-inl.h
|
View
|
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/runtime.h
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/runtime.cc
|
View
|
1
|
1 chunk |
+23 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/v8natives.js
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
test/mjsunit/harmony/object-observe.js
|
View
|
|
5 chunks |
+37 lines, -3 lines |
0 comments
|
Download
|
Total messages: 9 (0 generated)
|