/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/v8/src/asmjs/asm-js.h
44 строки
1 KB
Michaël Zasso
deps: update V8 to 13.6.233.8
02 май 2025, 16:06
Не верифицирован
02 май 2025, 16:06
918fe04
Код
Авторство
О чём код?
// Copyright 2016 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_ASMJS_ASM_JS_H_ #define V8_ASMJS_ASM_JS_H_ // Clients of this interface shouldn't depend on lots of asmjs internals. // Do not include anything from src/asmjs here! #include <memory> #include "src/common/globals.h" namespace v8 { namespace internal { class AccountingAllocator; class AsmWasmData; class FunctionLiteral; class JSArrayBuffer; class ParseInfo; class SharedFunctionInfo; class UnoptimizedCompilationJob; // Interface to compile and instantiate for asm.js modules. class AsmJs { public: static std::unique_ptr<UnoptimizedCompilationJob> NewCompilationJob( ParseInfo* parse_info, FunctionLiteral* literal, AccountingAllocator* allocator); static MaybeDirectHandle<Object> InstantiateAsmWasm( Isolate* isolate, DirectHandle<SharedFunctionInfo>, DirectHandle<AsmWasmData> wasm_data, DirectHandle<JSReceiver> stdlib, DirectHandle<JSReceiver> foreign, DirectHandle<JSArrayBuffer> memory); // Special export name used to indicate that the module exports a single // function instead of a JavaScript object holding multiple functions. static const char* const kSingleFunctionName; }; } // namespace internal } // namespace v8 #endif // V8_ASMJS_ASM_JS_H_