Skip to content

Instantly share code, notes, and snippets.

View awesomekling's full-sized avatar
🐞
https://youtube.com/c/AndreasKling

Andreas Kling awesomekling

🐞
https://youtube.com/c/AndreasKling
View GitHub Profile
#include <AK/DistinctNumeric.h>
#include <AK/NonnullOwnPtr.h>
#include <AK/Vector.h>
#include <LibMain/Main.h>
#include <sys/mman.h>
// JS::Bytecode::Executable (jitme)
// 1:
//[ 0] Store $5
//[ 20] LoadImmediate 0
diff --git a/Userland/Libraries/LibJS/AST.cpp b/Userland/Libraries/LibJS/AST.cpp
index 2e2c483824..ddf3b66c7a 100644
--- a/Userland/Libraries/LibJS/AST.cpp
+++ b/Userland/Libraries/LibJS/AST.cpp
@@ -289,42 +289,358 @@ Completion FunctionDeclaration::execute(Interpreter& interpreter) const
}
// 15.2.6 Runtime Semantics: Evaluation, https://tc39.es/ecma262/#sec-function-definitions-runtime-semantics-evaluation
+// 15.3.5 Runtime Semantics: Evaluation, https://tc39.es/ecma262/#sec-arrow-function-definitions-runtime-semantics-evaluation
+// 15.5.5 Runtime Semantics: Evaluation, https://tc39.es/ecma262/#sec-generator-function-definitions-runtime-semantics-evaluation

My icecream setup

This is a description of how I run icecc/icecream at home.

I'm using Ubuntu with the icecc and icecc-monitor packages installed. The latter is an optional GUI monitor application.

My "cluster" is currently two machines on a wired LAN:

192.168.10.1 qncvs
@awesomekling
awesomekling / enumeration-macros.md
Created May 24, 2020 11:41
Preprocessor enumeration macros in C and C++

Here's a trick to avoid repeating a list of things in multiple places:

#define ENUMERATE_THINGS \
    ENUMERATE_THING(Foo) \
    ENUMERATE_THING(Bar) \
    ENUMERATE_THING(Baz)

#define ENUMERATE_THING(thing) thing
ENUMERATE_THINGS