This file contains hidden or 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
#! /usr/bin/python3 | |
"""Ensure all identifiers match the supported format. | |
""" | |
import argparse | |
import glob | |
import os | |
import subprocess | |
import sys |
This file contains hidden or 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
#! /usr/bin/python3 | |
"""Translate from the legacy if-else text syntax to the standard syntax | |
""" | |
import argparse | |
import glob | |
import os | |
import subprocess | |
import sys |
This file contains hidden or 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
<script> | |
console.log('Starting up'); | |
var receiverCode = '(' + (() => { | |
console.log('Hello from receiver'); | |
self.onmessage = (msg) => { | |
if (typeof msg.data === 'string') { | |
console.log('received from main:', msg.data); | |
} else { |
This file contains hidden or 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
#include <assert.h> | |
#include <fcntl.h> | |
#include <pthread.h> | |
#include <stdbool.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <time.h> | |
#include <unistd.h> |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
;;; Code generated by J2WASM | |
(module | |
(global $java.lang.Object.rtt (rtt 0 $java.lang.Object) (rtt.canon $java.lang.Object)) | |
(global $TestRunner.rtt (rtt 1 $TestRunner) (rtt.sub $TestRunner (global.get $java.lang.Object.rtt))) | |
(global $java.beans.Beans.rtt (rtt 1 $java.beans.Beans) (rtt.sub $java.beans.Beans (global.get $java.lang.Object.rtt))) | |
(global $java.io.Writer.rtt (rtt 1 $java.io.Writer) (rtt.sub $java.io.Writer (global.get $java.lang.Object.rtt))) | |
(global $java.io.BufferedWriter.rtt (rtt 2 $java.io.BufferedWriter) (rtt.sub $java.io.BufferedWriter (global.get $java.io.Writer.rtt))) | |
(global $java.io.InputStream.rtt (rtt 1 $java.io.InputStream) (rtt.sub $java.io.InputStream (global.get $java.lang.Object.rtt))) | |
(global $java.io.ByteArrayInputStream.rtt (rtt 2 $java.io.ByteArrayInputStream) (rtt.sub $java.io.ByteArrayInputStream (global.get $java.io.InputStream.rtt))) | |
(global $java.io.OutputStream.rtt (rtt 1 $java.io.OutputStream) (rtt.sub $java.io.OutputStream (global.get $java.lang.Object.rtt))) |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
;;; Code generated by J2WASM | |
(module | |
(global $java.lang.Object.rtt (rtt 0 $java.lang.Object) (rtt.canon $java.lang.Object)) | |
(global $TestRunner.rtt (rtt 1 $TestRunner) (rtt.sub $TestRunner (global.get $java.lang.Object.rtt))) | |
(global $java.beans.Beans.rtt (rtt 1 $java.beans.Beans) (rtt.sub $java.beans.Beans (global.get $java.lang.Object.rtt))) | |
(global $java.io.Writer.rtt (rtt 1 $java.io.Writer) (rtt.sub $java.io.Writer (global.get $java.lang.Object.rtt))) | |
(global $java.io.BufferedWriter.rtt (rtt 2 $java.io.BufferedWriter) (rtt.sub $java.io.BufferedWriter (global.get $java.io.Writer.rtt))) | |
(global $java.io.InputStream.rtt (rtt 1 $java.io.InputStream) (rtt.sub $java.io.InputStream (global.get $java.lang.Object.rtt))) | |
(global $java.io.ByteArrayInputStream.rtt (rtt 2 $java.io.ByteArrayInputStream) (rtt.sub $java.io.ByteArrayInputStream (global.get $java.io.InputStream.rtt))) | |
(global $java.io.OutputStream.rtt (rtt 1 $java.io.OutputStream) (rtt.sub $java.io.OutputStream (global.get $java.lang.Object.rtt))) |
This file contains hidden or 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 | |
(type $0 (func (param i32 i32 i32 i32) (result i32))) | |
(import "env" "memory" (memory $1 16384)) | |
(import "env" "table" (table $timport$2 176438 176438 funcref)) | |
(import "env" "tableBase" (global $gimport$0 i32)) | |
(func $0 (; 0 ;) (type $0) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32) | |
(block $label$1 | |
(block $label$2 | |
(block $label$3 | |
(br_table $label$2 $label$2 $label$2 |
This file contains hidden or 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
// testing functions | |
static void log_freelists(); | |
static bool validate_freelists(); | |
static void get_freelist_lens(size_t lens[BLOCK_SIZES]); | |
// test_kalloc | |
// Run unit tests on the kalloc system. | |
void test_kalloc() { | |
assert(validate_freelists()); |
This file contains hidden or 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
#include <stdbool.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#define N_ITEMS 10 | |
/* Uncomment this section to use linked lists | |
typedef struct node | |
{ | |
int val; |
This file contains hidden or 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
#include <stdbool.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#define N_ITEMS 10 | |
/* Uncomment this section to use linked lists | |
typedef struct node | |
{ | |
int val; |
NewerOlder