diff --git a/include/v8.h b/include/v8.h index 77ac509862..9926b308b1 100644 --- a/include/v8.h +++ b/include/v8.h @@ -7522,7 +7522,7 @@ typedef void (*WasmStreamingCallback)(const FunctionCallbackInfo&); // --- Callback for checking if WebAssembly threads are enabled --- typedef bool (*WasmThreadsEnabledCallback)(Local context); -// --- Callback for loading source map file for WASM profiling support +// --- Callback for loading source map file for Wasm profiling support typedef Local (*WasmLoadSourceMapCallback)(Isolate* isolate, const char* name); diff --git a/src/builtins/ia32/builtins-ia32.cc b/src/builtins/ia32/builtins-ia32.cc index 7b8d667aa5..5bea93214c 100644 --- a/src/builtins/ia32/builtins-ia32.cc +++ b/src/builtins/ia32/builtins-ia32.cc @@ -2670,7 +2670,7 @@ void Builtins::Generate_WasmCompileLazy(MacroAssembler* masm) { offset += kSimd128Size; } - // Push the WASM instance as an explicit argument to WasmCompileLazy. + // Push the Wasm instance as an explicit argument to WasmCompileLazy. __ Push(kWasmInstanceRegister); // Push the function index as second argument. __ Push(kWasmCompileLazyFuncIndexRegister); diff --git a/src/builtins/x64/builtins-x64.cc b/src/builtins/x64/builtins-x64.cc index 1d4b80ba3c..8d028c88f0 100644 --- a/src/builtins/x64/builtins-x64.cc +++ b/src/builtins/x64/builtins-x64.cc @@ -2849,7 +2849,7 @@ void Builtins::Generate_WasmCompileLazy(MacroAssembler* masm) { offset += kSimd128Size; } - // Push the WASM instance as an explicit argument to WasmCompileLazy. + // Push the Wasm instance as an explicit argument to WasmCompileLazy. __ Push(kWasmInstanceRegister); // Push the function index as second argument. __ Push(r11); diff --git a/src/codegen/arm64/macro-assembler-arm64.cc b/src/codegen/arm64/macro-assembler-arm64.cc index b9a7947fba..1273904c9c 100644 --- a/src/codegen/arm64/macro-assembler-arm64.cc +++ b/src/codegen/arm64/macro-assembler-arm64.cc @@ -1734,7 +1734,7 @@ void TurboAssembler::JumpHelper(int64_t offset, RelocInfo::Mode rmode, namespace { // The calculated offset is either: -// * the 'target' input unmodified if this is a WASM call, or +// * the 'target' input unmodified if this is a Wasm call, or // * the offset of the target from the current PC, in instructions, for any // other type of call. static int64_t CalculateTargetOffset(Address target, RelocInfo::Mode rmode, diff --git a/src/codegen/assembler.h b/src/codegen/assembler.h index 92925a5bf9..1c287222e9 100644 --- a/src/codegen/assembler.h +++ b/src/codegen/assembler.h @@ -143,7 +143,7 @@ enum class CodeObjectRequired { kNo, kYes }; struct V8_EXPORT_PRIVATE AssemblerOptions { // Recording reloc info for external references and off-heap targets is - // needed whenever code is serialized, e.g. into the snapshot or as a WASM + // needed whenever code is serialized, e.g. into the snapshot or as a Wasm // module. This flag allows this reloc info to be disabled for code that // will not survive process destruction. bool record_reloc_info_for_serialization = true; diff --git a/src/compiler/backend/arm/code-generator-arm.cc b/src/compiler/backend/arm/code-generator-arm.cc index 0875c13a07..5b0c74799b 100644 --- a/src/compiler/backend/arm/code-generator-arm.cc +++ b/src/compiler/backend/arm/code-generator-arm.cc @@ -3539,7 +3539,7 @@ void CodeGenerator::AssembleConstructFrame() { __ Push(kWasmInstanceRegister); } else if (call_descriptor->IsWasmImportWrapper() || call_descriptor->IsWasmCapiFunction()) { - // WASM import wrappers are passed a tuple in the place of the instance. + // Wasm import wrappers are passed a tuple in the place of the instance. // Unpack the tuple into the instance and the target callable. // This must be done here in the codegen because it cannot be expressed // properly in the graph. diff --git a/src/compiler/backend/ia32/code-generator-ia32.cc b/src/compiler/backend/ia32/code-generator-ia32.cc index ca664e44fb..d397ba8241 100644 --- a/src/compiler/backend/ia32/code-generator-ia32.cc +++ b/src/compiler/backend/ia32/code-generator-ia32.cc @@ -4614,7 +4614,7 @@ void CodeGenerator::AssembleConstructFrame() { __ push(kWasmInstanceRegister); } else if (call_descriptor->IsWasmImportWrapper() || call_descriptor->IsWasmCapiFunction()) { - // WASM import wrappers are passed a tuple in the place of the instance. + // Wasm import wrappers are passed a tuple in the place of the instance. // Unpack the tuple into the instance and the target callable. // This must be done here in the codegen because it cannot be expressed // properly in the graph. diff --git a/src/compiler/backend/mips/code-generator-mips.cc b/src/compiler/backend/mips/code-generator-mips.cc index c79ebbe625..8e1ce0f2a3 100644 --- a/src/compiler/backend/mips/code-generator-mips.cc +++ b/src/compiler/backend/mips/code-generator-mips.cc @@ -3752,7 +3752,7 @@ void CodeGenerator::AssembleConstructFrame() { __ Push(kWasmInstanceRegister); } else if (call_descriptor->IsWasmImportWrapper() || call_descriptor->IsWasmCapiFunction()) { - // WASM import wrappers are passed a tuple in the place of the instance. + // Wasm import wrappers are passed a tuple in the place of the instance. // Unpack the tuple into the instance and the target callable. // This must be done here in the codegen because it cannot be expressed // properly in the graph. diff --git a/src/compiler/backend/mips64/code-generator-mips64.cc b/src/compiler/backend/mips64/code-generator-mips64.cc index e170334547..224b23fffc 100644 --- a/src/compiler/backend/mips64/code-generator-mips64.cc +++ b/src/compiler/backend/mips64/code-generator-mips64.cc @@ -3850,7 +3850,7 @@ void CodeGenerator::AssembleConstructFrame() { __ Push(kWasmInstanceRegister); } else if (call_descriptor->IsWasmImportWrapper() || call_descriptor->IsWasmCapiFunction()) { - // WASM import wrappers are passed a tuple in the place of the instance. + // Wasm import wrappers are passed a tuple in the place of the instance. // Unpack the tuple into the instance and the target callable. // This must be done here in the codegen because it cannot be expressed // properly in the graph. diff --git a/src/compiler/backend/ppc/code-generator-ppc.cc b/src/compiler/backend/ppc/code-generator-ppc.cc index a5e7866ac7..addbd76ffb 100644 --- a/src/compiler/backend/ppc/code-generator-ppc.cc +++ b/src/compiler/backend/ppc/code-generator-ppc.cc @@ -2387,7 +2387,7 @@ void CodeGenerator::AssembleConstructFrame() { __ Push(kWasmInstanceRegister); } else if (call_descriptor->IsWasmImportWrapper() || call_descriptor->IsWasmCapiFunction()) { - // WASM import wrappers are passed a tuple in the place of the instance. + // Wasm import wrappers are passed a tuple in the place of the instance. // Unpack the tuple into the instance and the target callable. // This must be done here in the codegen because it cannot be expressed // properly in the graph. diff --git a/src/compiler/backend/s390/code-generator-s390.cc b/src/compiler/backend/s390/code-generator-s390.cc index 6534bc1b50..d9543117df 100644 --- a/src/compiler/backend/s390/code-generator-s390.cc +++ b/src/compiler/backend/s390/code-generator-s390.cc @@ -4407,7 +4407,7 @@ void CodeGenerator::AssembleConstructFrame() { __ Push(kWasmInstanceRegister); } else if (call_descriptor->IsWasmImportWrapper() || call_descriptor->IsWasmCapiFunction()) { - // WASM import wrappers are passed a tuple in the place of the instance. + // Wasm import wrappers are passed a tuple in the place of the instance. // Unpack the tuple into the instance and the target callable. // This must be done here in the codegen because it cannot be expressed // properly in the graph. diff --git a/src/compiler/backend/x64/code-generator-x64.cc b/src/compiler/backend/x64/code-generator-x64.cc index 1f9a816fef..472ffaa508 100644 --- a/src/compiler/backend/x64/code-generator-x64.cc +++ b/src/compiler/backend/x64/code-generator-x64.cc @@ -4364,7 +4364,7 @@ void CodeGenerator::AssembleConstructFrame() { __ pushq(kWasmInstanceRegister); } else if (call_descriptor->IsWasmImportWrapper() || call_descriptor->IsWasmCapiFunction()) { - // WASM import wrappers are passed a tuple in the place of the instance. + // Wasm import wrappers are passed a tuple in the place of the instance. // Unpack the tuple into the instance and the target callable. // This must be done here in the codegen because it cannot be expressed // properly in the graph. diff --git a/src/compiler/verifier.cc b/src/compiler/verifier.cc index 75bd149303..1be87c9463 100644 --- a/src/compiler/verifier.cc +++ b/src/compiler/verifier.cc @@ -151,8 +151,7 @@ void Verifier::Visitor::Check(Node* node, const AllNodes& all) { // If this node has any effect outputs, make sure that it is // consumed as an effect input somewhere else. - // TODO(mvstanton): support this kind of verification for WASM - // compiles, too. + // TODO(mvstanton): support this kind of verification for Wasm compiles, too. if (code_type != kWasm && node->op()->EffectOutputCount() > 0) { int effect_edges = 0; for (Edge edge : node->use_edges()) { diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc index 59dd061b0c..30b2786b39 100644 --- a/src/compiler/wasm-compiler.cc +++ b/src/compiler/wasm-compiler.cc @@ -5752,7 +5752,7 @@ class WasmWrapperGraphBuilder : public WasmGraphBuilder { return false; } - // The callable is passed as the last parameter, after WASM arguments. + // The callable is passed as the last parameter, after Wasm arguments. Node* callable_node = Param(wasm_count + 1); Node* undefined_node = BuildLoadUndefinedValueFromInstance(); @@ -5937,7 +5937,7 @@ class WasmWrapperGraphBuilder : public WasmGraphBuilder { control())); offset += type.element_size_bytes(); } - // The function is passed as the last parameter, after WASM arguments. + // The function is passed as the last parameter, after Wasm arguments. Node* function_node = Param(param_count + 1); Node* shared = gasm_->Load( MachineType::AnyTagged(), function_node, @@ -6470,7 +6470,7 @@ wasm::WasmCompilationResult CompileWasmMathIntrinsic( Zone zone(wasm_engine->allocator(), ZONE_NAME); - // Compile a WASM function with a single bytecode and let TurboFan + // Compile a Wasm function with a single bytecode and let TurboFan // generate either inlined machine code or a call to a helper. SourcePositionTable* source_positions = nullptr; MachineGraph* mcgraph = new (&zone) MachineGraph( diff --git a/src/compiler/wasm-compiler.h b/src/compiler/wasm-compiler.h index ea840cd3f7..176fdb63c4 100644 --- a/src/compiler/wasm-compiler.h +++ b/src/compiler/wasm-compiler.h @@ -58,16 +58,16 @@ wasm::WasmCompilationResult ExecuteInterpreterEntryCompilation( wasm::WasmEngine*, wasm::CompilationEnv*, const wasm::FunctionBody&, int func_index, Counters*, wasm::WasmFeatures* detected); -// Calls to WASM imports are handled in several different ways, depending on the +// Calls to Wasm imports are handled in several different ways, depending on the // type of the target function/callable and whether the signature matches the // argument arity. enum class WasmImportCallKind : uint8_t { - kLinkError, // static WASM->WASM type error - kRuntimeTypeError, // runtime WASM->JS type error - kWasmToCapi, // fast WASM->C-API call - kWasmToWasm, // fast WASM->WASM call - kJSFunctionArityMatch, // fast WASM->JS call - kJSFunctionArityMismatch, // WASM->JS, needs adapter frame + kLinkError, // static Wasm->Wasm type error + kRuntimeTypeError, // runtime Wasm->JS type error + kWasmToCapi, // fast Wasm->C-API call + kWasmToWasm, // fast Wasm->Wasm call + kJSFunctionArityMatch, // fast Wasm->JS call + kJSFunctionArityMismatch, // Wasm->JS, needs adapter frame // Math functions imported from JavaScript that are intrinsified kFirstMathIntrinsic, kF64Acos = kFirstMathIntrinsic, @@ -109,12 +109,12 @@ V8_EXPORT_PRIVATE std::pair> ResolveWasmImportCall(Handle callable, const wasm::FunctionSig* sig, const wasm::WasmFeatures& enabled_features); -// Compiles an import call wrapper, which allows WASM to call imports. +// Compiles an import call wrapper, which allows Wasm to call imports. V8_EXPORT_PRIVATE wasm::WasmCompilationResult CompileWasmImportCallWrapper( wasm::WasmEngine*, wasm::CompilationEnv* env, WasmImportCallKind, const wasm::FunctionSig*, bool source_positions); -// Compiles a host call wrapper, which allows WASM to call host functions. +// Compiles a host call wrapper, which allows Wasm to call host functions. wasm::WasmCode* CompileWasmCapiCallWrapper(wasm::WasmEngine*, wasm::NativeModule*, const wasm::FunctionSig*, @@ -150,9 +150,9 @@ enum CWasmEntryParameters { // which knows how to feed it its parameters. MaybeHandle CompileCWasmEntry(Isolate*, const wasm::FunctionSig*); -// Values from the instance object are cached between WASM-level function calls. +// Values from the instance object are cached between Wasm-level function calls. // This struct allows the SSA environment handling this cache to be defined -// and manipulated in wasm-compiler.{h,cc} instead of inside the WASM decoder. +// and manipulated in wasm-compiler.{h,cc} instead of inside the Wasm decoder. // (Note that currently, the globals base is immutable, so not cached here.) struct WasmInstanceCacheNodes { Node* mem_start; diff --git a/src/diagnostics/objects-printer.cc b/src/diagnostics/objects-printer.cc index c75e68941e..e36171edfd 100644 --- a/src/diagnostics/objects-printer.cc +++ b/src/diagnostics/objects-printer.cc @@ -1307,12 +1307,12 @@ void JSFunction::JSFunctionPrint(std::ostream& os) { // NOLINT } if (WasmExportedFunction::IsWasmExportedFunction(*this)) { WasmExportedFunction function = WasmExportedFunction::cast(*this); - os << "\n - WASM instance: " << Brief(function.instance()); - os << "\n - WASM function index: " << function.function_index(); + os << "\n - Wasm instance: " << Brief(function.instance()); + os << "\n - Wasm function index: " << function.function_index(); } if (WasmJSFunction::IsWasmJSFunction(*this)) { WasmJSFunction function = WasmJSFunction::cast(*this); - os << "\n - WASM wrapper around: " << Brief(function.GetCallable()); + os << "\n - Wasm wrapper around: " << Brief(function.GetCallable()); } shared().PrintSourceCode(os); JSObjectPrintBody(os, *this); diff --git a/src/diagnostics/unwinding-info-win64.cc b/src/diagnostics/unwinding-info-win64.cc index 19b03af522..f3b9a753af 100644 --- a/src/diagnostics/unwinding-info-win64.cc +++ b/src/diagnostics/unwinding-info-win64.cc @@ -517,7 +517,7 @@ void RegisterNonABICompliantCodeRange(void* start, size_t size_in_bytes) { // When the --win64-unwinding-info flag is set, we call // RtlAddGrowableFunctionTable to register unwinding info for the whole code - // range of an isolate or WASM module. This enables the Windows OS stack + // range of an isolate or Wasm module. This enables the Windows OS stack // unwinder to work correctly with V8-generated code, enabling stack walking // in Windows debuggers and performance tools. However, the // RtlAddGrowableFunctionTable API is only supported on Windows 8 and above. diff --git a/src/diagnostics/unwinding-info-win64.h b/src/diagnostics/unwinding-info-win64.h index 102df15590..ca66437e00 100644 --- a/src/diagnostics/unwinding-info-win64.h +++ b/src/diagnostics/unwinding-info-win64.h @@ -32,7 +32,7 @@ bool CanEmitUnwindInfoForBuiltins(); /** * Returns true if V8 if we can register unwinding data for the whole code range - * of an isolate or WASM module. The first page of the code range is reserved + * of an isolate or Wasm module. The first page of the code range is reserved * and writable, to be used to store unwind data, as documented in: * https://docs.microsoft.com/en-us/cpp/build/exception-handling-x64. * In jitless mode V8 does not allocate any executable memory itself so the only @@ -52,9 +52,9 @@ void UnregisterNonABICompliantCodeRange(void* start); /** * Default count of RUNTIME_FUNCTION needed. For Windows X64, 1 RUNTIME_FUNCTION * covers 4GB range which is sufficient to cover the whole code range of an - * isolate or WASM module. For Windows ARM64, 1 RUNTIME_FUNCTION covers + * isolate or Wasm module. For Windows ARM64, 1 RUNTIME_FUNCTION covers * kMaxFunctionLength bytes so multiple RUNTIME_FUNCTION structs could be needed - * to cover the whole code range of an isolate or WASM module. The extra + * to cover the whole code range of an isolate or Wasm module. The extra * RUNTIME_FUNCTIONs are assumed following the first one in the reserved page. */ static const uint32_t kDefaultRuntimeFunctionCount = 1; diff --git a/src/execution/isolate.cc b/src/execution/isolate.cc index 80543421bd..c9c6225eb8 100644 --- a/src/execution/isolate.cc +++ b/src/execution/isolate.cc @@ -970,13 +970,13 @@ Handle CaptureStackTrace(Isolate* isolate, Handle caller, builder.AppendJavaScriptFrame(java_script); } else if (summary.IsWasmCompiled()) { //========================================================= - // Handle a WASM compiled frame. + // Handle a Wasm compiled frame. //========================================================= auto const& wasm_compiled = summary.AsWasmCompiled(); builder.AppendWasmCompiledFrame(wasm_compiled); } else if (summary.IsWasmInterpreted()) { //========================================================= - // Handle a WASM interpreted frame. + // Handle a Wasm interpreted frame. //========================================================= auto const& wasm_interpreted = summary.AsWasmInterpreted(); builder.AppendWasmInterpretedFrame(wasm_interpreted); diff --git a/src/flags/flag-definitions.h b/src/flags/flag-definitions.h index b6b82a477e..c3f360cdf0 100644 --- a/src/flags/flag-definitions.h +++ b/src/flags/flag-definitions.h @@ -736,7 +736,7 @@ DEFINE_DEBUG_BOOL(dump_wasm_module, false, "dump wasm module bytes") DEFINE_STRING(dump_wasm_module_path, nullptr, "directory to dump wasm modules to") -// Declare command-line flags for WASM features. Warning: avoid using these +// Declare command-line flags for Wasm features. Warning: avoid using these // flags directly in the implementation. Instead accept wasm::WasmFeatures // for configurability. #include "src/wasm/wasm-feature-flags.h" diff --git a/src/init/bootstrapper.cc b/src/init/bootstrapper.cc index 3c414b8409..22d33eaf91 100644 --- a/src/init/bootstrapper.cc +++ b/src/init/bootstrapper.cc @@ -4997,7 +4997,7 @@ bool Genesis::InstallSpecialObjects(Isolate* isolate, WasmJs::Install(isolate, true); } else if (FLAG_validate_asm) { // Install the internal data structures only; these are needed for asm.js - // translated to WASM to work correctly. + // translated to Wasm to work correctly. WasmJs::Install(isolate, false); } diff --git a/src/inspector/v8-debugger-agent-impl.cc b/src/inspector/v8-debugger-agent-impl.cc index c28ac0f209..2e5c8cd417 100644 --- a/src/inspector/v8-debugger-agent-impl.cc +++ b/src/inspector/v8-debugger-agent-impl.cc @@ -1498,7 +1498,7 @@ void V8DebuggerAgentImpl::didParseSource( return; } - // TODO(herhut, dgozman): Report correct length for WASM if needed for + // TODO(herhut, dgozman): Report correct length for Wasm if needed for // coverage. Or do not send the length at all and change coverage instead. if (scriptRef->isSourceLoadedLazily()) { m_frontend.scriptParsed( diff --git a/src/objects/backing-store.cc b/src/objects/backing-store.cc index d7fc88aa05..52ab0085f7 100644 --- a/src/objects/backing-store.cc +++ b/src/objects/backing-store.cc @@ -635,7 +635,7 @@ void GlobalBackingStoreRegistry::Register( // BackingStore per buffer_start() because the destructor of // of the BackingStore will be a no-op in that case. - // All WASM memory has to be registered. + // All Wasm memory has to be registered. CHECK(!backing_store->is_wasm_memory()); return; } diff --git a/src/wasm/module-compiler.cc b/src/wasm/module-compiler.cc index a94d35d371..369dcfd9f7 100644 --- a/src/wasm/module-compiler.cc +++ b/src/wasm/module-compiler.cc @@ -989,7 +989,7 @@ bool ExecuteCompilationUnits( TRACE_COMPILE("Compiling (task %d)...\n", task_id); TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("v8.wasm"), "ExecuteCompilationUnits"); - // Execute JS to WASM wrapper units first, so that they are ready to be + // Execute JS to Wasm wrapper units first, so that they are ready to be // finalized by the main thread when the kFinishedBaselineCompilation event is // triggered. if (!ExecuteJSToWasmWrapperCompilationUnits(token)) { diff --git a/src/wasm/module-instantiate.cc b/src/wasm/module-instantiate.cc index fd40660102..08bd8ff871 100644 --- a/src/wasm/module-instantiate.cc +++ b/src/wasm/module-instantiate.cc @@ -844,7 +844,7 @@ bool InstanceBuilder::ProcessImportedFunction( import_index, module_name, import_name); return false; case compiler::WasmImportCallKind::kWasmToWasm: { - // The imported function is a WASM function from another instance. + // The imported function is a Wasm function from another instance. auto imported_function = Handle::cast(js_receiver); Handle imported_instance( imported_function->instance(), isolate_); diff --git a/src/wasm/wasm-engine.h b/src/wasm/wasm-engine.h index 20c3a27f13..7d14fef506 100644 --- a/src/wasm/wasm-engine.h +++ b/src/wasm/wasm-engine.h @@ -131,13 +131,13 @@ class NativeModuleCache { }; // The central data structure that represents an engine instance capable of -// loading, instantiating, and executing WASM code. +// loading, instantiating, and executing Wasm code. class V8_EXPORT_PRIVATE WasmEngine { public: WasmEngine(); ~WasmEngine(); - // Synchronously validates the given bytes that represent an encoded WASM + // Synchronously validates the given bytes that represent an encoded Wasm // module. bool SyncValidate(Isolate* isolate, const WasmFeatures& enabled, const ModuleWireBytes& bytes); @@ -152,14 +152,14 @@ class V8_EXPORT_PRIVATE WasmEngine { Isolate* isolate, Handle asm_wasm_data, Handle