diff options
Diffstat (limited to 'src/third_party/mozjs-60/extract/js/src/wasm/WasmStubs.h')
-rw-r--r-- | src/third_party/mozjs-60/extract/js/src/wasm/WasmStubs.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/third_party/mozjs-60/extract/js/src/wasm/WasmStubs.h b/src/third_party/mozjs-60/extract/js/src/wasm/WasmStubs.h new file mode 100644 index 00000000000..7b8d7fd7fea --- /dev/null +++ b/src/third_party/mozjs-60/extract/js/src/wasm/WasmStubs.h @@ -0,0 +1,47 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- + * vim: set ts=8 sts=4 et sw=4 tw=99: + * + * Copyright 2015 Mozilla Foundation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef wasm_stubs_h +#define wasm_stubs_h + +#include "wasm/WasmGenerator.h" + +namespace js { +namespace wasm { + +extern bool +GenerateBuiltinThunk(jit::MacroAssembler& masm, jit::ABIFunctionType abiType, ExitReason exitReason, + void* funcPtr, CallableOffsets* offsets); + +extern bool +GenerateImportFunctions(const ModuleEnvironment& env, const FuncImportVector& imports, + CompiledCode* code); + +extern bool +GenerateStubs(const ModuleEnvironment& env, const FuncImportVector& imports, + const FuncExportVector& exports, CompiledCode* code); + +extern bool +GenerateEntryStubs(jit::MacroAssembler& masm, size_t funcExportIndex, + const FuncExport& funcExport, const Maybe<jit::ImmPtr>& callee, + bool isAsmJS, CodeRangeVector* codeRanges); + +} // namespace wasm +} // namespace js + +#endif // wasm_stubs_h |