From 7390c2fc1f379e62b26884086d31f88c698c23c4 Mon Sep 17 00:00:00 2001 From: Mircea Trofin Date: Tue, 24 Oct 2017 11:06:56 -0700 Subject: [PATCH] [wasm] Use the C_WASM_ENTRY code type for cctest GetWrapperCode() It appears in the cctest context, both the old STUB, and the current WASM_FUNCTION "just work"; however, in the upcoming off-the-gc wasm world, we codegen call sites differently on x64 - far calls for js-to-wasm (this case), and near calls otherwise. Bug: Change-Id: Iebf8acf164f07742fc367b7bbf266913dbc60c46 Reviewed-on: https://chromium-review.googlesource.com/735131 Reviewed-by: Ben Titzer Commit-Queue: Mircea Trofin Cr-Commit-Position: refs/heads/master@{#48889} --- test/cctest/wasm/wasm-run-utils.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cctest/wasm/wasm-run-utils.cc b/test/cctest/wasm/wasm-run-utils.cc index b005a2eebb..edd79a1ea8 100644 --- a/test/cctest/wasm/wasm-run-utils.cc +++ b/test/cctest/wasm/wasm-run-utils.cc @@ -353,7 +353,7 @@ Handle WasmFunctionWrapper::GetWrapperCode() { } CompilationInfo info(ArrayVector("testing"), isolate, graph()->zone(), - Code::WASM_FUNCTION); + Code::C_WASM_ENTRY); code_ = compiler::Pipeline::GenerateCodeForTesting(&info, descriptor, graph(), nullptr); CHECK(!code_.is_null());