Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Side by Side Diff: test/cctest/wasm/test-run-wasm-module.cc

Issue 2395743003: [wasm] Move test-signatures.h from test/cctest to test/common (Closed)
Patch Set: Delete old build file entries Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/cctest/wasm/test-run-wasm-js.cc ('k') | test/cctest/wasm/test-signatures.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdlib.h> 5 #include <stdlib.h>
6 #include <string.h> 6 #include <string.h>
7 7
8 #include "src/wasm/module-decoder.h" 8 #include "src/wasm/module-decoder.h"
9 #include "src/wasm/wasm-macro-gen.h" 9 #include "src/wasm/wasm-macro-gen.h"
10 #include "src/wasm/wasm-module-builder.h" 10 #include "src/wasm/wasm-module-builder.h"
11 #include "src/wasm/wasm-module.h" 11 #include "src/wasm/wasm-module.h"
12 #include "src/wasm/wasm-opcodes.h" 12 #include "src/wasm/wasm-opcodes.h"
13 13
14 #include "test/cctest/cctest.h" 14 #include "test/cctest/cctest.h"
15 #include "test/cctest/wasm/test-signatures.h" 15 #include "test/common/wasm/test-signatures.h"
16 #include "test/common/wasm/wasm-module-runner.h" 16 #include "test/common/wasm/wasm-module-runner.h"
17 17
18 using namespace v8::base; 18 using namespace v8::base;
19 using namespace v8::internal; 19 using namespace v8::internal;
20 using namespace v8::internal::compiler; 20 using namespace v8::internal::compiler;
21 using namespace v8::internal::wasm; 21 using namespace v8::internal::wasm;
22 22
23 namespace { 23 namespace {
24 void TestModule(Zone* zone, WasmModuleBuilder* builder, 24 void TestModule(Zone* zone, WasmModuleBuilder* builder,
25 int32_t expected_result) { 25 int32_t expected_result) {
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 } 407 }
408 408
409 v8::TryCatch try_catch(reinterpret_cast<v8::Isolate*>(isolate)); 409 v8::TryCatch try_catch(reinterpret_cast<v8::Isolate*>(isolate));
410 Handle<Object> params[1] = { 410 Handle<Object> params[1] = {
411 Handle<Object>(Smi::FromInt(25 * kPageSize), isolate)}; 411 Handle<Object>(Smi::FromInt(25 * kPageSize), isolate)};
412 testing::RunWasmModuleForTesting(isolate, instance, 1, params, 412 testing::RunWasmModuleForTesting(isolate, instance, 1, params,
413 ModuleOrigin::kWasmOrigin); 413 ModuleOrigin::kWasmOrigin);
414 CHECK(try_catch.HasCaught()); 414 CHECK(try_catch.HasCaught());
415 isolate->clear_pending_exception(); 415 isolate->clear_pending_exception();
416 } 416 }
OLDNEW
« no previous file with comments | « test/cctest/wasm/test-run-wasm-js.cc ('k') | test/cctest/wasm/test-signatures.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698