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
# Install git: | |
sudo apt install git | |
# Install depot tools | |
Follow instructions https://v8.dev/docs/source-code. | |
# Fetch v8 source code. | |
# Use the branch of your choice. In will use 8.4-lkgr (last known good release). | |
# I'd advise always using -lkgr branches | |
fetch v8 |
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
// allocate a pointer to hold contents | |
let ptr: UnsafeMutableBufferPointer<UInt8> = UnsafeMutableBufferPointer<UInt8>.allocate(capacity: contents!.count) | |
// copy Data into ptr | |
contents?.withUnsafeBytes { (contentsPtr: UnsafePointer<UInt8>) -> Void in | |
let _ = ptr.initialize(from: UnsafeBufferPointer(start: contentsPtr, count: contents!.count)) | |
} | |
var exception : JSValueRef? | |
let deallocator: JSTypedArrayBytesDeallocator = { ptr, deallocatorContext in |
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
alias glog='git log --graph --pretty="format:%C(yellow)%h%Cred%d%Creset %s %C(white) %C(cyan)%an%Creset, %C(green)%ar%Creset"' |