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

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

Issue 1798993002: [wasm] Int64Lowering: changing to DFS. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Removed wrong dependency Created 4 years, 9 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 | « src/compiler/int64-lowering.cc ('k') | test/unittests/compiler/int64-lowering-unittest.cc » ('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 <stdint.h> 5 #include <stdint.h>
6 #include <stdlib.h> 6 #include <stdlib.h>
7 #include <string.h> 7 #include <string.h>
8 8
9 #include "src/wasm/wasm-macro-gen.h" 9 #include "src/wasm/wasm-macro-gen.h"
10 10
(...skipping 12 matching lines...) Expand all
23 #define MIPS_OR_X87 false 23 #define MIPS_OR_X87 false
24 #endif 24 #endif
25 25
26 #if V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_X87 || V8_TARGET_ARCH_ARM 26 #if V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_X87 || V8_TARGET_ARCH_ARM
27 #define MIPS_OR_ARM_OR_X87 true 27 #define MIPS_OR_ARM_OR_X87 true
28 #else 28 #else
29 #define MIPS_OR_ARM_OR_X87 false 29 #define MIPS_OR_ARM_OR_X87 false
30 #endif 30 #endif
31 31
32 #define FOREACH_I64_OPERATOR(V) \ 32 #define FOREACH_I64_OPERATOR(V) \
33 V(DepthFirst, false) \ 33 V(DepthFirst, true) \
34 V(I64Const, true) \ 34 V(I64Const, true) \
35 V(I64Return, true) \ 35 V(I64Return, true) \
36 V(I64Param, true) \ 36 V(I64Param, true) \
37 V(I64LoadStore, true) \ 37 V(I64LoadStore, true) \
38 V(I64Add, !MIPS_OR_X87) \ 38 V(I64Add, !MIPS_OR_X87) \
39 V(I64Sub, false) \ 39 V(I64Sub, false) \
40 V(I64Mul, false) \ 40 V(I64Mul, false) \
41 V(I64DivS, false) \ 41 V(I64DivS, false) \
42 V(I64DivU, false) \ 42 V(I64DivU, false) \
43 V(I64RemS, false) \ 43 V(I64RemS, false) \
(...skipping 1170 matching lines...) Expand 10 before | Expand all | Expand 10 after
1214 REQUIRE(I64Eq); 1214 REQUIRE(I64Eq);
1215 1215
1216 WasmRunner<int32_t> r(MachineType::Int64()); 1216 WasmRunner<int32_t> r(MachineType::Int64());
1217 BUILD(r, WASM_I64_EQZ(WASM_GET_LOCAL(0))); 1217 BUILD(r, WASM_I64_EQZ(WASM_GET_LOCAL(0)));
1218 1218
1219 FOR_INT64_INPUTS(i) { 1219 FOR_INT64_INPUTS(i) {
1220 int32_t result = *i == 0 ? 1 : 0; 1220 int32_t result = *i == 0 ? 1 : 0;
1221 CHECK_EQ(result, r.Call(*i)); 1221 CHECK_EQ(result, r.Call(*i));
1222 } 1222 }
1223 } 1223 }
OLDNEW
« no previous file with comments | « src/compiler/int64-lowering.cc ('k') | test/unittests/compiler/int64-lowering-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698