|
|
Create pre-frozen change records for Object.observe
Added a JSChangeRecord bag-of-constants to objects.h and use it to create two custom maps for each context in bootstrapper.cc.
This greatly increases performance (~5x) of the ChangeSummary fuzzer (which tests creating lots of change records).
Before (ms): 4102, 4263, 4219
After (ms): 860, 871, 870
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+136 lines, -20 lines) |
Patch |
 |
M |
src/bootstrapper.cc
|
View
|
1
|
1 chunk |
+54 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/contexts.h
|
View
|
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/heap.h
|
View
|
1
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
src/object-observe.js
|
View
|
1
|
1 chunk |
+2 lines, -6 lines |
0 comments
|
Download
|
 |
M |
src/objects.h
|
View
|
1
|
2 chunks |
+24 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/objects.cc
|
View
|
1
2
|
2 chunks |
+34 lines, -11 lines |
0 comments
|
Download
|
 |
M |
src/runtime.h
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
src/runtime.cc
|
View
|
1
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/v8natives.js
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
Total messages: 3 (0 generated)
|