| OLD | NEW | 
|---|
| 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  Loading... | 
| 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  Loading... | 
| 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 } | 
| OLD | NEW | 
|---|