summaryrefslogtreecommitdiffstats
path: root/js/src/wasm/WasmCodegenTypes.h
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/wasm/WasmCodegenTypes.h')
-rw-r--r--js/src/wasm/WasmCodegenTypes.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/src/wasm/WasmCodegenTypes.h b/js/src/wasm/WasmCodegenTypes.h
index 7e54ad15f7..c01f1d4d37 100644
--- a/js/src/wasm/WasmCodegenTypes.h
+++ b/js/src/wasm/WasmCodegenTypes.h
@@ -554,6 +554,7 @@ class CallSiteDesc {
EnterFrame, // call to a enter frame handler
LeaveFrame, // call to a leave frame handler
CollapseFrame, // call to a leave frame handler during tail call
+ StackSwitch, // stack switch point
Breakpoint // call to instruction breakpoint
};
CallSiteDesc() : lineOrBytecode_(0), kind_(0) {}
@@ -576,9 +577,10 @@ class CallSiteDesc {
bool isIndirectCall() const { return kind() == CallSiteDesc::Indirect; }
bool isFuncRefCall() const { return kind() == CallSiteDesc::FuncRef; }
bool isReturnStub() const { return kind() == CallSiteDesc::ReturnStub; }
+ bool isStackSwitch() const { return kind() == CallSiteDesc::StackSwitch; }
bool mightBeCrossInstance() const {
return isImportCall() || isIndirectCall() || isFuncRefCall() ||
- isReturnStub();
+ isReturnStub() || isStackSwitch();
}
};