repo_id stringlengths 22 103 | file_path stringlengths 41 147 | content stringlengths 181 193k | __index_level_0__ int64 0 0 |
|---|---|---|---|
data/mdn-content/files/en-us/webassembly/reference/memory | data/mdn-content/files/en-us/webassembly/reference/memory/size/index.md | ---
title: Size
slug: WebAssembly/Reference/Memory/Size
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`size`** instruction, returns the amount of pages the memory instance currently has, each page is sized 64KiB.
{{EmbedInteractiveExample("pages/wat/size.html", "tabbed-standard")}}
## Syntax
... | 0 |
data/mdn-content/files/en-us/webassembly/reference/memory | data/mdn-content/files/en-us/webassembly/reference/memory/load/index.md | ---
title: Load
slug: WebAssembly/Reference/Memory/Load
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`load`** instructions, are used to load a number from memory onto the stack.
For the integer numbers, you can also load a narrower number from memory and extend it into a wider type, e.g. load ... | 0 |
data/mdn-content/files/en-us/webassembly/reference/memory | data/mdn-content/files/en-us/webassembly/reference/memory/fill/index.md | ---
title: Fill
slug: WebAssembly/Reference/Memory/Fill
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`fill`** instruction sets all bytes in a memory region to a given byte.
The **`fill`** instruction does not return a value. If the memory region indicated is out of bounds this instruction will... | 0 |
data/mdn-content/files/en-us/webassembly/reference/memory | data/mdn-content/files/en-us/webassembly/reference/memory/copy/index.md | ---
title: Copy
slug: WebAssembly/Reference/Memory/Copy
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`copy`** instruction copies data from one region of memory to another.
The **`copy`** instruction does not return a value. If either the source or destination range is out of bounds, the instru... | 0 |
data/mdn-content/files/en-us/webassembly/reference | data/mdn-content/files/en-us/webassembly/reference/numeric/index.md | ---
title: WebAssembly numeric instructions
slug: WebAssembly/Reference/Numeric
page-type: landing-page
---
{{WebAssemblySidebar}}
WebAssembly numeric instructions.
## Constants
- [`Const`](/en-US/docs/WebAssembly/Reference/Numeric/Const)
- : Declare a constant numbers.
## Comparison
- [`Equal`](/en-US/docs/Web... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/right_rotate/index.md | ---
title: Right rotate
slug: WebAssembly/Reference/Numeric/Right_rotate
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`rotr`** instructions, short for _rotate-right_, are used for performing a bitwise right-rotate.
{{EmbedInteractiveExample("pages/wat/rotr.html", "tabbed-taller")}}
## Syntax
... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/greater_or_equal/index.md | ---
title: Greater or equal
slug: WebAssembly/Reference/Numeric/Greater_or_equal
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`ge`** instructions, short for _greater or equal_, check if a number is greater than or equal to another number. If the first number is greater than or equal to the seco... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/not_equal/index.md | ---
title: Not equal
slug: WebAssembly/Reference/Numeric/Not_equal
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`ne`** instructions, short for _not equal_, check if two numbers are not equal. If the numbers are not equal `1` will be pushed on to the stack, otherwise `0` will be pushed on to the... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/wrap/index.md | ---
title: Wrap
slug: WebAssembly/Reference/Numeric/Wrap
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`wrap`** instruction, is used to convert numbers of type `i64` to type `i32`. If the number is larger than what an `i32` can hold this operation will wrap, resulting in a different number.
One... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/remainder/index.md | ---
title: Remainder
slug: WebAssembly/Reference/Numeric/Remainder
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`rem`** instructions, short for _remainder_, are used to calculate the remainder left over when one integer is divided by another integer, similar to the **`%`** operator in other lan... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/floor/index.md | ---
title: Floor
slug: WebAssembly/Reference/Numeric/Floor
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`floor`** instructions, are used for getting the value of a number rounded down to the next integer.
**`floor`** differs from **`trunc`** when used on negative numbers, **`floor`** will roun... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/or/index.md | ---
title: OR
slug: WebAssembly/Reference/Numeric/OR
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`or`** instructions, are used for performing a bitwise OR, similar to the **`|`** operator in other languages.
{{EmbedInteractiveExample("pages/wat/or.html", "tabbed-taller")}}
## Syntax
```wasm... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/and/index.md | ---
title: AND
slug: WebAssembly/Reference/Numeric/AND
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`and`** instructions, are used for performing a bitwise AND, similar to the **`&`** operator in other languages.
{{EmbedInteractiveExample("pages/wat/and.html", "tabbed-taller")}}
## Syntax
``... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/xor/index.md | ---
title: XOR
slug: WebAssembly/Reference/Numeric/XOR
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`xor`** instructions, are used for performing a bitwise XOR, similar to the **`^`** operator in other languages.
{{EmbedInteractiveExample("pages/wat/xor.html", "tabbed-taller")}}
## Syntax
``... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/count_leading_zeros/index.md | ---
title: Count leading zeros
slug: WebAssembly/Reference/Numeric/Count_leading_zeros
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`clz`** instructions, short for _count leading zeros_, are used to count the amount of zeros at the start of the numbers binary representation.
{{EmbedInteractive... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/less_or_equal/index.md | ---
title: Less or equal
slug: WebAssembly/Reference/Numeric/Less_or_equal
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`le`** instructions, short for _less or equal_, check if a number is less than or equal to another number. If the first number is less than or equal to the second number equal... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/population_count/index.md | ---
title: Population count
slug: WebAssembly/Reference/Numeric/Population_count
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`popcnt`** instructions, short for _population count_, are used to count the amount of `1`s in a numbers binary representation.
{{EmbedInteractiveExample("pages/wat/pop... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/negate/index.md | ---
title: Negate
slug: WebAssembly/Reference/Numeric/Negate
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`neg`** instructions, short for _negate_, are used to negate a number. That is, turn a positive number into a negative number and a negative number into a positive number.
{{EmbedInteracti... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/equal/index.md | ---
title: Equal
slug: WebAssembly/Reference/Numeric/Equal
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`eq`** instructions, short for _equal_, check if two numbers are equal. If both numbers are equal `1` will be pushed on to the stack, otherwise `0` will be pushed on to the stack.
Similarly,... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/extend/index.md | ---
title: Extend
slug: WebAssembly/Reference/Numeric/Extend
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`extend`** instructions, are used to convert (extend) numbers of type `i32` to type `i64`. There are signed and unsigned versions of this instruction.
{{EmbedInteractiveExample("pages/wat/... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/multiplication/index.md | ---
title: Multiplication
slug: WebAssembly/Reference/Numeric/Multiplication
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`mul`** instructions, short for _multiplication_, are used for multiplying one number by another number, similar to the **`*`** operator in other languages.
{{EmbedInteract... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/ceil/index.md | ---
title: Ceil
slug: WebAssembly/Reference/Numeric/Ceil
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`ceil`** instructions, are used for getting the value of a number rounded up to the next integer.
{{EmbedInteractiveExample("pages/wat/ceil.html", "tabbed-standard")}}
## Syntax
```wasm
;; l... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/greater_than/index.md | ---
title: Greater than
slug: WebAssembly/Reference/Numeric/Greater_than
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`gt`** instructions, short for _greater than_, check if a number is greater than another number. If the first number is greater than the second number equal `1` will be pushed o... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/division/index.md | ---
title: Division
slug: WebAssembly/Reference/Numeric/Division
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`div`** instructions, short for _division_, are used for dividing one number by another, similar to the **`/`** operator in other languages.
{{EmbedInteractiveExample("pages/wat/div.ht... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/promote/index.md | ---
title: Promote
slug: WebAssembly/Reference/Numeric/Promote
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`promote`** instruction, is used to convert (promote) numbers of type `f32` to type `f64`.
{{EmbedInteractiveExample("pages/wat/promote.html", "tabbed-taller")}}
## Syntax
```wasm
;; p... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/reinterpret/index.md | ---
title: Reinterpret
slug: WebAssembly/Reference/Numeric/Reinterpret
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`reinterpret`** instructions, are used to reinterpret the bits of a number as a different type.
{{EmbedInteractiveExample("pages/wat/reinterpret.html", "tabbed-taller")}}
## Syn... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/count_trailing_zeros/index.md | ---
title: Count trailing zeros
slug: WebAssembly/Reference/Numeric/Count_trailing_zeros
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`ctz`** instructions, short for _count trailing zeros_, are used to count the amount of zeros at the end of the numbers binary representation.
{{EmbedInteractiv... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/const/index.md | ---
title: Const
slug: WebAssembly/Reference/Numeric/Const
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`const`** instructions, are used to declare numbers.
{{EmbedInteractiveExample("pages/wat/const.html", "tabbed-standard")}}
## Syntax
```wasm
;; push `5` onto the stack
i32.const 5
```
| ... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/right_shift/index.md | ---
title: Right shift
slug: WebAssembly/Reference/Numeric/Right_shift
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`shr`** instructions, short for _shift-right_, are used for performing a bitwise right-shift, similar to the **`>>>`** operator in other languages.
{{EmbedInteractiveExample("pag... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/convert/index.md | ---
title: Convert
slug: WebAssembly/Reference/Numeric/Convert
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`convert`** instructions, are used for converting integer numbers to floating point numbers. There are signed and unsigned versions of this instruction.
{{EmbedInteractiveExample("pages/... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/copy_sign/index.md | ---
title: Copy sign
slug: WebAssembly/Reference/Numeric/Copy_sign
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`copysign`** instructions, are used to copy just the sign bit from one number to another.
{{EmbedInteractiveExample("pages/wat/copysign.html", "tabbed-taller")}}
## Syntax
```wasm
... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/truncate_float_to_float/index.md | ---
title: Truncate (float to float)
slug: WebAssembly/Reference/Numeric/Truncate_float_to_float
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`trunc`** instructions, short for _truncate_, are used for getting the value of a number without its fractional part.
**`trunc`** differs from **`floor`... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/square_root/index.md | ---
title: Square root
slug: WebAssembly/Reference/Numeric/Square_root
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`sqrt`** instructions, short for _square root_, are used to get the square root of a number.
{{EmbedInteractiveExample("pages/wat/sqrt.html", "tabbed-standard")}}
## Syntax
```... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/truncate_float_to_int/index.md | ---
title: Truncate (float to int)
slug: WebAssembly/Reference/Numeric/Truncate_float_to_int
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`trunc`** instructions, are used for converting floating points to integers. It's named truncate since it truncates the fractional part of the number when do... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/addition/index.md | ---
title: Addition
slug: WebAssembly/Reference/Numeric/Addition
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`add`** instructions, are used for adding up two numbers, similar to the **`+`** operator in other languages.
{{EmbedInteractiveExample("pages/wat/add.html", "tabbed-taller")}}
## Syn... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/demote/index.md | ---
title: Demote
slug: WebAssembly/Reference/Numeric/Demote
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`demote`** instruction, is used to convert (demote) numbers of type `f64` to type `f32`.
{{EmbedInteractiveExample("pages/wat/demote.html", "tabbed-taller")}}
## Syntax
```wasm
;; push a... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/min/index.md | ---
title: Min
slug: WebAssembly/Reference/Numeric/Min
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`min`** instructions, are used for getting the lower of two numbers.
{{EmbedInteractiveExample("pages/wat/min.html", "tabbed-taller")}}
## Syntax
```wasm
;; load two numbers onto the stack
f32... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/left_shift/index.md | ---
title: Left shift
slug: WebAssembly/Reference/Numeric/Left_shift
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`shl`** instructions, short for _shift-left_, are used for performing a bitwise left-shift, similar to the **`<<`** operator in other languages.
{{EmbedInteractiveExample("pages/wa... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/nearest/index.md | ---
title: Nearest
slug: WebAssembly/Reference/Numeric/Nearest
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`nearest`** instructions, are used for getting the value of a number rounded to the nearest integer.
{{EmbedInteractiveExample("pages/wat/nearest.html", "tabbed-standard")}}
## Syntax
... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/left_rotate/index.md | ---
title: Left rotate
slug: WebAssembly/Reference/Numeric/Left_rotate
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`rotl`** instructions, short for _rotate-left_, are used for performing a bitwise left-rotate.
{{EmbedInteractiveExample("pages/wat/rotl.html", "tabbed-taller")}}
## Syntax
```... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/subtraction/index.md | ---
title: Subtraction
slug: WebAssembly/Reference/Numeric/Subtraction
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`sub`** instructions, short for _subtraction_, are used for subtracting one number from another number, similar to the **`-`** operator in other languages.
{{EmbedInteractiveExam... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/absolute/index.md | ---
title: Absolute
slug: WebAssembly/Reference/Numeric/Absolute
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`abs`** instructions, short for _absolute_, are used to get the absolute value of a number. That is, it returns x if x is positive, and the negation of x if x is negative.
{{EmbedInter... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/max/index.md | ---
title: Max
slug: WebAssembly/Reference/Numeric/Max
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`max`** instructions, are used for getting the higher of two numbers.
{{EmbedInteractiveExample("pages/wat/max.html", "tabbed-taller")}}
## Syntax
```wasm
;; load two numbers onto the stack
f3... | 0 |
data/mdn-content/files/en-us/webassembly/reference/numeric | data/mdn-content/files/en-us/webassembly/reference/numeric/less_than/index.md | ---
title: Less than
slug: WebAssembly/Reference/Numeric/Less_than
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`lt`** instructions, short for _less than_, check if a number is less than another number. If the first number is less than the second number equal `1` will be pushed on to the stack,... | 0 |
data/mdn-content/files/en-us/webassembly/reference | data/mdn-content/files/en-us/webassembly/reference/variables/index.md | ---
title: WebAssembly variable instructions
slug: WebAssembly/Reference/Variables
page-type: landing-page
---
{{WebAssemblySidebar}}
WebAssembly variable instructions.
- [`Declare local`](/en-US/docs/WebAssembly/Reference/Variables/Local)
- : Declare a new local variable.
- [`Get local`](/en-US/docs/WebAssembly/R... | 0 |
data/mdn-content/files/en-us/webassembly/reference/variables | data/mdn-content/files/en-us/webassembly/reference/variables/local/index.md | ---
title: Local
slug: WebAssembly/Reference/Variables/Local
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`local`** instruction declares a new local variable.
{{EmbedInteractiveExample("pages/wat/local.html", "tabbed-taller")}}
## Syntax
```wasm
;; declare new variable named $val of type i32... | 0 |
data/mdn-content/files/en-us/webassembly/reference/variables | data/mdn-content/files/en-us/webassembly/reference/variables/local_get/index.md | ---
title: Local get
slug: WebAssembly/Reference/Variables/Local_get
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`local.get`** instruction loads the value of a local variable onto the stack.
{{EmbedInteractiveExample("pages/wat/local.html", "tabbed-taller")}}
## Syntax
```wasm
;; load the v... | 0 |
data/mdn-content/files/en-us/webassembly/reference/variables | data/mdn-content/files/en-us/webassembly/reference/variables/global_get/index.md | ---
title: Global get
slug: WebAssembly/Reference/Variables/Global_get
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`global.get`** instruction loads the value of a global variable onto the stack.
{{EmbedInteractiveExample("pages/wat/global_get.html", "tabbed-standard")}}
## Syntax
```wasm
;;... | 0 |
data/mdn-content/files/en-us/webassembly/reference/variables | data/mdn-content/files/en-us/webassembly/reference/variables/local_tee/index.md | ---
title: Local tee
slug: WebAssembly/Reference/Variables/Local_tee
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`local.tee`** instruction sets the value of a local variable and loads the value onto the stack.
The instruction is named after the T-splitter used in plumbing.
{{EmbedInteractive... | 0 |
data/mdn-content/files/en-us/webassembly/reference/variables | data/mdn-content/files/en-us/webassembly/reference/variables/global/index.md | ---
title: Global
slug: WebAssembly/Reference/Variables/Global
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`global`** instruction declares a new global variable.
{{EmbedInteractiveExample("pages/wat/global.html", "tabbed-taller")}}
## Syntax
```wasm
;; declare new variable named $val of typ... | 0 |
data/mdn-content/files/en-us/webassembly/reference/variables | data/mdn-content/files/en-us/webassembly/reference/variables/global_set/index.md | ---
title: Global set
slug: WebAssembly/Reference/Variables/Global_set
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`global.set`** instruction sets the values of a global variable.
{{EmbedInteractiveExample("pages/wat/global_set.html", "tabbed-taller")}}
## Syntax
```wasm
;; load the number ... | 0 |
data/mdn-content/files/en-us/webassembly/reference/variables | data/mdn-content/files/en-us/webassembly/reference/variables/local_set/index.md | ---
title: Local set
slug: WebAssembly/Reference/Variables/Local_set
page-type: webassembly-instruction
---
{{WebAssemblySidebar}}
The **`local.set`** instruction sets the values of a local variable.
{{EmbedInteractiveExample("pages/wat/local.html", "tabbed-taller")}}
## Syntax
```wasm
;; load the number 2 onto th... | 0 |
data/mdn-content/files/en-us/webassembly | data/mdn-content/files/en-us/webassembly/c_to_wasm/index.md | ---
title: Compiling a New C/C++ Module to WebAssembly
slug: WebAssembly/C_to_Wasm
page-type: guide
---
{{WebAssemblySidebar}}
When you've written a new code module in a language like C/C++, you can compile it into WebAssembly using a tool like [Emscripten](https://emscripten.org/). Let's look at how it works.
## Em... | 0 |
data/mdn-content/files/en-us | data/mdn-content/files/en-us/mozilla/index.md | ---
title: Mozilla
slug: Mozilla
page-type: landing-page
---
{{FirefoxSidebar}}
The articles below include content about downloading and building Mozilla code. In addition, you'll find helpful articles about how the code works, how to build add-ons for Mozilla applications and the like.
{{LandingPageListSubpages}}
| 0 |
data/mdn-content/files/en-us/mozilla | data/mdn-content/files/en-us/mozilla/firefox/index.md | ---
title: Firefox
slug: Mozilla/Firefox
page-type: landing-page
---
{{FirefoxSidebar}}
[Firefox](https://www.mozilla.org/firefox/) is Mozilla's popular Web browser, available for multiple platforms including Windows, macOS, and Linux on the desktop and all Android and iOS mobile devices. With broad compatibility, th... | 0 |
data/mdn-content/files/en-us/mozilla/firefox | data/mdn-content/files/en-us/mozilla/firefox/experimental_features/index.md | ---
title: Experimental features in Firefox
slug: Mozilla/Firefox/Experimental_features
page-type: guide
---
{{FirefoxSidebar}}
This page lists Firefox's experimental and partially implemented features, including those for proposed or cutting-edge web platform standards, along with information on the builds in which ... | 0 |
data/mdn-content/files/en-us/mozilla/firefox | data/mdn-content/files/en-us/mozilla/firefox/releases/index.md | ---
title: Firefox release notes for developers
slug: Mozilla/Firefox/Releases
page-type: landing-page
---
{{FirefoxSidebar}}
Below you'll find links to the developer release notes for every Firefox release. These lovingly-crafted notes provide details on what features and APIs were added and improved and what bugs w... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/90/index.md | ---
title: Firefox 90 for developers
slug: Mozilla/Firefox/Releases/90
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
This article provides information about the changes in Firefox 90 that will affect developers. Firefox 90 was released on July 13th, 2021.
> **Note:** See also [Getting lively with Firefox 9... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/108/index.md | ---
title: Firefox 108 for developers
slug: Mozilla/Firefox/Releases/108
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
This article provides information about the changes in Firefox 108 that will affect developers. Firefox 108 was released on December 13, 2022.
## Changes for web developers
### HTML
- Th... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/73/index.md | ---
title: Firefox 73 for developers
slug: Mozilla/Firefox/Releases/73
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
This article provides information about the changes in Firefox 73 that will affect developers. Firefox 73 was released on February 11, 2020.
## Changes for web developers
### Developer tool... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/54/index.md | ---
title: Firefox 54 for developers
slug: Mozilla/Firefox/Releases/54
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
Firefox 54 was released on June 13, 2017. This article lists key changes that are useful for web developers.
## Changes for Web developers
### Developer Tools
- The network request summary... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/79/index.md | ---
title: Firefox 79 for developers
slug: Mozilla/Firefox/Releases/79
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
This article provides information about the changes in Firefox 79 that will affect developers. Firefox 79 was released on July 28, 2020.
See also [Firefox 79: The safe return of shared memor... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/117/index.md | ---
title: Firefox 117 for developers
slug: Mozilla/Firefox/Releases/117
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
This article provides information about the changes in Firefox 117 that affect developers. Firefox 117 was released on August 29, 2023.
## Changes for web developers
### HTML
No notable ... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/43/index.md | ---
title: Firefox 43 for developers
slug: Mozilla/Firefox/Releases/43
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
[To test the latest developer features of Firefox, install Firefox Developer Edition](https://www.mozilla.org/firefox/developer/) Firefox 43 was released on December 15, 2015. This article li... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/27/index.md | ---
title: Firefox 27 for developers
slug: Mozilla/Firefox/Releases/27
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
Firefox 27 was released on February 4, 2014. This article lists key changes that are useful not only for web developers, but also Firefox and Gecko developers as well as add-on developers.
#... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/24/index.md | ---
title: Firefox 24 for developers
slug: Mozilla/Firefox/Releases/24
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
## Changes for Web developers
### CSS
- The two values `-moz-zoom-in` and `-moz-zoom-out` of the {{cssxref("cursor")}} property have been unprefixed to `zoom-in` and `zoom-out` ([Firefox bu... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/78/index.md | ---
title: Firefox 78 for developers
slug: Mozilla/Firefox/Releases/78
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
This article provides information about the changes in Firefox 78 that will affect developers. Firefox 78 was released on June 30, 2020.
See also [New in Firefox 78: DevTools improvements, n... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/35/index.md | ---
title: Firefox 35 for developers
slug: Mozilla/Firefox/Releases/35
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
Firefox 35 was released on January 13th, 2015. This article lists key changes that are useful not only for web developers, but also Firefox and Gecko developers as well as add-on developers.
... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/51/index.md | ---
title: Firefox 51 for developers
slug: Mozilla/Firefox/Releases/51
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
[To test the latest developer features of Firefox, install Firefox Developer Edition](https://www.mozilla.org/firefox/developer/)Firefox 51 was released on January 24, 2017. This article list... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/62/index.md | ---
title: Firefox 62 for developers
slug: Mozilla/Firefox/Releases/62
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
This article provides information about the changes in Firefox 62 that will affect developers. Firefox 62 was released on September 5, 2018.
## Changes for web developers
### Developer tool... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/52/index.md | ---
title: Firefox 52 for developers
slug: Mozilla/Firefox/Releases/52
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
Firefox 52 was released on March 7, 2017. This article lists key changes that are useful not only for web developers, but also Firefox and Gecko developers as well as add-on developers.
## C... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/30/index.md | ---
title: Firefox 30 for developers
slug: Mozilla/Firefox/Releases/30
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
## Changes for Web developers
### Developer Tools
- A Box Model Highlighter has been implemented ([Firefox bug 663778](https://bugzil.la/663778)).
- Anywhere a DOM node appears in the conso... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/25/index.md | ---
title: Firefox 25 for developers
slug: Mozilla/Firefox/Releases/25
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
## Changes for Web developers
### New in Firefox DevTools
- The inspector now features autocompletion for CSS names and values.
- The debugger now lets you "black box" script files, to prev... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/19/index.md | ---
title: Firefox 19 for developers
slug: Mozilla/Firefox/Releases/19
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
Firefox 19 was released on February 19, 2013. This article lists key changes that are useful not only for web developers, but also Firefox and Gecko developers as well as add-on developers.
... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/95/index.md | ---
title: Firefox 95 for developers
slug: Mozilla/Firefox/Releases/95
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
This article provides information about the changes in Firefox 95 that will affect developers.
Firefox 95 was released on December 7, 2021.
## Changes for web developers
### HTML
- The [`i... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/22/index.md | ---
title: Firefox 22 for developers
slug: Mozilla/Firefox/Releases/22
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
## Changes for Web developers
### HTML
- The HTML5 {{HTMLElement("data")}} element has been implemented ([Firefox bug 839371](https://bugzil.la/839371)).
- The HTML5 {{HTMLElement("time")}}... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/1.5/index.md | ---
title: Firefox 1.5 for developers
slug: Mozilla/Firefox/Releases/1.5
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
Based on the [Gecko](/en-US/docs/Glossary/Gecko) 1.8 engine, Firefox 1.5 improved its already best in class standards support, and provided new capabilities to enable the next generation of... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases/1.5 | data/mdn-content/files/en-us/mozilla/firefox/releases/1.5/adapting_xul_applications_for_firefox_1.5/index.md | ---
title: Adapting XUL Applications for Firefox 1.5
slug: Mozilla/Firefox/Releases/1.5/Adapting_XUL_Applications_for_Firefox_1.5
page-type: guide
---
{{FirefoxSidebar}}
This page contains a list of changes in [Firefox 1.5](/en-US/docs/Mozilla/Firefox/Releases/1.5), affecting XUL developers.
### Specific Changes
- ... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases/1.5 | data/mdn-content/files/en-us/mozilla/firefox/releases/1.5/using_firefox_1.5_caching/index.md | ---
title: Using Firefox 1.5 caching
slug: Mozilla/Firefox/Releases/1.5/Using_Firefox_1.5_caching
page-type: guide
---
{{FirefoxSidebar}}
[Firefox 1.5](/en-US/docs/Mozilla/Firefox/Releases/1.5) uses in-memory caching for entire Web pages, including their JavaScript states, for a single browser session. Going backward... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases/1.5 | data/mdn-content/files/en-us/mozilla/firefox/releases/1.5/what_s_new_in_1.5_alpha/index.md | ---
title: What's New in Deer Park Alpha
slug: Mozilla/Firefox/Releases/1.5/What_s_new_in_1.5_alpha
page-type: guide
---
{{FirefoxSidebar}}
This page is based largely on [https://www.squarefree.com/burningedg...eases/](https://www.squarefree.com/burningedge/releases/) (thanks Jesse).
### New Web Developer Features
... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases/1.5 | data/mdn-content/files/en-us/mozilla/firefox/releases/1.5/changing_the_priority_of_http_requests/index.md | ---
title: Changing the Priority of HTTP Requests (Non-Standard)
slug: Mozilla/Firefox/Releases/1.5/Changing_the_priority_of_HTTP_requests
page-type: guide
---
{{FirefoxSidebar}}
> **Warning:** The approach described in this topic is non-standard, and not recommended.
>
> The best way to request resources over HTTP i... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/53/index.md | ---
title: Firefox 53 for developers
slug: Mozilla/Firefox/Releases/53
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
Firefox 53 was released on April 19, 2017. This article lists key changes that are useful not only for web developers but also for Firefox and Gecko developers, as well as add-on developers.
... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/97/index.md | ---
title: Firefox 97 for developers
slug: Mozilla/Firefox/Releases/97
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
This article provides information about the changes in Firefox 97 that affect developers. Firefox 97 was released on February 8, 2022.
## Changes for web developers
### HTML
No notable cha... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/65/index.md | ---
title: Firefox 65 for developers
slug: Mozilla/Firefox/Releases/65
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
This article provides information about the changes in Firefox 65 that will affect developers. Firefox 65 was released on January 29, 2019.
## Changes for web developers
### Developer tools... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/11/index.md | ---
title: Firefox 11 for developers
slug: Mozilla/Firefox/Releases/11
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
Firefox 11 shipped on March 13, 2012. This article provides information about the new features and key bugs fixed in this release, as well as links to more detailed documentation for both web... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/100/index.md | ---
title: Firefox 100 for developers
slug: Mozilla/Firefox/Releases/100
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
This article provides information about the changes in Firefox 100 that will affect developers. Firefox 100 was released on May 3, 2022.
## Changes for web developers
### HTML
No notable... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/115/index.md | ---
title: Firefox 115 for developers
slug: Mozilla/Firefox/Releases/115
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
This article provides information about the changes in Firefox 115 that affect developers. Firefox 115 was released on July 04, 2023.
## Changes for web developers
### HTML
- The [`modul... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/32/index.md | ---
title: Firefox 32 for developers
slug: Mozilla/Firefox/Releases/32
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
## Changes for Web developers
### Developer Tools
Highlights:
- [Web Audio Editor](https://firefox-source-docs.mozilla.org/devtools-user/web_audio_editor/index.html)
- _Code completion and... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/80/index.md | ---
title: Firefox 80 for developers
slug: Mozilla/Firefox/Releases/80
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
This article provides information about the changes in Firefox 80 that will affect developers. Firefox 80 was released on August 25, 2020.
## Changes for web developers
### Developer Tools
... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/50/index.md | ---
title: Firefox 50 for developers
slug: Mozilla/Firefox/Releases/50
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
[To test the latest developer features of Firefox, install Firefox Developer Edition](https://www.mozilla.org/firefox/developer/)Firefox 50 was released on November 15, 2016. This article lis... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/17/index.md | ---
title: Firefox 17 for developers
slug: Mozilla/Firefox/Releases/17
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
Firefox 17 shipped on November 20, 2012. This article lists key changes that are useful for not only web developers, but also Firefox and Gecko developers as well as add-on developers.
## Ch... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/96/index.md | ---
title: Firefox 96 for developers
slug: Mozilla/Firefox/Releases/96
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
This article provides information about the changes in Firefox 96 that affect developers. Firefox 96 was released on January 11, 2022.
## Changes for web developers
### HTML
No notable cha... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/46/index.md | ---
title: Firefox 46 for developers
slug: Mozilla/Firefox/Releases/46
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
[To test the latest developer features of Firefox, install Firefox Developer Edition](https://www.mozilla.org/firefox/developer/)Firefox 46 was released on April 26, 2016. This article lists ... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/60/index.md | ---
title: Firefox 60 for developers
slug: Mozilla/Firefox/Releases/60
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
This article provides information about the changes in Firefox 60 that will affect developers. Firefox 60 was released on May 9, 2018.
## Stylo comes to Firefox for Android in 60
[Firefox's... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/40/index.md | ---
title: Firefox 40 for developers
slug: Mozilla/Firefox/Releases/40
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
[To test the latest developer features of Firefox, install Firefox Developer Edition](https://www.mozilla.org/firefox/developer/) Firefox 40 was released on August 11, 2015. This article list... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/9/index.md | ---
title: Firefox 9 for developers
slug: Mozilla/Firefox/Releases/9
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
Firefox 9 was released for Windows on December 20, 2011. Mac and Linux version 9.0.1, which fixed a crashing bug discovered at the last minute, were released on December 21, 2011.
## Changes f... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases/9 | data/mdn-content/files/en-us/mozilla/firefox/releases/9/updating_add-ons/index.md | ---
title: Updating add-ons for Firefox 9
slug: Mozilla/Firefox/Releases/9/Updating_add-ons
page-type: guide
---
{{FirefoxSidebar}}
Firefox 9 doesn't have a lot of changes that should be compatibility issues for add-on developers. However, there are a few possible items that might trip you up, so let's take a look.
... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/67/index.md | ---
title: Firefox 67 for developers
slug: Mozilla/Firefox/Releases/67
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
This article provides information about the changes in Firefox 67 that will affect developers. Firefox 67 was released on May 21, 2019.
## Changes for web developers
### Developer tools
- ... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/94/index.md | ---
title: Firefox 94 for developers
slug: Mozilla/Firefox/Releases/94
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
This article provides information about the changes in Firefox 94 that will affect developers. Firefox 94 was released on November 2nd, 2021
## Changes for web developers
### HTML
No notab... | 0 |
data/mdn-content/files/en-us/mozilla/firefox/releases | data/mdn-content/files/en-us/mozilla/firefox/releases/99/index.md | ---
title: Firefox 99 for developers
slug: Mozilla/Firefox/Releases/99
page-type: firefox-release-notes
---
{{FirefoxSidebar}}
This article provides information about the changes in Firefox 99 that will affect developers. Firefox 99 was released on April 5, 2022.
## Changes for web developers
### HTML
No notable c... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.