Repository navigation
Commit d36f217
committed
[JSC] Remove JSInternalPromise
https://bugs.webkit.org/show_bug.cgi?id=312428
rdar://174878581
Reviewed by Mark Lam.
Now new module loader no longer uses JSInternalPromise, let's just
remove that.
* JSTests/microbenchmarks/internal-promise-internal-all.js: Removed.
* JSTests/stress/internal-promise-constructor-not-confusing.js: Removed.
* JSTests/stress/internal-promise-is-not-exposed.js: Removed.
* Source/JavaScriptCore/API/JSContext.mm:
* Source/JavaScriptCore/CMakeLists.txt:
* Source/JavaScriptCore/DerivedSources-input.xcfilelist:
* Source/JavaScriptCore/DerivedSources-output.xcfilelist:
* Source/JavaScriptCore/DerivedSources.make:
* Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj:
* Source/JavaScriptCore/Sources.txt:
* Source/JavaScriptCore/builtins/PromiseConstructor.js:
(nakedConstructor.Promise):
(nakedConstructor.InternalPromise): Deleted.
* Source/JavaScriptCore/bytecode/BytecodeList.rb:
* Source/JavaScriptCore/bytecode/LinkTimeConstant.h:
* Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp:
(JSC::BytecodeGenerator::BytecodeGenerator):
(JSC::BytecodeGenerator::emitCreatePromise):
(JSC::BytecodeGenerator::emitNewPromise):
* Source/JavaScriptCore/bytecompiler/BytecodeGenerator.h:
* Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp:
(JSC::BytecodeIntrinsicNode::emit_intrinsic_createPromise):
(JSC::BytecodeIntrinsicNode::emit_intrinsic_newPromise):
* Source/JavaScriptCore/dfg/DFGAbstractInterpreterInlines.h:
(JSC::DFG::AbstractInterpreter<AbstractStateType>::executeEffects):
* Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::parseBlock):
* Source/JavaScriptCore/dfg/DFGConstantFoldingPhase.cpp:
(JSC::DFG::ConstantFoldingPhase::foldConstants):
* Source/JavaScriptCore/dfg/DFGGraph.cpp:
(JSC::DFG::Graph::dump):
* Source/JavaScriptCore/dfg/DFGNode.h:
(JSC::DFG::Node::hasIsInternalPromise): Deleted.
(JSC::DFG::Node::isInternalPromise): Deleted.
* Source/JavaScriptCore/dfg/DFGObjectAllocationSinkingPhase.cpp:
* Source/JavaScriptCore/dfg/DFGOperations.cpp:
* Source/JavaScriptCore/dfg/DFGOperations.h:
* Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp:
* Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp:
(JSC::FTL::DFG::LowerDFGToB3::compileNewInternalFieldObject):
(JSC::FTL::DFG::LowerDFGToB3::compileCreatePromise):
(JSC::FTL::DFG::LowerDFGToB3::compileCompareStrictEq):
* Source/JavaScriptCore/ftl/FTLOperations.cpp:
(JSC::FTL::JSC_DEFINE_NOEXCEPT_JIT_OPERATION):
* Source/JavaScriptCore/jit/JITOperations.cpp:
* Source/JavaScriptCore/jit/JITOperations.h:
* Source/JavaScriptCore/lol/LOLJITOperations.cpp:
* Source/JavaScriptCore/runtime/CommonSlowPaths.cpp:
(JSC::JSC_DEFINE_COMMON_SLOW_PATH):
* Source/JavaScriptCore/runtime/GlobalObjectMethodTable.h:
* Source/JavaScriptCore/runtime/JSGlobalObject.cpp:
(JSC::JSGlobalObject::init):
(JSC::JSGlobalObject::visitChildrenImpl):
* Source/JavaScriptCore/runtime/JSGlobalObject.h:
* Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp:
* Source/JavaScriptCore/runtime/JSInternalPromise.cpp: Removed.
* Source/JavaScriptCore/runtime/JSInternalPromise.h: Removed.
* Source/JavaScriptCore/runtime/JSInternalPromiseConstructor.cpp: Removed.
* Source/JavaScriptCore/runtime/JSInternalPromiseConstructor.h: Removed.
* Source/JavaScriptCore/runtime/JSInternalPromisePrototype.cpp: Removed.
* Source/JavaScriptCore/runtime/JSInternalPromisePrototype.h: Removed.
* Source/JavaScriptCore/runtime/JSMicrotask.cpp:
(JSC::runInternalMicrotask):
(JSC::internalPromiseAllResolveJob): Deleted.
* Source/JavaScriptCore/runtime/JSPromise.cpp:
(JSC::JSPromise::resolveWithInternalMicrotaskForAsyncAwait):
(JSC::JSPromise::isThenFastAndNonObservable):
(JSC::JSPromise::then):
* Source/JavaScriptCore/runtime/JSPromisePrototype.cpp:
(JSC::promiseSpeciesWatchpointIsValid):
* Source/JavaScriptCore/runtime/JSPromisePrototype.h:
* Source/JavaScriptCore/runtime/Microtask.h:
* Source/JavaScriptCore/runtime/ShadowRealmPrototype.cpp:
(JSC::JSC_DEFINE_HOST_FUNCTION):
* Source/JavaScriptCore/runtime/SyntheticModuleRecord.cpp:
* Source/JavaScriptCore/runtime/SyntheticModuleRecord.h:
* Source/WebCore/bindings/js/JSDOMGlobalObject.cpp:
* Source/WebCore/bindings/js/JSDOMWindowBase.cpp:
* Source/WebCore/bindings/js/ScriptController.cpp:
* Source/WebCore/bindings/js/ScriptController.h:
* Source/WebCore/bindings/js/ScriptModuleLoader.h:
* Source/WebCore/workers/WorkerOrWorkletScriptController.cpp:
Canonical link: https://commits.webkit.org/311382@main1 parent ec67268 commit d36f217
55 files changed
Lines changed: 59 additions & 764 deletions
File tree
- JSTests
- microbenchmarks
- stress
- Source
- JavaScriptCore
- API
- JavaScriptCore.xcodeproj
- builtins
- bytecode
- bytecompiler
- dfg
- ftl
- jit
- lol
- runtime
- WebCore
- bindings/js
- workers
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | 93 | | |
95 | 94 | | |
96 | 95 | | |
| |||
1210 | 1209 | | |
1211 | 1210 | | |
1212 | 1211 | | |
1213 | | - | |
1214 | | - | |
1215 | 1212 | | |
1216 | 1213 | | |
1217 | 1214 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
175 | 174 | | |
176 | 175 | | |
177 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
192 | 191 | | |
193 | 192 | | |
194 | 193 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2044 | 2044 | | |
2045 | 2045 | | |
2046 | 2046 | | |
2047 | | - | |
2048 | | - | |
2049 | | - | |
2050 | 2047 | | |
2051 | 2048 | | |
2052 | 2049 | | |
| |||
5950 | 5947 | | |
5951 | 5948 | | |
5952 | 5949 | | |
5953 | | - | |
5954 | | - | |
5955 | | - | |
5956 | | - | |
5957 | | - | |
5958 | | - | |
5959 | | - | |
5960 | 5950 | | |
5961 | 5951 | | |
5962 | 5952 | | |
| |||
8173 | 8163 | | |
8174 | 8164 | | |
8175 | 8165 | | |
8176 | | - | |
8177 | 8166 | | |
8178 | 8167 | | |
8179 | 8168 | | |
| |||
8977 | 8966 | | |
8978 | 8967 | | |
8979 | 8968 | | |
8980 | | - | |
8981 | | - | |
8982 | | - | |
8983 | | - | |
8984 | | - | |
8985 | | - | |
8986 | 8969 | | |
8987 | 8970 | | |
8988 | 8971 | | |
| |||
11995 | 11978 | | |
11996 | 11979 | | |
11997 | 11980 | | |
11998 | | - | |
11999 | | - | |
12000 | | - | |
12001 | 11981 | | |
12002 | 11982 | | |
12003 | 11983 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
938 | 938 | | |
939 | 939 | | |
940 | 940 | | |
941 | | - | |
942 | | - | |
943 | | - | |
944 | 941 | | |
945 | 942 | | |
946 | 943 | | |
| |||
0 commit comments