summaryrefslogtreecommitdiff
path: root/deps/v8/test/cctest/wasm/test-run-wasm-js.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/cctest/wasm/test-run-wasm-js.cc')
-rw-r--r--deps/v8/test/cctest/wasm/test-run-wasm-js.cc40
1 files changed, 0 insertions, 40 deletions
diff --git a/deps/v8/test/cctest/wasm/test-run-wasm-js.cc b/deps/v8/test/cctest/wasm/test-run-wasm-js.cc
index 253dc56397..2d51f0fe9d 100644
--- a/deps/v8/test/cctest/wasm/test-run-wasm-js.cc
+++ b/deps/v8/test/cctest/wasm/test-run-wasm-js.cc
@@ -116,42 +116,6 @@ WASM_COMPILED_EXEC_TEST(Run_CallJS_Add_jswrapped) {
r.CheckCallViaJS(-666666801, -666666900);
}
-WASM_COMPILED_EXEC_TEST(Run_IndirectCallJSFunction) {
- Isolate* isolate = CcTest::InitIsolateOnce();
- HandleScope scope(isolate);
- TestSignatures sigs;
-
- const char* source = "(function(a, b, c) { if(c) return a; return b; })";
- Handle<JSFunction> js_function =
- Handle<JSFunction>::cast(v8::Utils::OpenHandle(
- *v8::Local<v8::Function>::Cast(CompileRun(source))));
-
- ManuallyImportedJSFunction import = {sigs.i_iii(), js_function};
-
- WasmRunner<int32_t, int32_t> r(execution_tier, &import);
-
- const uint32_t js_index = 0;
- const int32_t left = -2;
- const int32_t right = 3;
-
- WasmFunctionCompiler& rc_fn = r.NewFunction(sigs.i_i(), "rc");
-
- byte sig_index = r.builder().AddSignature(sigs.i_iii());
- uint16_t indirect_function_table[] = {static_cast<uint16_t>(js_index)};
-
- r.builder().AddIndirectFunctionTable(indirect_function_table,
- arraysize(indirect_function_table));
-
- BUILD(rc_fn, WASM_CALL_INDIRECT(sig_index, WASM_I32V(left), WASM_I32V(right),
- WASM_LOCAL_GET(0), WASM_I32V(js_index)));
-
- Handle<Object> args_left[] = {isolate->factory()->NewNumber(1)};
- r.CheckCallApplyViaJS(left, rc_fn.function_index(), args_left, 1);
-
- Handle<Object> args_right[] = {isolate->factory()->NewNumber(0)};
- r.CheckCallApplyViaJS(right, rc_fn.function_index(), args_right, 1);
-}
-
void RunJSSelectTest(TestExecutionTier tier, int which) {
const int kMaxParams = 8;
PredictableInputValues inputs(0x100);
@@ -561,10 +525,6 @@ WASM_COMPILED_EXEC_TEST(Run_ReturnCallImportedFunction) {
RunPickerTest(execution_tier, false);
}
-WASM_COMPILED_EXEC_TEST(Run_ReturnCallIndirectImportedFunction) {
- RunPickerTest(execution_tier, true);
-}
-
} // namespace wasm
} // namespace internal
} // namespace v8