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

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

Issue 2490663002: [wasm] Move all heap-allocated WASM structures into wasm-objects.h. (Closed)
Patch Set: Created 4 years, 1 month 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
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/snapshot/code-serializer.h" 8 #include "src/snapshot/code-serializer.h"
9 #include "src/version.h" 9 #include "src/version.h"
10 #include "src/wasm/module-decoder.h" 10 #include "src/wasm/module-decoder.h"
11 #include "src/wasm/wasm-macro-gen.h" 11 #include "src/wasm/wasm-macro-gen.h"
12 #include "src/wasm/wasm-module-builder.h" 12 #include "src/wasm/wasm-module-builder.h"
13 #include "src/wasm/wasm-module.h" 13 #include "src/wasm/wasm-module.h"
14 #include "src/wasm/wasm-objects.h"
14 #include "src/wasm/wasm-opcodes.h" 15 #include "src/wasm/wasm-opcodes.h"
15 16
16 #include "test/cctest/cctest.h" 17 #include "test/cctest/cctest.h"
17 #include "test/common/wasm/test-signatures.h" 18 #include "test/common/wasm/test-signatures.h"
18 #include "test/common/wasm/wasm-module-runner.h" 19 #include "test/common/wasm/wasm-module-runner.h"
19 20
20 using namespace v8::base; 21 using namespace v8::base;
21 using namespace v8::internal; 22 using namespace v8::internal;
22 using namespace v8::internal::compiler; 23 using namespace v8::internal::compiler;
23 using namespace v8::internal::wasm; 24 using namespace v8::internal::wasm;
(...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after
795 796
796 TEST(Run_WasmModule_Global_f32) { 797 TEST(Run_WasmModule_Global_f32) {
797 RunWasmModuleGlobalInitTest<float>(kAstF32, -983.9f); 798 RunWasmModuleGlobalInitTest<float>(kAstF32, -983.9f);
798 RunWasmModuleGlobalInitTest<float>(kAstF32, 1122.99f); 799 RunWasmModuleGlobalInitTest<float>(kAstF32, 1122.99f);
799 } 800 }
800 801
801 TEST(Run_WasmModule_Global_f64) { 802 TEST(Run_WasmModule_Global_f64) {
802 RunWasmModuleGlobalInitTest<double>(kAstF64, -833.9); 803 RunWasmModuleGlobalInitTest<double>(kAstF64, -833.9);
803 RunWasmModuleGlobalInitTest<double>(kAstF64, 86374.25); 804 RunWasmModuleGlobalInitTest<double>(kAstF64, 86374.25);
804 } 805 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698