forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from PiotrSikora/sync-1.3
Sync with envoy-wasm/master (2019-08-27).
- Loading branch information
Showing
63 changed files
with
26,848 additions
and
23,447 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,33 @@ | ||
# 1. Fix handling of f64 globals. | ||
# 2. Force full GC when destroying VMs. | ||
# 3. Fix build with -DDEBUG. | ||
--- a/wee8/src/wasm/c-api.cc | ||
+++ b/wee8/src/wasm/c-api.cc | ||
@@ -825,7 +825,7 @@ void global_set_f32(v8::Local<v8::Object> global, float val) { | ||
void global_set_f64(v8::Local<v8::Object> global, double val) { | ||
auto v8_object = v8::Utils::OpenHandle<v8::Object, i::JSReceiver>(global); | ||
auto v8_global = i::Handle<i::WasmGlobalObject>::cast(v8_object); | ||
- v8_global->SetF32(val); | ||
+ v8_global->SetF64(val); | ||
} | ||
# 1. Fix linking with unbundled toolchain on macOS. | ||
# 2. Increase VSZ limit to 4TiB (allows us to start up to 370 VMs). | ||
--- a/wee8/build/toolchain/gcc_toolchain.gni | ||
+++ b/wee8/build/toolchain/gcc_toolchain.gni | ||
@@ -355,6 +355,8 @@ template("gcc_toolchain") { | ||
# AIX does not support either -D (deterministic output) or response | ||
# files. | ||
command = "$ar -X64 {{arflags}} -r -c -s {{output}} {{inputs}}" | ||
+ } else if (current_os == "mac") { | ||
+ command = "\"$ar\" {{arflags}} -r -c -s {{output}} {{inputs}}" | ||
} else { | ||
rspfile = "{{output}}.rsp" | ||
rspfile_content = "{{inputs}}" | ||
@@ -546,7 +548,7 @@ template("gcc_toolchain") { | ||
|
||
// Tables | ||
@@ -1107,7 +1107,7 @@ class StoreImpl { | ||
StoreImpl() {} | ||
|
||
~StoreImpl() { | ||
-#ifdef DEBUG | ||
+#if 1 | ||
reinterpret_cast<i::Isolate*>(isolate_)->heap()->PreciseCollectAllGarbage( | ||
i::Heap::kNoGCFlags, i::GarbageCollectionReason::kTesting, | ||
v8::kGCCallbackFlagForced); | ||
--- a/wee8/third_party/wasm-api/wasm.hh | ||
+++ b/wee8/third_party/wasm-api/wasm.hh | ||
@@ -111,7 +111,7 @@ class vec { | ||
size_t size_; | ||
std::unique_ptr<T[]> data_; | ||
|
||
-#ifdef DEBUG | ||
+#if 0 | ||
void make_data(); | ||
void free_data(); | ||
start_group_flag = "" | ||
end_group_flag = "" | ||
- if (current_os != "aix") { | ||
+ if (current_os != "aix" && current_os != "mac") { | ||
# the "--start-group .. --end-group" feature isn't available on the aix ld. | ||
start_group_flag = "-Wl,--start-group" | ||
end_group_flag = "-Wl,--end-group " | ||
--- a/wee8/src/wasm/wasm-memory.cc | ||
+++ b/wee8/src/wasm/wasm-memory.cc | ||
@@ -142,7 +142,7 @@ void* TryAllocateBackingStore(WasmMemoryTracker* memory_tracker, Heap* heap, | ||
// address space limits needs to be smaller. | ||
constexpr size_t kAddressSpaceLimit = 0x8000000000L; // 512 GiB | ||
#elif V8_TARGET_ARCH_64_BIT | ||
-constexpr size_t kAddressSpaceLimit = 0x10100000000L; // 1 TiB + 4 GiB | ||
+constexpr size_t kAddressSpaceLimit = 0x40100000000L; // 4 TiB + 4 GiB | ||
#else | ||
constexpr size_t kAddressSpaceLimit = 0xC0000000; // 3 GiB | ||
#endif |
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
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
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
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
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
Oops, something went wrong.