Revert "Revert "Upgrade to 5.0.71.48"" DO NOT MERGE
This reverts commit f2e3994fa5148cc3d9946666f0b0596290192b0e,
and updates the x64 makefile properly so it doesn't break that
build.
FPIIM-449
Change-Id: Ib83e35bfbae6af627451c926a9650ec57c045605
(cherry picked from commit 109988c7ccb6f3fd1a58574fa3dfb88beaef6632)
diff --git a/test/mjsunit/wasm/instantiate-run-basic.js b/test/mjsunit/wasm/instantiate-run-basic.js
new file mode 100644
index 0000000..b103e8f
--- /dev/null
+++ b/test/mjsunit/wasm/instantiate-run-basic.js
@@ -0,0 +1,31 @@
+// Copyright 2015 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Flags: --expose-wasm
+
+load("test/mjsunit/wasm/wasm-constants.js");
+
+var kReturnValue = 97;
+
+var kBodySize = 2;
+var kNameOffset = 15 + kBodySize + 1;
+
+var data = bytes(
+ // -- signatures
+ kDeclSignatures, 1,
+ 0, kAstI32, // signature: void -> int
+ // -- main function
+ kDeclFunctions, 1,
+ kDeclFunctionName | kDeclFunctionExport,
+ 0, 0, // signature index
+ kNameOffset, 0, 0, 0, // name offset
+ kBodySize, 0, // body size
+ // -- body
+ kExprI8Const, // --
+ kReturnValue, // --
+ kDeclEnd,
+ 'm', 'a', 'i', 'n', 0 // name
+);
+
+assertEquals(kReturnValue, _WASMEXP_.instantiateModule(data).main());