File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ inline bool hasPossibleJSPrototypeField(HeapType type) {
4545
4646// Calls flowIn and flowOut on all types that may flow in from or out to JS.
4747template <typename In, typename Out>
48- void iterJSInterface (Module& wasm, In flowIn, Out flowOut) {
48+ void iterJSInterface (const Module& wasm, In flowIn, Out flowOut) {
4949 // @binaryen.js.called functions are called from JS. Their parameters flow
5050 // in from JS and their results flow back out.
5151 for (auto f : Intrinsics (wasm).getJSCalledFunctions ()) {
Original file line number Diff line number Diff line change @@ -398,8 +398,12 @@ struct TypeTree {
398398 struct Subtypes {
399399 TypeTree* parent;
400400 Index index;
401- SubtypeIterator begin () { return {parent, {std::make_pair (index, 0u )}}; }
402- SubtypeIterator end () { return {parent, {}}; }
401+ SubtypeIterator begin () {
402+ return {parent, {std::make_pair (index, 0u )}};
403+ }
404+ SubtypeIterator end () {
405+ return {parent, {}};
406+ }
403407 };
404408
405409 Subtypes subtypes (HeapType type) { return {this , getIndex (type)}; }
@@ -645,7 +649,7 @@ struct Unsubtyping : Pass, Noter<Unsubtyping> {
645649 }
646650 }
647651
648- void analyzeJSInterface (Module& wasm) {
652+ void analyzeJSInterface (const Module& wasm) {
649653 if (!wasm.features .hasCustomDescriptors ()) {
650654 return ;
651655 }
You can’t perform that action at this time.
0 commit comments