diff options
author | Refael Ackermann <refack@gmail.com> | 2019-05-28 08:46:21 -0400 |
---|---|---|
committer | Refael Ackermann <refack@gmail.com> | 2019-06-01 09:55:12 -0400 |
commit | ed74896b1fae1c163b3906163f3bf46326618ddb (patch) | |
tree | 7fb05c5a19808e0c5cd95837528e9005999cf540 /deps/v8/test/common | |
parent | 2a850cd0664a4eee51f44d0bb8c2f7a3fe444154 (diff) | |
download | android-node-v8-ed74896b1fae1c163b3906163f3bf46326618ddb.tar.gz android-node-v8-ed74896b1fae1c163b3906163f3bf46326618ddb.tar.bz2 android-node-v8-ed74896b1fae1c163b3906163f3bf46326618ddb.zip |
deps: update V8 to 7.5.288.22
PR-URL: https://github.com/nodejs/node/pull/27375
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'deps/v8/test/common')
-rw-r--r-- | deps/v8/test/common/wasm/wasm-macro-gen.h | 16 | ||||
-rw-r--r-- | deps/v8/test/common/wasm/wasm-module-runner.cc | 4 |
2 files changed, 19 insertions, 1 deletions
diff --git a/deps/v8/test/common/wasm/wasm-macro-gen.h b/deps/v8/test/common/wasm/wasm-macro-gen.h index 8b0aab79a9..cdeb3d3cdf 100644 --- a/deps/v8/test/common/wasm/wasm-macro-gen.h +++ b/deps/v8/test/common/wasm/wasm-macro-gen.h @@ -346,6 +346,7 @@ inline WasmOpcode LoadStoreOpcodeOf(MachineType type, bool store) { static_cast<byte>(bit_cast<uint64_t>(static_cast<double>(val)) >> 56) #define WASM_REF_NULL kExprRefNull +#define WASM_REF_IS_NULL(val) val, kExprRefIsNull #define WASM_GET_LOCAL(index) kExprGetLocal, static_cast<byte>(index) #define WASM_SET_LOCAL(index, val) val, kExprSetLocal, static_cast<byte>(index) @@ -682,4 +683,19 @@ inline WasmOpcode LoadStoreOpcodeOf(MachineType type, bool store) { #define WASM_I64_SIGN_EXT_I16(x) x, kExprI64SExtendI16 #define WASM_I64_SIGN_EXT_I32(x) x, kExprI64SExtendI32 +//------------------------------------------------------------------------------ +// Compilation Hints. +//------------------------------------------------------------------------------ +#define COMPILE_STRATEGY_DEFAULT (0x00) +#define COMPILE_STRATEGY_LAZY (0x01) +#define COMPILE_STRATEGY_EAGER (0x02) +#define BASELINE_TIER_DEFAULT (0x00 << 2) +#define BASELINE_TIER_INTERPRETER (0x01 << 2) +#define BASELINE_TIER_BASELINE (0x02 << 2) +#define BASELINE_TIER_OPTIMIZED (0x03 << 2) +#define TOP_TIER_DEFAULT (0x00 << 4) +#define TOP_TIER_INTERPRETER (0x01 << 4) +#define TOP_TIER_BASELINE (0x02 << 4) +#define TOP_TIER_OPTIMIZED (0x03 << 4) + #endif // V8_WASM_MACRO_GEN_H_ diff --git a/deps/v8/test/common/wasm/wasm-module-runner.cc b/deps/v8/test/common/wasm/wasm-module-runner.cc index 45428cbc75..d5ee914ffc 100644 --- a/deps/v8/test/common/wasm/wasm-module-runner.cc +++ b/deps/v8/test/common/wasm/wasm-module-runner.cc @@ -46,7 +46,7 @@ std::shared_ptr<WasmModule> DecodeWasmModuleForTesting( auto enabled_features = WasmFeaturesFromIsolate(isolate); ModuleResult decoding_result = DecodeWasmModule( enabled_features, module_start, module_end, verify_functions, origin, - isolate->counters(), isolate->allocator()); + isolate->counters(), isolate->wasm_engine()->allocator()); if (decoding_result.failed()) { // Module verification failed. throw. @@ -61,6 +61,8 @@ bool InterpretWasmModuleForTesting(Isolate* isolate, Handle<WasmInstanceObject> instance, const char* name, size_t argc, WasmValue* args) { + HandleScope handle_scope(isolate); // Avoid leaking handles. + WasmCodeRefScope code_ref_scope; MaybeHandle<WasmExportedFunction> maybe_function = GetExportedFunction(isolate, instance, "main"); Handle<WasmExportedFunction> function; |