|
[promises] Remove deferred object
This patch stores the promise, resolve, reject properties of the
deferred object created by CreateInternalPromiseCapability and
NewPromiseCapability directly on the promise (if the promise hasn't
been fulfilled), otherwise they are stored on the
PromiseReactionJobInfo.
This patch removes the currently unused
CreateInternalPromiseCapability and inlines the call to create the
deferred promise object.
NewPromiseCapability is the only function that works with a deferred.
This patch results in a 8.5% improvement in benchmarks over 5 runs.
BUG= v8:5343
Review-Url: https://codereview.chromium.org/2590563003
Cr-Commit-Position: refs/heads/master@{#41991}
Committed: https://chromium.googlesource.com/v8/v8/+/5668ce39873f97f0bd8b25289f41c88cf91aa9bc
Total comments: 1
Total comments: 11
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+284 lines, -195 lines) |
Patch |
|
M |
src/bootstrapper.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/builtins/builtins.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/builtins/builtins-promise.h
|
View
|
1
2
3
4
5
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
src/builtins/builtins-promise.cc
|
View
|
1
2
3
4
5
6
|
18 chunks |
+115 lines, -82 lines |
0 comments
|
Download
|
|
M |
src/code-stub-assembler.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/code-stub-assembler.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+11 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/factory.h
|
View
|
1
2
3
4
6
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/factory.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+7 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/isolate.cc
|
View
|
1
2
3
4
5
6
|
6 chunks |
+32 lines, -20 lines |
0 comments
|
Download
|
|
M |
src/js/async-await.js
|
View
|
1
2
3
4
5
6
|
5 chunks |
+5 lines, -9 lines |
0 comments
|
Download
|
|
M |
src/js/promise.js
|
View
|
1
2
3
4
5
6
|
6 chunks |
+7 lines, -20 lines |
0 comments
|
Download
|
|
M |
src/objects.h
|
View
|
1
2
3
4
5
6
|
4 chunks |
+29 lines, -10 lines |
0 comments
|
Download
|
|
M |
src/objects-debug.cc
|
View
|
1
|
2 chunks |
+18 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/objects-inl.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+9 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/objects-printer.cc
|
View
|
6
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/runtime/runtime.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/runtime/runtime-promise.cc
|
View
|
1
2
3
4
5
6
|
6 chunks |
+23 lines, -25 lines |
0 comments
|
Download
|
|
M |
test/cctest/test-code-stub-assembler.cc
|
View
|
1
2
3
4
|
2 chunks |
+8 lines, -5 lines |
0 comments
|
Download
|
Total messages: 43 (31 generated)
|