Index: test/cctest/wasm/wasm-run-utils.h |
diff --git a/test/cctest/wasm/wasm-run-utils.h b/test/cctest/wasm/wasm-run-utils.h |
index 7ee39818853a078ddcaaf1ddc34569ba332fb0d0..f1994f11ba39df7639bb5acc61fdd013db8f970f 100644 |
--- a/test/cctest/wasm/wasm-run-utils.h |
+++ b/test/cctest/wasm/wasm-run-utils.h |
@@ -51,6 +51,12 @@ static const uint32_t kMaxFunctions = 10; |
#define WASM_RUNNER_MAX_NUM_PARAMETERS 4 |
#define WASM_WRAPPER_RETURN_VALUE 8754 |
+#define BUILD(r, ...) \ |
+ do { \ |
+ byte code[] = {__VA_ARGS__}; \ |
+ r.Build(code, code + arraysize(code)); \ |
+ } while (false) |
+ |
namespace { |
using namespace v8::base; |
using namespace v8::internal; |