This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>CSS詳細度テスト</title> | |
<style> | |
* { | |
font-size:10px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; JSの16進数字列からi64値に変換する | |
(func $hexArrayToi64 | |
;; 引数 | |
(param $length i32)(param $outoffset i32)(param $sign i32) | |
;; 戻り値 | |
(result i32) | |
;; ローカル変数 | |
(local $offset i32) (local $l i32) (local $temp i64) | |
(local.set $l (i32.shl (local.get $length) (i32.const 1))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; block | |
{@ | |
$.X = 0x1; | |
$.Y = 2; | |
$.Z = 0x3; | |
} | |
;; code | |
(module | |
(export "test" (func $test)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/ ForToken __ | |
"(" & __ | |
init:(ExpressionNoIn __ )? ";" __ | |
test:(Expression __)? ";" __ | |
update:(Expression __)? | |
")" __ | |
body:Statement | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import binaryen_ from '../binaryen-wasm'; | |
import fs from 'fs'; | |
export function getInstance(obj,imports = {}) { | |
const bin = new WebAssembly.Module(obj); | |
const inst = new WebAssembly.Instance(bin, imports); | |
return inst; | |
} | |
(async ()=>{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(module | |
(export "test" $test) | |
(memory $memory 1) | |
(export "memory" (memory $memory)) | |
(func $test | |
(drop(grow_memory (i32.const 3)));;3ページ分確保 | |
(i32.store | |
(i32.const 0) | |
(i32.mul (current_memory) (i32.const 65536));;現在のページ数にサイズ(65536bytes)をかけた数をオフセット0に格納 | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(module | |
(export "i32tof32" $i32tof32) | |
(export "i64tof64" $i64tof64) | |
;; IEE754 float32のビットパターンを持つ32ビット整数値をf32に変換する | |
(func $i32tof32 (param $i i32) (param $minus i32) (result f32) | |
(f32.reinterpret/i32 | |
(i32.xor | |
(get_local $i) | |
(get_local $minus) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typings | |
node_modules | |
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export i32 main(){ | |
i32 a = 0; | |
for(i32 c = 0;c < 4;++c) { | |
++a; | |
} | |
return a;// 4 | |
} |