Index: src/wasm/wasm-module.h |
diff --git a/src/wasm/wasm-module.h b/src/wasm/wasm-module.h |
index 3329b69b5c1c742bd4d096b9f0563c6e0d316109..019dc56af6478d6826172c11af2a7f3d5c6dc3ec 100644 |
--- a/src/wasm/wasm-module.h |
+++ b/src/wasm/wasm-module.h |
@@ -335,15 +335,6 @@ typedef Result<WasmFunction*> FunctionResult; |
typedef std::vector<std::pair<int, int>> FunctionOffsets; |
typedef Result<FunctionOffsets> FunctionOffsetsResult; |
-// For testing. Decode, verify, and run the last exported function in the |
-// given encoded module. |
-int32_t CompileAndRunWasmModule(Isolate* isolate, const byte* module_start, |
- const byte* module_end, bool asm_js = false); |
- |
-// For testing. Decode, verify, and run the last exported function in the |
-// given decoded module. |
-int32_t CompileAndRunWasmModule(Isolate* isolate, const WasmModule* module); |
- |
// Extract a function name from the given wasm object. |
// Returns "<WASM UNNAMED>" if the function is unnamed or the name is not a |
// valid UTF-8 string. |
@@ -370,6 +361,15 @@ WasmDebugInfo* GetDebugInfo(JSObject* wasm); |
// else. |
bool IsWasmObject(Object* object); |
+namespace testing { |
+ |
+// Decode, verify, and run the function labeled "main" in the |
+// given encoded module. The module should have no imports. |
+int32_t CompileAndRunWasmModule(Isolate* isolate, const byte* module_start, |
+ const byte* module_end, bool asm_js = false); |
+ |
+} // namespace testing |
+ |
} // namespace wasm |
} // namespace internal |
} // namespace v8 |