Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
timoshisa committed Jan 23, 2023
1 parent 634973a commit 0194f73
Show file tree
Hide file tree
Showing 25 changed files with 718 additions and 412 deletions.
5 changes: 5 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module github.com/grexie/isolates

go 1.17

require github.com/grexie/refutils v0.1.1
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/grexie/refutils v0.1.1 h1:106Cml8XyqD9eiBNg9lNurvfe6IuvuydS1YJEc9cs4o=
github.com/grexie/refutils v0.1.1/go.mod h1:jnl4Ft2YXrxwMKPiBrHYwMO6tAEtFzn6M0oHBEgBWRA=
8 changes: 6 additions & 2 deletions install-v8.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -e
#!/bin/bash -ex

V8DIR="$(cd $(dirname ${BASH_SOURCE[0]}) && pwd)"

Expand All @@ -15,7 +15,11 @@ go env >libv8.env
rm libv8.env

case $GOOS in
darwin) curl -sSL https://rubygems.org/downloads/libv8-6.3.292.48.1-universal-darwin-18.gem | tar -xf -;;
darwin) case $GOARCH in
arm64) curl -sSL https://rubygems.org/downloads/libv8-6.3.292.48.1-universal-darwin-18.gem | tar -xf -;;
amd64) curl -sSL https://rubygems.org/downloads/libv8-6.3.292.48.1-x86_64-darwin-18.gem | tar -xf -;;
*) curl -sSL https://rubygems.org/downloads/libv8-6.3.292.48.1-${GOARCH}-darwin-18.gem | tar -xf -;;
esac;;
linux) case $GOARCH in
arm) curl -sSL http://tim-behrsin-portfolio.s3.amazonaws.com/libv8-6.3.292.48.1-arm-linux.gem | tar -xf -;;
amd64) curl -sSL https://rubygems.org/downloads/libv8-6.3.292.48.1-x86_64-linux.gem | tar -xf -;;
Expand Down
2 changes: 1 addition & 1 deletion v8.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v8
package isolates

// #include "v8_c_bridge.h"
// #cgo CXXFLAGS: -I${SRCDIR} -I${SRCDIR}/include -g3 -fno-rtti -fpic -std=c++11
Expand Down
2 changes: 1 addition & 1 deletion v8_arch_386.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package v8
package isolates

const maxArraySize uint8 = 30
2 changes: 1 addition & 1 deletion v8_arch_amd64.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package v8
package isolates

const maxArraySize uint8 = 62
2 changes: 1 addition & 1 deletion v8_arch_arm.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package v8
package isolates

const maxArraySize uint8 = 30
3 changes: 3 additions & 0 deletions v8_arch_arm64.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package isolates

const maxArraySize uint8 = 62
Loading

0 comments on commit 0194f73

Please sign in to comment.